<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">GMD</journal-id>
<journal-title-group>
<journal-title>Geoscientific Model Development</journal-title>
<abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1991-9603</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/gmd-6-2099-2013</article-id>
<title-group>
<article-title>Automating the solution of PDEs on the sphere and other manifolds in   FEniCS 1.2</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rognes</surname>
<given-names>M. E.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ham</surname>
<given-names>D. A.</given-names>
<ext-link>https://orcid.org/0000-0001-9545-9110</ext-link>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Cotter</surname>
<given-names>C. J.</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>McRae</surname>
<given-names>A. T. T.</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Center for Biomedical Computing, Simula Research Laboratory,   P.O. Box 134,  1325 Lysaker, Norway</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Department of Mathematics, Imperial College London, London SW7 2AZ,   UK</addr-line>
</aff>
<aff id="aff3">
<label>3</label>
<addr-line>Department of Computing, Imperial College London, London SW7 2AZ,   UK</addr-line>
</aff>
<aff id="aff4">
<label>4</label>
<addr-line>The Grantham Institute for Climate Change, Imperial College   London, London SW7 2AZ, UK</addr-line>
</aff>
<pub-date pub-type="epub">
<day>17</day>
<month>12</month>
<year>2013</year>
</pub-date>
<volume>6</volume>
<issue>6</issue>
<fpage>2099</fpage>
<lpage>2119</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2013 M. E. Rognes et al.</copyright-statement>
<copyright-year>2013</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/3.0/">https://creativecommons.org/licenses/by/3.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://gmd.copernicus.org/articles/6/2099/2013/gmd-6-2099-2013.html">This article is available from https://gmd.copernicus.org/articles/6/2099/2013/gmd-6-2099-2013.html</self-uri>
<self-uri xlink:href="https://gmd.copernicus.org/articles/6/2099/2013/gmd-6-2099-2013.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/6/2099/2013/gmd-6-2099-2013.pdf</self-uri>
<abstract>
<p>Differential equations posed over immersed manifolds are of
  particular importance in studying geophysical flows; for instance,
  ocean and atmosphere simulations crucially rely on the capability to
  solve equations over the sphere. This paper presents the extension
  of the FEniCS software components to the automated solution of
  finite element formulations of differential equations defined over
  general, immersed manifolds. We describe the implementation and, in
  particular detail, how the required extensions essentially reduce to
  the extension of the FEniCS form compiler to cover this case. The
  resulting implementation has all the properties of the FEniCS
  pipeline and we demonstrate its flexibility by an extensive range of
  numerical examples covering a number of geophysical benchmark
  examples and test cases. The results are all in agreement with the
  expected values. The description here relates to DOLFIN/FEniCS 1.2.</p>
