Abstract
We present a numerical discretisation of an embedded two-dimensional manifold using high-order continuous Galerkin spectral/hp elements, which provide exponential convergence of the solution with increasing polynomial order, while retaining geometric flexibility in the representation of the domain. Our work is motivated by applications in cardiac electrophysiology where sharp gradients in the solution benefit from the high-order discretisation, while the computational cost of anatomically-realistic models can be significantly reduced through the surface representation and use of high-order methods. We describe and validate our discretisation and provide a demonstration of its application to modelling electrochemical propagation across a human left atrium.
Keywords: High-order finite elements, Spectral/hp elements, Continuous Galerkin method, Surface PDE, Cardiac electrophysiology, Monodomain equation
1. Introduction
Partial Differential Equations (PDEs) describe many physical and mathematical processes and are quite often posed on embedded surfaces. PDEs on arbitrary surfaces rarely have analytic solutions and so are solved numerically using, for example, finite difference or finite element techniques. In the case of physical processes, a surface representation of the domain is usually an approximation of the true system and is made for numerical efficiency reasons providing it does not overly degrade the underlying physics. There are many examples of applications where PDEs are solved on surfaces in the literature, including fluid dynamics [1], biology and medicine [2], and computer graphics [3]. In this paper we describe a formulation of high-order spectral/hp element methods on curvilinear codimension-one surfaces embedded in three-dimensional space, applied to modelling electrical propagation in the heart.
The standard approach to solving a PDE on an embedded domain using finite element methods is to discretise the surface using a triangulation [4–6], or to parametrise the surface [1]. The latter may be challenging for arbitrary surfaces or require the use of multiple patches. Triangulation may lead to discretisation errors due to poor representation of the surface. It may also be computationally expensive in cases where the surface evolves in time. Finite volume methods have also been considered (for example, [7]), but are not examined further here. Alternative approaches include the level-set [8] or closest point method [9,10]. Level-set methods describe the surface as the zero level-set of a, possibly time-dependent, function and extend the PDE from this surface into a higher-dimensional ambient Euclidean space. The extended PDE is solved using finite difference [11,12] or finite element [3,13] techniques. This removes much of the complexity of constructing operators on the manifold, but at the expense of increasing the dimension of the problem and, therefore, the computational cost. Care must also be taken to ensure the extended PDE remains true to the original surface PDE and complications can arise due to the necessity to impose boundary conditions on either side of the surface which may lead to an artificial jump in the solution, degeneracy of the implicit equation and difficulties in ensuring regularity of the solutions [14], although some of these can be addressed [15]. However, these methods allow the surface to move in time, in a relatively computationally efficient manner.
Mathematical formulations for solving PDEs on surfaces using linear finite element methods have been considered previously for a number of applications. One of the most prominent in the literature is the solution of the shallow water equations on the Earthʼs surface, for example [16], where the local coordinate systems on each element eliminate the singularities inherent when solving in global spherical coordinates. Spectral elements have also been used for the shallow water equations on a sphere by Giraldo [17] and Taylor et al. [18]. They find, for realistic atmospheric problems that these methods achieve comparable accuracy to existing methods, although they anticipate the methods can be more powerful when using local refinement. Their study is also restricted to a parametrised sphere using quadrilaterals. Finally, PDEs on surfaces are important in computer graphics [3] for rendering and texturing on surfaces and visualising flow data from simulations [19]. Fluid flow simulations on surfaces of arbitrary topology have been discussed by Stam [1].
In this paper we are interested in defining spectral/hp element discretisations of surfaces of arbitrary and complex geometry as are typically found in biomedical applications. Such surfaces are frequently extracted from medical imaging: a global surface parametrisation is infeasible. Instead we tessellate the surface with geometrically high-order curvilinear elements, each defined by a mapping from a planar reference region. The mapping is then incorporated into the differential operators during their construction. The particular application we consider is the simulation of human left atrium electrophysiology. We discard the mechanical aspects of the heart, so do not require the capabilities to model moving surfaces.
1.1. Cardiac electrophysiology
Cardiac conduction occurs due to a complex sequence of ion transport mechanisms between cells. As ions flow from adjacent excited cells and the potential difference across the cell membrane exceeds a threshold level, a complex sequence of ionic currents begins to flow between the intracellular and extracellular spaces creating a prescribed variation of the transmembrane potential known as the action potential. This process begins with a complete and rapid depolarisation of the cell due to the inward sodium current. Other ionic currents gradually restore the polarised state to complete the cycle. The depolarisation of the cell causes contraction and the cumulative effect results in coordinated contraction of the heart muscle with each activation wave. In some cases, due to disease, infarction or age, inhomogeneities in the myocardium result in abnormal activation patterns, known as cardiac arrhythmias, leading to irregular contraction of the heart and poor cardiac throughput. If such dysfunction occurs in the ventricles it is rapidly fatal, causing cessation of effective blood circulation, and is the most common cause of cardiac arrest. When occurring in the atria, it causes symptoms such as tiredness and leaves the person prone to the formation of blood clots in the poorly contracting atrium and puts them at greater risk of stroke.
Identifying those areas of myocardium responsible for the initiation or perpetuation of an arrhythmia is key to successful clinical intervention and therefore accurate and rapid computer simulation of a patientʼs atrial electrical activity is potentially a highly valuable tool in planning treatment. Significantly improving the performance of cardiac electrophysiology computer simulations is key for them to attain clinical utility. Spectral elements are capable of providing high-resolution solutions, necessary to capture the sharp gradients at the leading edge of the depolarisation wave, with fewer degrees of freedom than linear finite element methods [20]. In addition, these high-order methods can be extended to perform local polynomial refinement where needed during the simulation, such as on those elements in close proximity to the wavefront, without needing to resort to computationally expensive mesh refinement.
Simplifying the geometric model of the atrium is another approach to accelerating simulations. To date most computer simulations of mammalian atria represent the chamber walls as fully three-dimensional substrate, typically from a volume segmentation of magnetic resonance angiography (MRA) images. The wall of the human atrium is typically only 1–3 mm thick, but with a surface area in excess of 50 cm2. Electrical propagation and arrhythmogenic features are therefore predominantly two-dimensional in nature and can be efficiently modelled as a two-dimensional surface. To illustrate this, we quantify the effect of transmural variability in a 3D tissue slice, described in Fig. 1, when the epicardial and endocardial surfaces have orthogonal fibre directions. Additionally, we compare this to the same geometry using isotropic conductivities, computed as the transmural average of those in the anisotropic case. In each case, the tissue is stimulated from the centre point of the tissue with a current of 50 μA, applied for 2 ms over a spherical region of radius 3 mm. Fig. 2 shows the maximum difference in activation time between the epicardial and endocardial layers for the anisotropic case, as well as a comparison between the endocardial layers of the isotropic and anisotropic cases. For a thickness of 2 mm – the average thickness of the left atrial wall – the maximum difference in local activation time between corresponding points on the epicardial and endocardial surface is 3.41 ms. In comparing the endocardial surfaces of the anisotropic and isotropic cases, which is most relevant for clinical applications where electrical recordings are taken endocardially, the maximum difference is 1.63 ms. This variation is less than 0.33% of the human atrial action potential, which is in excess of 300 ms in healthy myocardium. Representing the left atrial geometry as a two-dimensional manifold can therefore substantially reduce the computational cost of simulations when compared to full three-dimensional tissue models, without a clinically significant loss of precision.
The paper is structured as follows. In Section 2 we outline the mathematical construction of the manifold embedding along with the high-order discretisation technique used. Section 3 describes a number of test problems with analytic solutions used to verify the formulation and implementation. We conclude this section with an applied demonstration of the technique using a model of cardiac electrophysiology in the human left atrium. We summarise and discuss implementational details in Section 5.
2. Formulation
A mathematical formulation of the surface embedding within along with the corresponding numerical construction of the continuous Galerkin approximation on the surface and subsequent implementation now follows. In this section we limit ourselves to an outline of the mathematical derivation of the Laplace–Beltrami operator on the manifold, and include a more rigorous derivation in Appendix A.
In constructing operators on a curved surface one must take care to distinguish between vector quantities which are geometrically fixed and independent of the coordinate system in which they are represented, and those which are inherently coupled to the chosen coordinate system. The former is known as contravariance; a contravariant vector, such as velocity, is one in which under a change of basis the components must change under the inverse map to retain geometric invariance. In contrast, the latter is termed covariance and such vector quantities, for example the gradient of a scalar function, change with the basis transformation. More details on these concepts and their relationship can be found in [21]. In Euclidean space there is no distinction between these two concepts; however, this is not true in curvilinear embedded spaces. We first define our manifold through a coordinate mapping and outline the geometrical properties of this mapping. This allows generic representations of familiar differential operators on the manifold surface to be constructed.
2.1. Notation
Our formulation of differential operators on the surface is derived in terms of first- and second-order tensors. Accordingly, we take advantage of the notational conventions from [21]. In brief, a tensor is denoted in bold (e.g. a), while entries within a tensor are denoted with indices as necessitated by the order of the tensor (e.g. for a second-order tensor). Furthermore, lower indices refer to covariant quantities while upper indices denote contravariant quantities. Tensors may themselves be indexed and this is denoted through the use of indices enclosed in parentheses (e.g. ). Vector quantities are denoted in bold, since they are tensors of one dimension. Unless specifically stated otherwise, all differential operators in this section are restricted to the surface.
2.2. Metric tensors and differential operators
For a smooth codimension-1 manifold we express coordinate directions on the manifold using and in the ambient space using . The surface is parametrised using the coordinate mapping for which the entries of the second-order Jacobian tensor are given by
where can be viewed as a covariant surface vector (by fixing the upper index) or as a contravariant space vector (by fixing the lower index). At each point p on the surface M, the tangent plane is a real vector space spanned by the vectors,
(1) |
The surface metric tensor provides important information about how lengths and angles vary on the manifold surface. This second-order tensor is constructed as the pairwise inner product of tangent vectors, , and has determinant . The tensor g can be compactly expressed in terms of the Jacobian tensor of x as . Note that g is square and the determinant is well-defined. The Jacobian tensor is not square and therefore the conventional Jacobian determinant, frequently used in finite element codes, is undefined. The metric g is used when mapping contravariant quantities to covariant quantities. To obtain contravariant vectors, which must remain fixed under a change of coordinate system, from covariant vectors we will require the inverse of the metric tensor, for which we denote entries as , in order to transform the components of these vectors accordingly.
In the curved space of the manifold the derivative of a scalar quantity, f, remains consistent with that of the conventional Euclidean definition,
(2) |
since it is a covariant quantity and changes with the coordinate system. However when taking derivatives of vector quantities, v, the curvature of the space must be taken into account when calculating the change in the vector components. It can be appreciated that Euclidean derivatives of a covariant vector at a point p on a manifold M do not necessarily lie in the tangent plane to the manifold, . Therefore we must define the covariant derivative operator in such a way that the result remains on the manifold and accounts for the curvature of the surface. The covariant derivative of a contravariant vector v is therefore
where are the Christoffel symbols [21]. These real-valued quantities capture the change in the tangent vectors as p moves on the manifold. By expressing the Christoffel symbols in terms of the derivatives of the metric tensor entries (see Appendix A), we can express the surface divergence operator as
(3) |
Using to transform the covariant scalar gradient vector to a corresponding contravariant vector and combining this with the above expression for divergence, the Laplacian operator on the manifold can be expressed as
(4) |
This can be extended to the anisotropic case, as derived in Appendix A.3.
2.3. Spectral/hp element discretisation
A spatial discretisation of the manifold surface is given using the spectral/hp element method. A more detailed description of the basis construction, given in the context of fluid dynamics, can be found in [22]. The computational domain is a non-overlapping tessellation of elemental regions such that and the intersection of any two elements is either a point, an edge or the empty set. Standard elemental regions are defined for the triangular and quadrilateral regions, defined respectively as,
and these are mapped to each through smooth mappings . In the case of the triangular region, we employ a coordinate transform [23,24] which allows it to be represented using the same fixed coordinate limits as used in the quadrilateral region,
On these reference regions we represent a smooth function in terms of a set of N basis functions, . The are constructed through a tensor product of two sets of and one-dimensional basis functions , with , where we denote by the largest order of polynomial in the i-th basis, and . Typically, in most applications, but the sizes of the bases could be chosen differently. Typically, one chooses a subset of the family of Jacobi polynomials for basis functions, due to their inherent orthogonality properties and the resulting amenable mass matrix structure. The modal nature of these polynomials is more computationally amenable to p-refinement than the original nodal spectral element method since the stiffness matrices do not need to be entirely rebuilt, although we do not consider p-adaptivity here. In this paper, we specifically choose the Jacobi polynomials, , but modify them with linear functions as,
which naturally partitions the modes into element-interior modes and element-boundary modes, the latter of which has support which includes one or more edges of the element. An infinite-dimensional function u can therefore be projected into the polynomial space spanned by to give a discrete approximation on the element as
where the denote the degree of freedom quantifying the contribution of the basis function .
In constructing a continuous Galerkin formulation, -continuity is enforced across elemental boundaries. Corresponding boundary modes from adjacent elements form a single global mode in a domain-wide expansion. Since the support of the element-interior basis functions does not extend to, or beyond, the boundary of the element, they are by definition global modes in themselves. Mathematically, this assembly of element modes is expressed through an assembly matrix A.
We build on this formulation by casting the Helmholtz equation into the weak Galerkin approximation on the manifold M,
(5) |
where is a surface diffusion tensor (see Appendix A.3) and f is a prescribed forcing function. Given the discrete approximation space
and denoting element and boundary integration by
respectively, we choose the test space and seek solutions such that , . After integration by parts this gives the anisotropic variational form of Eq. (5) as
(6) |
2.4. Implementation
The spectral/hp element method outlined in the previous section is implemented in the Nektar++ spectral/hp element framework [25]. In the weak form from Eq. (6) the function u is expanded in terms of the elemental basis functions , to form an elementally discrete system which, in matrix form, can be expressed as
where
Elemental block matrices and concatenated vectors of element coefficients are assembled using a highly sparse global assembly matrix A, which practically is implemented as an injective map for memory efficiency reasons, to create an expansion in terms of the global modes . The resulting global system of linear equations,
is solved for the coefficients using a preconditioned conjugate gradient method. For high-order discretisations, the global matrix is statically condensed and first solved for the wireframe mesh (vertex and edge degrees of freedom). The performance of this step is predominantly dictated by the cost of the matrix–vector multiplication operation. At higher polynomial orders it is more efficient to perform the matrix–vector operation locally on boundary modes of each element and assemble the global result, rather than performing a sparse matrix–vector multiplication with the assembled matrix [26]. The interior matrix block of the statically condensed system, corresponding to the element-interior modes, is block diagonal and so can be trivially inverted to complete the solve.
In parallel, the mesh is partitioned across the available processes and those global degrees of freedom which lie on the partition boundaries are duplicated on the neighbouring processes. The assembly process then requires the exchange of elemental contributions using the Message Passing Interface (MPI) between each of the processes sharing partition-boundary modes. Practically, we use the gather–scatter algorithm from Nek5000 which has been shown to scale well up to many thousands of processors [27].
For unsteady problems the equations can be time-marched using one of a number of implicit or implicit–explicit (IMEX) time integration schemes [28], implemented using general linear methods [29]. In summary, the PDE is arranged in the form
where is typically nonlinear and therefore should be evaluated explicitly, and is stiff and therefore best evaluated implicitly so as to avoid excessively small time-steps. The first-order forward-/backward-Euler IMEX scheme given by
is used for the electrophysiology results in this paper.
2.5. Comparison with traditional finite element formulations
In the formulation of finite element methods in two-dimensional Euclidean space one requires a set of geometric terms in order to apply differential operators constructed on the standard reference region to the physical space element. These terms correspond directly to the inverse of the Jacobian of the mapping,
In Euclidean spaces, the Jacobian is square and the inverse is well-defined. However, in the case of a higher-dimensional embedding, the Jacobian is rectangular and the inverse is not well-defined. Therefore, one approach to support existing finite element codes on a manifold is to extend the two-dimensional surface mapping to a full three-dimensional representation by artificially adding a third coordinate direction corresponding to the surface normal. This can be found through the cross product of the tangent vectors,
A full Jacobian matrix can be constructed by extending the surface Jacobian with these additional terms,
This matrix can be inverted to compute the values of as
where the full three-dimensional Jacobian determinant is
Finally, the surface Jacobian is computed as
The resulting terms of the divergence operator
are mathematically equivalent to those obtained through the geometric tensor construction.
3. Validation
We present a number of simulations using the implementation in Nektar++ to validate the methodology and to demonstrate its capability to represent complex problems in the application area of cardiac electrophysiology. Problems with analytic solutions are first considered to verify the correct numerical properties are being observed. An applied example then follows in which we simulate the electrical activation of cells in the human left atrium, represented as a two-dimensional surface, using the monodomain reaction–diffusion equation.
For analytic test cases, we consider the computational domain to be the unit-radius sphere , or a subset thereof. This domain is sufficiently complex to demonstrate the effectiveness of the method without degenerating to a relatively trivial problem, yet simple enough to retain mathematically elegant solutions for particular choices of parameters. The sphere is parametrised by the mapping from spherical to Cartesian coordinates,
which results in the Jacobian, metric tensor, and inverse metric tensor,
respectively. Substitution into Eq. (4) gives the expression for the Laplacian operator on the spherical surface as
(7) |
In spherical coordinates, solutions to the Laplace equation can be obtained analytically through expansion in spherical harmonics,
where are the associated Legendre polynomials and are constants. Consequently, these functions are good candidates for testing the formulation of the Laplacian on a sphere. It is apparent that if we take to maintain real solutions and discard the constants for clarity we are interested in solutions of the form , where are the Legendre polynomials satisfying,
Choosing , and applying the chain rule,
and we can conclude from Eq. (7) that
on the surface of the sphere. An illustrative example of on the sphere is shown in Fig. 3(a).
3.1. Helmholtz equation
To illustrate that the discretisation retains the spatial convergence properties of the spectral/hp element method we extend the result above to solve the Helmholtz equation,
(8) |
on the spherical patch . Extending our analysis for the Laplace equation above, we choose the forcing function
and impose Dirichlet boundary conditions
which, by construction, has an exact solution on Ω of
The computational meshes used for this example consist of either 36 triangular elements, as illustrated in Fig. 3(b), or 18 quadrilateral elements. On each element polynomial bases with maximum degrees of through are considered. Both the triangular and quadrilateral discretisations result in the same number of degrees of freedom for a given P, since elemental edge modes are coupled under the continuous Galerkin formulation. In a curvilinear manifold, the accuracy of a numerical solution is dependent on both the ability of the expansion basis to capture the solution and on the geometric accuracy of parametric coordinate mappings and consequently the differential operators. The coordinate mappings , from the two-dimensional reference regions to the physical elements are constructed in terms of high-order bases much like those used to represent the solution. The derivatives of these mappings and the entries of the Jacobian matrix are then evaluated pointwise at the quadrature points used for integration in the solution space when constructing the differential operators. The quality of the resulting solution is therefore a function of the characteristic mesh element size (h), the solution polynomial order (P) and the order of the geometric representation () of the elements.
Fig. 4 shows the error in the solution to the Helmholtz problem given in Eq. (8) on a number of triangular and quadrilateral meshes, ranging in order from to . A fixed number of curvilinear elements are used across the range of for each shape. Errors are computed as the difference between the computed solution at the mesh points and the exact solution at the corresponding radially projected point on the true surface. An exponential reduction in error is observed for all cases, in line with the spectral convergence properties expected of the method. The error is seen to saturate when the error introduced by the representation of the geometry dominates the error from the spectral/hp element discretisation of the solution. In this example planar elements capture the geometry very poorly and introduce significant errors in the differential operators, while higher values of resolve the geometry much better and significantly reduce the error. Quadrilateral tessellations attain a lower error than their triangular counterparts in general. The convergence of the solution using both mesh and polynomial refinement is shown in Fig. 5. In the case of mesh refinement, both the geometry and solution expansions are linear. P-refinement obtains more rapid convergence than h-refinement.
3.2. Parabolic problem
The second example is a time-dependent diffusion problem on . The mesh consists of 1456 quadrilateral elements with and the solution is represented using polynomial expansions up to order on each element. We extend our solution of the Laplace equation to solve the heat equation and define our initial value problem to be
(9) |
(10) |
This has an analytic solution of the form . A representative illustration of this function on the spherical domain can be seen in Fig. 3(a). Fig. 6 shows the convergence of the solution in time using the second-order implicit backwards difference formula. The correct second-order convergence is obtained until the spatial discretisation and geometric errors begin to dominate.
4. Application to cardiac electrophysiology
The most prevalent PDE model used to describe electrical propagation in the heart is the monodomain reaction–diffusion equation. The reaction term is a system of Ordinary Differential Equations (ODEs) which characterise the flow of ions in and out of individual cells. The diffusion component of the system describes the propagation of the electrochemical action potential between cells in the tissue. Since the myocardium is fibrous in nature, this diffusion is highly anisotropic and can lead to conduction velocities which are an order of magnitude higher in the direction of the fibre compared to the transverse direction in some types of cardiac tissue. The PDE is defined as
where is the potential difference across the membrane of a cell, is the cell model state, β is the cellular surface-to-volume ratio, is the membrane capacitance and is the total outward flowing current from a cell as given by the cell model , and the stimulus current used to activate the system.
The diffusivity tensor σ reflects the coupling between adjacent cells through gap junctions and the orientation of cells within the tissue. This directly affects the propagation velocity of wavefronts with greater coupling leading to higher conduction velocities. We consider two choices for the diffusivity tensor: the isotropic homogeneous case where there are no spatial variations in conductivity and fibre direction is not accounted for, and an anisotropic heterogeneous case where this information is included in the model.
Cardiac cells maintain a resting cellular transmembrane potential of approximately −85 mV, but the movement of ions leads to a change in the potential difference across the membrane of the cell and the development of an action potential, which numerically is described by the system of ODEs. A broad choice of ionic and phenomenological cell models exist which capture the characteristics of different types of cardiac cells with differing levels of biophysical accuracy. The model chosen for the atrium simulations presented here is the Courtemanche et al. model [16] consisting of 20 ODEs and derived from experimental recordings on human and animal atrial cells.
The particular numerical challenges which arise when modelling cardiac electrophysiology are: the stiffness of the cell model and the necessary time-step restrictions; the resulting steep spatial gradients which need to be effectively captured by the spatial discretisation in order to correctly predict conduction velocities; and the geometric complexity of accurately representing the anatomy. As a consequence, the computational cost of such whole-chamber models is very high, often requiring extended time on large clusters.
The computational mesh Ω, used for the simulations presented here, is obtained through segmentation of magnetic resonance angiography (MRA) images. A surface mesh is then generated, which is post-processed to ensure appropriate element density and uniformity to capture the sharp gradient in the wavefronts using high-order elements. The pulmonary veins are initially closed over in the generated surface mesh so these are opened to correctly model human physiology. No-flux Neumann boundary conditions are imposed on the edge of these pulmonary vein sleeves. The other main feature is the appendage, a finger-like extension from the main body of the atrium. Each element is augmented with high-order geometric information using the spherigon technique [30] which, in the limit , produces a -smooth surface. In this method, vertex normals are calculated as the average of the surrounding face normals and these are then fitted to a sphere to define the curvature of each element.
The spatial and temporal discretisation is controlled by a number of parameters. A convergence study provides guidance on suitable choices of these parameters for achieving accurate solutions efficiently. Results of these tests are shown in Table 1 where for each test we report the time at which complete activation of the atrium occurs, as well as the time of the simulation, on 80 cores of an SGI Altix ICE 8200 EX. Activation time is used as a metric for accuracy, since conduction velocity is particularly sensitive to spatial resolution. For each mesh, the original STL description of the atrial surface was remeshed using Gmsh using elements of the specified characteristic length h. Based on this data, a suitable choice of parameters would be mm, , which achieves an accuracy of within 5%. We also plot in Fig. 7 a comparison of the performance scaling of the solver when using h- and p-refinement using a subset of the data in Table 1. Increasing resolution by refining the polynomial order results in faster simulations for comparable degrees of freedom and wall time increases at a slower rate relative to using h-refinement. We note that although these data include timings of the whole solve (linear system and cell model evaluation), the ionic model is evaluated pointwise and therefore it can be reasonably assumed that its computational cost scales linearly with the number of degrees of freedom and by the same factor in both cases.
Table 1.
h (mm) | P | DOF | Δt (ms) | (ms) | T | |
---|---|---|---|---|---|---|
0.6 | 1 | 297 898 | 149 493 | 0.02 | 172 | 56 m 56 s |
0.8 | 1 | 93 309 | 46 960 | 0.02 | 194 | 17 m 10 s |
1.0 | 1 | 38 144 | 19 268 | 0.02 | 241 | 6 m 58 s |
1.2 | 1 | 18 222 | 9246 | 0.02 | 321 | 3 m 21 s |
1.4 | 1 | 9869 | 5033 | 0.02 | 442 | 1 m 53 s |
0.8 | 2 | 93 309 | 187 232 | 0.02 | 175 | 29 m 55 s |
1.0 | 2 | 38 144 | 76 684 | 0.02 | 186 | 12 m 16 s |
1.2 | 2 | 18 222 | 36 717 | 0.02 | 211 | 5 m 55 s |
1.4 | 2 | 9869 | 19 938 | 0.02 | 250 | 3 m 12 s |
0.8 | 3 | 93 309 | 420 811 | 0.02 | 176 | 45 m 58 s |
1.0 | 3 | 38 144 | 172 245 | 0.02 | 178 | 18 m 25 s |
1.2 | 3 | 18 222 | 82 410 | 0.02 | 187 | 8 m 48 s |
1.4 | 3 | 9869 | 44 712 | 0.02 | 207 | 4 m 55 s |
1.4 | 4 | 9869 | 79 355 | 0.02 | 188 | 7 m 07 s |
1.4 | 5 | 9869 | 123 867 | 0.10 | 193 | 1 m 57 s |
1.4 | 5 | 9869 | 123 867 | 0.08 | 190 | 2 m 26 s |
1.4 | 5 | 9869 | 123 867 | 0.06 | 187 | 3 m 14 s |
1.4 | 5 | 9869 | 123 867 | 0.04 | 185 | 4 m 48 s |
1.4 | 5 | 9869 | 123 867 | 0.02 | 182 | 9 m 38 s |
1.4 | 5 | 9869 | 123 867 | 0.01 | 180 | 18 m 58 s |
1.4 | 5 | 9869 | 123 867 | 0.005 | 177 | 39 m 21 s |
1.4 | 6 | 9869 | 178 248 | 0.02 | 178 | 12 m 33 s |
4.1. Isotropic propagation
In the isotropic case, the conductivity of the tissue is fixed at for a physiologically appropriate choice of the scalar . Fig. 8 shows a sequence of snapshots characterising the depolarisation propagation through the atrium. The coloured contours indicate the value of the transmembrane potential u ranging from a depolarised +25 mV (red) down to a polarised −81 mV (blue). Initial activation is induced through a 2 ms stimulus current , of strength 50 μA/mm2 applied to a region , for some position and radius of stimulation, as indicated by the black dot in the figure. Activation is characterised by rapid depolarisation followed by a gradual recovery of the polarised state. The activation wavefront propagates uniformly across the surface from the region of activation, following the contours of the surface. Conduction velocity is uniformly 0.5 m/s and complete activation of the atrium occurs after 182 ms. The wavelength of the depolarisation wave is typically greater than the diameter of the atrium in a healthy heart, inherently reducing the opportunity for reentry and arrhythmias. Atrial tissue in a depolarised plateau phase after the wavefront passes cannot support further activation until it has repolarised.
4.2. Anisotropic heterogeneous propagation
The isotropic model is now extended with information describing scarring of the myocardium and fibre orientation. This data represents electrophysiological characteristics of the tissue and so better reflects the true activation pattern of the atrium. Fibre orientation is prescribed using histological examination of ex-vivo human atria and is shown in Fig. 9(a). At each quadrature point the diffusion tensor is defined as the i-th component of the unit vector in the primary fibre direction. Fibre direction is oriented around the pulmonary veins and includes the main Bachmann fibre bundle which is the primary connection to the right atrium and runs laterally relative to the perspective of the figure and through the point of stimulus. Conductivities are set to reflect physiologically measured values from the literature, with an anisotropic ratio of 1:8 and preferential conductivity along the fibres. Scar tissue can be obtained through late-gadolinium enhanced magnetic resonance imaging (LG-MRI) where higher intensity voxels correlate with the location of scarred tissue. Healthy tissue is defined as intensities equal to, or less than, the mean blood pool intensity. Full scar is defined as intensities of 3 standard deviations (S.D.) above the blood pool mean intensity. Representative scar data is shown in Fig. 9(b) where grey indicates low intensity and red indicates intensities of 3 S.D. above the blood pool mean. Electrical propagation in an atrium incorporating scar tissue and fibre orientation is shown in Fig. 10 with the same stimulus protocol applied as for the isotropic case in Fig. 8. Activation wavefronts now propagate in a non-uniform manner and advance faster along the direction of fibres. Conduction is slowed by partial scar and propagates around full scar. Average conduction velocities are significantly reduced and increase the time taken to fully activate the atrium.
5. Discussion
In this paper we have outlined the construction of a high-order finite element method on arbitrary smooth codimension-1 surfaces embedded in a three-dimensional space. We use a geometric tensor approach to give a rigorous definition (see Appendix A) and compare it with an extension of the conventional Euclidean construction of planar geometric terms in finite element methods. We confirm the validity of the numerical and geometric approximations through example test cases. Finally, the method is demonstrated using a more complex biophysical modelling problem in cardiac electrophysiology.
The test cases confirm that the high-order discretisation retains exponential convergence properties with increasing geometric and expansion polynomial order if both the solution and true surface are smooth. Errors are found to saturate when the geometric errors, due to the parametrisation of the surface elements, begin to dominate the temporal and spatial discretisation errors. For the smooth solutions considered as test cases, the results show that this dominance of geometric errors quickly limits the effectiveness of further increases in the number of degrees of freedom, either through mesh refinement or higher solution polynomial orders. Increasing the order of the geometry parametrisation reduces the geometric error. The analytic test cases presented here use a coarse curvilinear mesh; for applications, meshes are typically more refined in order to capture features in the solution and so will better capture the geometry and consequently reduce this lower bound on the solution error. If the solution is not smooth, we do not expect to see rapid convergence. In the case that the solution is smooth, but the true surface is not, then exponential convergence with P and can only be achieved if, and only if, the discontinuities are aligned with element boundaries. However, if discontinuities lie within an element, convergence will be limited by the geometric approximation, since the true surface cannot be captured. In the cardiac problem, we consider both the true surface and solution to be smooth.
Numerical convergence tests on the atrium reflect the significant speed-up obtained using high-order discretisations in comparison to linear discretisations for the same level of accuracy. While a proportion of this speed-up can be attributed to the faster convergence rate of polynomial refinement over mesh refinement, high-order methods are significantly faster for comparable numbers of degrees of freedom. This is most likely due to the increased data locality of elemental regions and therefore greater CPU cache coherence when performing operations element-wise, compared to the cost of memory indirection when evaluating a large sparse matrix in the linear case.
The general metric formulation was compared with an extension of a traditional two-dimensional finite element method implementation to the embedded manifold. While the two approaches can be seen to be mathematically equivalent, the metric formulation possesses greater implementational simplicity. The metric tensor is of size compared to the matrix of factors resulting from extending the conventional formulation. For a large mesh, this may be a significant storage consideration. Furthermore, in the general case when the geometric definition and the quadrature points do not share the same points distribution, interpolation is necessary on each usage of the Jacobian or metric factors. Consequently, the proposed metric tensor approach will have a reduced computational cost.
Acknowledgements
This work was supported by the British Heart Foundation FS/11/22/28745 and RG/10/11/28457, NIHR Biomedical Research Centre funding, the ElectroCardioMaths Programme of the Imperial BHF Centre of Research Excellence, and Drs Phang Boon Lim and Norman Qureshi. S.Y. and R.M.K. are supported by the Department of Energy (DOE NETL DE-EE0004449). We acknowledge the support of the Imperial College High Performance Computing Service.
Footnotes
This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Contributor Information
Chris D. Cantwell, Email: c.cantwell@imperial.ac.uk.
Sergey Yakovlev, Email: sergeyyak@gmail.com.
Robert M. Kirby, Email: kirby@cs.utah.edu.
Nicholas S. Peters, Email: n.peters@imperial.ac.uk.
Spencer J. Sherwin, Email: s.sherwin@imperial.ac.uk.
Appendix A. Differential geometry formulation of the Laplace operator
We outline a rigorous derivation of the Laplace–Beltrami operator. Further to the notation used in Section 2, we use the convention that indices appearing once in the upper position and once in the lower position are considered dummy indices and are implicitly summed over their range, while non-repeated indices are considered free to take any value. Derivatives are also denoted using the lower-index comma notation, for example . With this in mind, we now construct the fundamental differential operators we require for a 2-dimensional manifold embedded in a 3-dimensional space. In order to express these operators in curvilinear coordinates we start by assuming that we have a smooth surface parametrisation given by
Next we will define the Jacobian of x as the tensor
where can be viewed as a covariant surface vector (by fixing the upper index) or as a contravariant space vector (by fixing the lower index). The surface metric tensor can be defined in terms of the as
(A.1) |
which can be considered to transform a contravariant quantity to a covariant quantity. Similarly the conjugate tensor , which does the reverse transformation, is given by
(A.2) |
where g is the determinant of . The metric tensor and its conjugate satisfy the condition
To construct the divergence operator we will also need the derivative of g with respect to components of the metric, . We know that g is invertible and from linear algebra we have that the inverse of the metric (A.2) satisfies , where is the cofactor matrix of g. Therefore , or in components . Using Jacobiʼs formula for the derivative of a matrix determinant with respect to its entries, and since g is invertible, the derivative of the metric determinant is
(A.3) |
A.1. Divergence operator
The partial derivative of a tensor with respect to a manifold coordinate system is itself not a tensor. In order to obtain a tensor, one has to use the covariant derivative, defined below. The covariant derivative of a contravariant vector is given by
(A.4) |
where are Christoffel symbols of the second kind. The Christoffel symbols of the first kind are defined by
Here we note that is symmetric in the first two indices. To obtain the Christoffel symbols of the second kind we formally raise the last index using the conjugate tensor,
(A.5) |
which retains the symmetry in the lower two indices. We can now express the derivatives of the metric tensor in terms of the Christoffel symbols as
We now define the divergence operator on the manifold, . Consider first the derivative of the determinant of the metric tensor g with respect to the components of some local coordinates system . We apply the chain rule, making use of the derivative of the metric tensor determinant with respect to components of the metric (A.3) and the relationship (A.5), to get
We can therefore express the Christoffel symbol in terms of this derivative as
(A.6) |
Finally, by substituting for in the expression for the divergence operator
and we can deduce a formula for divergence of a contravariant vector as
(A.7) |
A.2. Laplacian operator
The covariant derivative (gradient) of a scalar on the manifold is identical to the partial derivative, . To derive the Laplacian operator we need the contravariant form of the covariant gradient above which can be found by raising the index using the metric tensor, giving
(A.8) |
and substituting (A.8) for in (A.7) to get the Laplacian operator on the manifold as
(A.9) |
A.3. Anisotropic Laplacian operator
Anisotropic diffusion is important in many applications. In the ambient Euclidean space, this can be represented by a diffusivity tensor σ in the Laplacian operator as
On our manifold, we seek the generalisation of (A.9), in the form
where the are entries in the surface diffusivity. For a contravariant surface vector we can find the associated space vector as . Similarly if is a covariant space vector, then is a covariant surface vector. Using these we can construct the anisotropic diffusivity tensor on the manifold by constraining the ambient diffusivity tensor σ to the surface. The contravariant surface gradient is mapped to the corresponding space vector, which lies in the tangent plane to the surface. This is scaled by the ambient diffusivity and then projected back to a covariant surface vector. Finally, we use the conjugate metric to convert back to a contravariant form. The resulting surface Laplacian is
Following on from this we deduce that
It can be seen that in the case of isotropic diffusion that ,
References
- 1.Stam J. Flows on surfaces of arbitrary topology. ACM Trans. Graph. 2003;22:724–731. [Google Scholar]
- 2.Sbalzarini I., Hayer A., Helenius A., Koumoutsakos P. Simulations of (an) isotropic diffusion on curved biological surfaces. Biophys. J. 2006;90(3):878. doi: 10.1529/biophysj.105.073809. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Burger M. Finite element approximation of elliptic partial differential equations on implicit surfaces. Comput. Vis. Sci. 2009;12:87–100. [Google Scholar]
- 4.Dziuk G. Partial Differential Equations and Calculus of Variations. 1988. Finite elements for the Beltrami operator on arbitrary surfaces; pp. 142–155. [Google Scholar]
- 5.Holst M. Adaptive numerical treatment of elliptic systems on manifolds. Adv. Comput. Math. 2001;15(1):139–191. [Google Scholar]
- 6.Dziuk G., Elliott C.M. Surface finite elements for parabolic equations. J. Comput. Math. 2007;25:385–407. [Google Scholar]
- 7.Calhoun D., Helzel C. A finite volume method for solving parabolic equations on logically Cartesian curved surface meshes. SIAM J. Sci. Comput. 2009;31(6):4066–4099. [Google Scholar]
- 8.Osher S., Fedkiw R. Springer; 2002. Level Set Methods and Dynamic Implicit Surfaces. vol. 153. [Google Scholar]
- 9.Macdonald C., Ruuth S. Level set equations on surfaces via the closest point method. J. Sci. Comput. 2008;35(2):219–240. [Google Scholar]
- 10.Macdonald C., Ruuth S. The implicit closest point method for the numerical solution of partial differential equations on surfaces. SIAM J. Sci. Comput. 2009;31(6):4330–4350. [Google Scholar]
- 11.Greer J., Bertozzi A., Sapiro G. Fourth order partial differential equations on general geometries. J. Comput. Phys. 2006;216(1):216–246. [Google Scholar]
- 12.Ruuth S., Merriman B. A simple embedding method for solving partial differential equations on surfaces. J. Comput. Phys. 2008;227(3):1943–1961. [Google Scholar]
- 13.Dziuk G., Elliott C.M. Eulerian finite element method for parabolic PDEs on implicit surfaces. Interfaces Free Bound. 2008;10:119–138. [Google Scholar]
- 14.Deckelnick K., Dziuk G., Elliott C.M., Heine C.J. An h-narrow band finite-element method for elliptic equations on implicit surfaces. IMA J. Numer. Anal. 2010;30:351–376. [Google Scholar]
- 15.Greer J. An improvement of a recent Eulerian method for solving PDEs on general geometries. J. Sci. Comput. 2006;29(3):321–352. [Google Scholar]
- 16.Courtemanche M., Ramirez R., Nattel S. Ionic mechanisms underlying human atrial action potential properties: insights from a mathematical model. Am. J. Physiol., Heart Circ. Physiol. 1998;275(1):H301–H321. doi: 10.1152/ajpheart.1998.275.1.H301. [DOI] [PubMed] [Google Scholar]
- 17.Giraldo F. 2001. A spectral element shallow water model on spherical geodesic grids. Tech. rep., DTIC document. [Google Scholar]
- 18.Taylor M., Tribbia J., Iskandarani M. The spectral element method for the shallow water equations on the sphere. J. Comput. Phys. 1997;130(1):92–108. [Google Scholar]
- 19.Diewald U., Preußer T., Rumpf M. Anisotropic diffusion in vector field visualization on euclidean domains and surfaces. IEEE Trans. Vis. Comput. Graph. 2000;6(2):139–149. [Google Scholar]
- 20.Arthurs C.J., Bishop M.J., Kay D. Efficient simulation of cardiac electrical propagation using high order finite elements. J. Comput. Phys. 2012;231(10):3946–3962. doi: 10.1016/j.jcp.2012.01.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Aris R. Dover; 1989. Vectors, Tensors, and the Basic Equations of Fluid Mechanics. [Google Scholar]
- 22.Karniadakis G., Sherwin S. 2nd edition. Oxford University Press; 2005. Spectral/hp Element Methods for CFD. [Google Scholar]
- 23.Dubiner M. Spectral methods on triangles and other domains. J. Sci. Comput. 1991;6(4):345–390. [Google Scholar]
- 24.Sherwin S.J., Karniadakis G.E. Tetrahedral hp finite elements: Algorithms and flow simulations. J. Comput. Phys. 1996;124:14–45. [Google Scholar]
- 25.Nektar++ 2012. http://www.nektar.info
- 26.Vos P.E., Sherwin S.J., Kirby R.M. From h to p efficiently: Implementing finite and spectral/hp element methods to achieve optimal performance for low- and high-order discretisations. J. Comput. Phys. 2010;229(13):5161–5181. [Google Scholar]
- 27.Fischer P., Lottes J., Pointer D., Siegel A. Petascale algorithms for reactor hydrodynamics. J. Phys. Conf. Ser. 2008;125:012076. [Google Scholar]
- 28.Ascher U.M., Ruuth S.J., Wetton B.T. Implicit–explicit methods for time-dependent partial differential equations. SIAM J. Numer. Anal. 1995;32(3):797–823. [Google Scholar]
- 29.Vos P.E., Eskilsson C., Bolis A., Chun S., Kirby R.M., Sherwin S.J. A generic framework for time-stepping partial differential equations (PDEs): general linear methods, object-oriented implementation and application to fluid problems. Int. J. Comput. Fluid Dyn. 2011;25(3):107–125. [Google Scholar]
- 30.Volino P., Thalmann N. Computer Animation 98, Proceedings. IEEE; 1998. The spherigon: a simple polygon patch for smoothing quickly your polygonal meshes; pp. 72–78. [Google Scholar]