</abstract>
<counts><page-count count="21"/></counts>
</article-meta>
</front>
<body/>
<back>
<ref-list>
<title>References</title>
<ref id="ref1">
<label>1</label><mixed-citation publication-type="other" xlink:type="simple">Alnæs, M. S.: UFL: a finite element form language, in: Automated Solution of Differential Equations by the Finite Element Method, vol. 84 of Lecture Notes in Computational Science and Engineering, edited by: Logg, A., Mardal, K.-A., and Wells, G. N., chap. 17, Springer, 2012.</mixed-citation>
</ref>
<ref id="ref2">
<label>2</label><mixed-citation publication-type="other" xlink:type="simple">Alnæs, M. S., Logg, A., Mardal, K.-A., Skavhaug, O., and Langtangen, H. P.: Unified Framework for Finite Element Assembly, Int. J. Computat. Sci. Eng., 4, 231–244, &lt;a href=&quot;http://dx.doi.org/10.1504/IJCSE.2009.029160&quot;&gt;https://doi.org/10.1504/IJCSE.2009.029160&lt;/a&gt;, 2009.</mixed-citation>
</ref>
<ref id="ref3">
<label>3</label><mixed-citation publication-type="other" xlink:type="simple">Alnæs, M. S., Logg, A., and Mardal, K.-A.: UFC: a finite element code generation interface, in: Automated Solution of Differential Equations by the Finite Element Method, Volume 84 of Lecture Notes in Computational Science and Engineering, edited by: Logg, A., Mardal, K.-A., and Wells, G. N., chap. 16, Springer, 2012.</mixed-citation>
</ref>
<ref id="ref4">
<label>4</label><mixed-citation publication-type="other" xlink:type="simple">Alnæs, M. S., Logg, A., Ølgaard, K. B., Rognes, M. E., and Wells, G. N.: Unified Form Language: a domain-specific language for weak formulations of partial differential equations, ACM Trans. Mathe. Softw., available at: &lt;a href=&quot;http://arxiv.org/abs/1211.4047&quot;&gt;http://arxiv.org/abs/1211.4047&lt;/a&gt; (last access: 13 December 2013), 2013.</mixed-citation>
</ref>
<ref id="ref5">
<label>5</label><mixed-citation publication-type="other" xlink:type="simple">Arakawa, A. and Hsu, Y.-J. G.: Energy conserving and potential-enstrophy dissipating schemes for the shallow water equations, Mon. Weather Rev., 118, 1960–1969, 1990.</mixed-citation>
</ref>
<ref id="ref6">
<label>6</label><mixed-citation publication-type="other" xlink:type="simple">Arakawa, A. and Lamb, V.: Computational design of the basic dynamical processes of the UCLA general circulation model, Meth. Computat. Phys., 17, 174–267, 1977.</mixed-citation>
</ref>
<ref id="ref7">
<label>7</label><mixed-citation publication-type="other" xlink:type="simple">Auricchio, F., Brezzi, F., and Lovadina, C.: Mixed Finite Element Methods, Encyclopedia of Computational Mechanics, 2004.</mixed-citation>
</ref>
<ref id="ref8">
<label>8</label><mixed-citation publication-type="other" xlink:type="simple">Barden, D. and Thomas, C.: An Introduction to Differential Manifolds, Imperial College Press, 2003.</mixed-citation>
</ref>
<ref id="ref9">
<label>9</label><mixed-citation publication-type="other" xlink:type="simple">Bernard, P.-E., Remacle, J.-F., and Legat, V.: High-order Discontinuous G}alerkin Methods for Solving Conservation Laws on General 2-{D Manifolds, 2008.</mixed-citation>
</ref>
<ref id="ref10">
<label>10</label><mixed-citation publication-type="other" xlink:type="simple">Brezzi, F. and Fortin, M.: Mixed and Hybrid Finite Element Methods, vol. 15 of Springer Series in Computational Mathematics, Springer-Verlag, New York, 1991.</mixed-citation>
</ref>
<ref id="ref11">
<label>11</label><mixed-citation publication-type="other" xlink:type="simple">Brezzi, F., Douglas, J., and Marini, L. D.: Two families of mixed finite elements for second order elliptic problems, Numer. Math., 47, 217–235, 1985.</mixed-citation>
</ref>
<ref id="ref12">
<label>12</label><mixed-citation publication-type="other" xlink:type="simple">Cockburn, B. and Shu, C.-W.: Runge–Kutta discontinuous Galerkin methods for convection-dominated problems, J. Sci. Comput., 16, 173–261, 2001.</mixed-citation>
</ref>
<ref id="ref13">
<label>13</label><mixed-citation publication-type="other" xlink:type="simple">Côté, J.: A Lagrange multiplier approach for the metric terms of semi-Lagrangian models on the sphere, Q. J. Roy. Meteorol. Soc., 114, 1347–1352, 1988.</mixed-citation>
</ref>
<ref id="ref14">
<label>14</label><mixed-citation publication-type="other" xlink:type="simple">Cotter, C. and Shipton, J.: Mixed finite elements for numerical weather prediction, J. Computat. Phys., 231, 7076–7091, &lt;a href=&quot;http://dx.doi.org/10.1016/j.jcp.2012.05.020&quot;&gt;https://doi.org/10.1016/j.jcp.2012.05.020&lt;/a&gt;, 2012.</mixed-citation>
</ref>
<ref id="ref15">
<label>15</label><mixed-citation publication-type="other" xlink:type="simple">Cotter, C. J., Ham, D. A., and Pain, C. C.: A mixed discontinuous/continuous finite element pair for shallow-water ocean modelling, Ocean Modell., 26, 86–90, &lt;a href=&quot;http://dx.doi.org/10.1016/j.ocemod.2008.09.002&quot;&gt;https://doi.org/10.1016/j.ocemod.2008.09.002&lt;/a&gt;, 2009.</mixed-citation>
</ref>
<ref id="ref16">
<label>16</label><mixed-citation publication-type="other" xlink:type="simple">Dedner, A., Klöfkorn, R., Nolte, M., and Ohlberger, M.: A generic interface for parallel and adaptive discretization schemes: abstraction principles and the DUNE-FEM module, Computing, 90, 165–196, 2010.</mixed-citation>
</ref>
<ref id="ref17">
<label>17</label><mixed-citation publication-type="other" xlink:type="simple">DeSimone, A., Heltai, L., and Manigrasso, C.: Tools for the Solution of PDEs Defined on Curved Manifolds with deal.II, International School for Advanced Studies (SISSA), available at: &lt;a href=&quot;http://hdl.handle.net/1963/3700&quot;&gt;http://hdl.handle.net/1963/3700&lt;/a&gt; (last access: 13 December 2013), 2009.</mixed-citation>
</ref>
<ref id="ref18">
<label>18</label><mixed-citation publication-type="other" xlink:type="simple">Giraldo, F. X.: High-order triangle-based discontinuous Galerkin methods for hyperbolic equations on a rotating sphere, J. Computat. Phys., 214, 447–465, 2006.</mixed-citation>
</ref>
<ref id="ref19">
<label>19</label><mixed-citation publication-type="other" xlink:type="simple">Holm, D.: Geometric Mechanics – Part I: Dynamics and Symmetry, Imperial College Press, 2008.</mixed-citation>
</ref>
<ref id="ref20">
<label>20</label><mixed-citation publication-type="other" xlink:type="simple">Karniadakis, G. E. and Sherwin, S. J.: Spectral/hp Element Methods for CFD, Oxford University Press, 1999.</mixed-citation>
</ref>
<ref id="ref21">
<label>21</label><mixed-citation publication-type="other" xlink:type="simple">Kirby, R. C.: Algorithm 839: FIAT, a new paradigm for computing finite element basis functions, ACM T. Math. Software, 30, 502–516, &lt;a href=&quot;http://dx.doi.org/10.1145/1039813.1039820&quot;&gt;https://doi.org/10.1145/1039813.1039820&lt;/a&gt;, 2004.</mixed-citation>
</ref>
<ref id="ref22">
<label>22</label><mixed-citation publication-type="other" xlink:type="simple">Kirby, R. C. and Logg, A.: A compiler for variational forms, ACM T. Math. Software, 32, 417–444, &lt;a href=&quot;http://dx.doi.org/10.1145/1163641.1163644&quot;&gt;https://doi.org/10.1145/1163641.1163644&lt;/a&gt;, 2006.</mixed-citation>
</ref>
<ref id="ref23">
<label>23</label><mixed-citation publication-type="other" xlink:type="simple">Kuptsov, L.: Gram Determinant, in: Encyclopedia of Mathematics, Springer, available at: &lt;a href=&quot;http://www.encyclopediaofmath.org/index.php/Gram_determinant?%oldid=18442&quot;&gt;http://www.encyclopediaofmath.org/index.php/Gram_determinant?%oldid=18442&lt;/a&gt; (last access: 2 July 2013), 2011.</mixed-citation>
</ref>
<ref id="ref24">
<label>24</label><mixed-citation publication-type="other" xlink:type="simple">Leimkuhler, B. and Reich, S.: Simulating Hamiltonian Dynamics, chap. 12, CUP, 2005.</mixed-citation>
</ref>
<ref id="ref25">
<label>25</label><mixed-citation publication-type="other" xlink:type="simple">Le Roux, D., Sène, A., Rostand, V., and Hanert, E.: On some spurious mode issues in shallow-water models using a linear algebra approach, Ocean Modell., 10, 83–94, 2005.</mixed-citation>
</ref>
<ref id="ref26">
<label>26</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A. and Wells, G. N.: DOLFIN: automated finite element computing, ACM T. Math. Software, 37, 20:1–20:28, &lt;a href=&quot;http://dx.doi.org/10.1145/1731022.1731030&quot;&gt;https://doi.org/10.1145/1731022.1731030&lt;/a&gt;, 2010.</mixed-citation>
</ref>
<ref id="ref27">
<label>27</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A., Mardal, K.-A., and Wells, G.: Automated Solution of Differential Equations by the Finite Element Method: the Fenics Book, vol. 84, Springer, 2012a.</mixed-citation>
</ref>
<ref id="ref28">
<label>28</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A., Mardal, K.-A., and Wells, G. N. (Eds.): Automated Solution of Differential Equations by the Finite Element Method, Springer, 2012b.</mixed-citation>
</ref>
<ref id="ref29">
<label>29</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A., Mardal, K.-A., and Wells, G. N.: Finite element assembly, in: Automated Solution of Differential Equations by the Finite Element Method, Springer, 2012c.</mixed-citation>
</ref>
<ref id="ref30">
<label>30</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A., Ølgaard, K. B., Rognes, M. E., and Wells, G. N.: FFC: the FEniCS Form Compiler, in: Automated Solution of Differential Equations by the Finite Element Method, vol. 84 of Lecture Notes in Computational Science and Engineering, edited by: Logg, A., Mardal, K.-A., and Wells, G. N., chap. 11, Springer, 2012d.</mixed-citation>
</ref>
<ref id="ref31">
<label>31</label><mixed-citation publication-type="other" xlink:type="simple">Logg, A., Wells, G. N., and Hake, J.: DOLFIN: a C++/Python Finite Element Library, in: Automated Solution of Differential Equations by the Finite Element Method, vol. 84 of Lecture Notes in Computational Science and Engineering, edited by: Logg, A., Mardal, K.-A., and Wells, G. N., chap. 10, Springer, 2012e.</mixed-citation>
</ref>
<ref id="ref32">
<label>32</label><mixed-citation publication-type="other" xlink:type="simple">McRae, A. T. T and Cotter, C. J.: Energy- and enstrophy-conserving schemes for the shallow-water equations, based on mimetic finite elements, Q. J. R. Meteorol. Soc., &lt;a href=&quot;http://arxiv.org/abs/1305.4477&quot;&gt;http://arxiv.org/abs/1305.4477&lt;/a&gt; (last access: 13 December 2013), 2013.</mixed-citation>
</ref>
<ref id="ref33">
<label>33</label><mixed-citation publication-type="other" xlink:type="simple">Nédélec, J.-C.: Mixed finite elements in $\mathbb R^3$, Numer. Math., 35, 315–341, &lt;a href=&quot;http://dx.doi.org/10.1007/BF01396415&quot;&gt;https://doi.org/10.1007/BF01396415&lt;/a&gt;, 1980.</mixed-citation>
</ref>
<ref id="ref34">
<label>34</label><mixed-citation publication-type="other" xlink:type="simple">Nédélec, J.-C.: A new family of mixed finite elements in $\mathbb R^3$, Numer. Math., 50, 57–81, 1986.</mixed-citation>
</ref>
<ref id="ref35">
<label>35</label><mixed-citation publication-type="other" xlink:type="simple">Penrose, R.: A generalized inverse for matrices, Proc. Cambridge Philos. Soc, 51, 406–413, 1955.</mixed-citation>
</ref>
<ref id="ref36">
<label>36</label><mixed-citation publication-type="other" xlink:type="simple">Raviart, P.-A. and Thomas, J. M.: A mixed finite element method for 2nd order elliptic problems, in: Mathematical aspects of finite element methods (Proc. C}onf., Consiglio Naz. delle Ricerche (C.{N.R.), Rome, 1975), 292–315, Lecture Notes in Math., vol. 606, Springer, Berlin, 1977.</mixed-citation>
</ref>
<ref id="ref37">
<label>37</label><mixed-citation publication-type="other" xlink:type="simple">Richardson, C. N., and Wells, G. N.: Expressive and scalable finite element simulation beyond 1000 cores, HECToR university distributed CSE project report, available at: &lt;a href=&quot;http://www.hector.ac.uk/cse/distributedcse/reports/UniDOLFIN/&quot;&gt;http://www.hector.ac.uk/cse/distributedcse/reports/UniDOLFIN/&lt;/a&gt;, last access: 23 September 2013.</mixed-citation>
</ref>
<ref id="ref38">
<label>38</label><mixed-citation publication-type="other" xlink:type="simple">Rognes, M. E., Kirby, R. C., and Logg, A.: Efficient assembly of $H(div)$ and $H(curl)$ conforming finite elements, SIAM J. Sci. Comput., 31, 4130–4151, 2009.</mixed-citation>
</ref>
<ref id="ref39">
<label>39</label><mixed-citation publication-type="other" xlink:type="simple">Schmidt, A., Barth, T. J., and Siebert, K. G.: Design of adaptive finite element software: the finite element toolbox ALBERTA, vol. 42, Springer, 2005.</mixed-citation>
</ref>
<ref id="ref40">
<label>40</label><mixed-citation publication-type="other" xlink:type="simple">Sherwin, S., Kirby, R. M., and the Nektar++ team, available at: &lt;a href=&quot;http://www.nektar.info&quot;&gt;http://www.nektar.info&lt;/a&gt;, last access: 2 July 2013.</mixed-citation>
</ref>
<ref id="ref41">
<label>41</label><mixed-citation publication-type="other" xlink:type="simple">Williamson, D. L., Drake, J. B., Hack, J. J., Jakob, R., and Swarztrauber, P. N.: A standard test set for numerical approximations to the shallow water equations in spherical geometry, J. Computat. Phys., 102, 211–224, 1992.</mixed-citation>
</ref>
<ref id="ref42">
<label>42</label><mixed-citation publication-type="other" xlink:type="simple">Zienkiewicz, O. C., Taylor, R. L., and Zhu, J. Z.: The Finite Element Method: Its Basis and Fundamentals, Butterworth-Heinemann, 2005.</mixed-citation>
</ref>
</ref-list>
</back>
</article>