ORIGINAL RESEARCH article

Front. Phys., 10 October 2017

Sec. Computational Physics

Volume 5 - 2017 | https://doi.org/10.3389/fphy.2017.00048

A Cell-Based Framework for Numerical Modeling of Electrical Conduction in Cardiac Tissue

  • 1. Simula Research Laboratory, Center for Biomedical Computing, Lysaker, Norway

  • 2. Department of Informatics, University of Oslo, Oslo, Norway

  • 3. Department of Mathematics, University of Oslo, Oslo, Norway

Abstract

In this paper, we study a mathematical model of cardiac tissue based on explicit representation of individual cells. In this EMI model, the extracellular (E) space, the cell membrane (M), and the intracellular (I) space are represented as separate geometrical domains. This representation introduces modeling flexibility needed for detailed representation of the properties of cardiac cells including their membrane. In particular, we will show that the model allows ion channels to be non-uniformly distributed along the membrane of the cell. Such features are difficult to include in classical homogenized models like the monodomain and bidomain models frequently used in computational analyses of cardiac electrophysiology. The EMI model is solved using a finite difference method (FDM) and two variants of the finite element method (FEM). We compare the three schemes numerically, reporting on CPU-efforts and convergence rates. Finally, we illustrate the distinctive capabilities of the EMI model compared to classical models by simulating monolayers of cardiac cells with heterogeneous distributions of ionic channels along the cell membrane. Because of the detailed representation of every cell, the computational problems that result from using the EMI model are much larger than for the classical homogenized models, and thus represent a computational challenge. However, our numerical simulations indicate that the FDM scheme is optimal in the sense that the computational complexity increases proportionally to the number of cardiac cells in the model. Moreover, we present simulations, based on systems of equations involving ~117 million unknowns, representing up to ~16,000 cells. We conclude that collections of cardiac cells can be simulated using the EMI model, and that the EMI model enable greater modeling flexibility than the classical monodomain and bidomain models.

1. Introduction

The pumping function of the heart is governed by an electrochemical wave traversing the entire cardiac muscle resulting in the muscle's synchronized contraction. This electrochemical wave has been subject to intense study over many decades and mathematical models have played an essential role in understanding its properties. However, these models are based on homogenization of the cardiac tissue, which imposes limitations on the level of detail that can be studied by the models. For instance, the details of the dynamics surrounding a single cell are difficult to study using classical homogenized models simply because the single cell is not present in such models.

In this paper, we consider an emerging mathematical modeling framework for representing and simulating excitable cells in general and cardiac cells in particular. In this framework, the extracellular space, the cell membranes, and the intracellular spaces are explicitly represented as separate physical and geometrical objects. The state variables are the extracellular, membrane, and intracellular potentials defined over the corresponding domains. We refer to this framework as the EMI (Extracellular-Membrane-Intracellular) model. This approach has been applied in several earlier papers (e.g., [17]), which used the EMI framework (or related approaches) for detailed simulations of a single cell or a small number of cells. Indeed, the presentation here is very much motivated by the formulation presented by Stinstra et al. [5] and by Agudelo-Toro and Neef [4]. Furthermore, the EMI approach was used to study the effect of the ephaptic coupling of neurons in Tveito et al. [8].

The EMI framework represents an alternative to the classical and more common bidomain or monodomain models. These latter models are based on homogenization of the cardiac tissue and the extracellular space, the intracellular space, and the cell membrane are all assumed to exist everywhere (e.g., [913]). In the following, when we refer to homogenized models, we will refer to models of the monodomain or bidomain type. In contrast, the EMI approach avoids this full homogenization at the tissue level. Note however, that homogenization is also used in the EMI approach to formulate equations for the intracellular domain and the extracellular domain.

The classical models (monodomain, bidomain) have been successfully used to study the propagation of the electrochemical wave in cardiac tissue (e.g., [1416]), the initiation of excitation waves (e.g., [1721]), the development of cardiac arrhythmias (e.g., [14, 17, 18]), the effect of defibrillation (e.g., [2228]), and the effect of various drugs (e.g., [2932]).

Despite the many successful applications of the monodomain and bidomain models, there are a number of motivating factors for introducing a more explicit, more accurate, and more detailed framework for modeling cardiac tissue. We address some of these factors in the following paragraphs.

1.1. Homogenized models may be insufficient to represent details of the remodeling of the heart

Although, classical models represent the big picture of the electrochemical wave traversing cardiac tissue well, they may fail to reveal the finer details of cardiac conduction. For example, it is well-established that local perturbations to the conduction velocity may be arrhythmogenic; in particular, slowed conduction will increase the risk of arrhythmias [33]. It is therefore essential to understand how various remodelings of the heart affect the conduction velocity. Individual perturbations of the size and shape of the cardiac cells clearly affect the conduction velocity (e.g., [34]), but such changes are very hard to represent in a classical homogenized model, since a detailed representation of the individual cells in the tissue is needed. Furthermore, local density distributions of ion channels on the cell membrane will affect local conduction properties and such effects are also very hard, if even possible, to represent in the classical models.

1.2. Homogenized models are unsuitable for addressing the ephaptic coupling of cardiac cells

The electrical conduction of the heart is believed to depend on direct cell-to-cell contact realized in terms of gap junctions (e.g., [3537]). These connections are reduced under heart failure, resulting in impaired conduction velocity that may in turn increase the probability of arrhythmias (e.g., [38, 37]). However, even when conduction through gap junctions is significantly reduced, electrical signals are still conducted (e.g., [39]). This conduction is believed to rely on ephaptic coupling between neighboring cells via the extracellular space. The effect depends on the shape and size of the extracellular space and is thus not directly amenable to analysis via the homogenized bidomain or monodomain models.

1.3. Simulating cell monolayers is of increasing significance

The number of cardiomyocytes in the human ventricles can be estimated to be around 8 billion (e.g., [40]), and the number is close to 4 million for the mouse heart (e.g., [41]). In both cases, a homogenized model may be justified by the large number of cells involved. However, for experimental setups with monolayers of cardiac cells, the number of cells is much lower (hundreds or a few thousands) and the validity of the homogenized continuum approach becomes questionable. The EMI model, on the other hand, is very well suited, since it represents every individual cell. The ability to faithfully simulate monolayers of cardiac cells has become very important since it has become possible to simultaneously measure the transmembrane potential and the intracellular calcium concentration (e.g., [42]). Therefore, at least in principle, the inversion of spatial models of monolayers may be applied to characterize properties of single cells using monolayer experiments. This is particularly important because of the development of human induced pluripotent stem cells (hi-PSC). Based on skin samples, such cells can be used to derive cardiac cells with certain properties identical to a patient's cardiac cells. Therefore, this technology is believed to have great potential in the development of personalized drugs for rare diseases (e.g., [4345]).

1.4. Available computational power allows for cell size resolution

Twenty-five years ago, the best mathematical model of cardiac tissue was solved using 257 computational nodes [12, 46]. At that time, an accurate representation of cardiac tissue in terms of the representation of individual cells was inconceivable for reasons of both storage and computing time. This has changed dramatically; in recent computational studies, 29 million computational nodes were used to represent cardiac tissue [27, 47]. The computational mesh size in these simulations was about 59 μm, which should be compared with 100 μm, the typical length of a cardiac cell. This means that current simulators of the electrophysiology of the heart are, at least in principle, able to resolve features at the individual cell level.

The main purpose of the present paper is to assess the computational challenges of the EMI modeling framework. We will show how the model's complexity increases as the number of cardiac cells in the simulations increases and how the complexity of the membrane model affects the overall CPU demands.Furthermore, we will demonstrate that the EMI framework opens the possibility of simulating local properties of the cell that are hard to represent in homogenized models.

We introduce an operator splitting scheme for the EMI model and propose and compare three numerical schemes for the discretization of the resulting partial differential equations (PDEs): one finite difference-based (FDM) and two finite element-based (FEM) schemes of various degrees of complexity, computational cost, and accuracy. We compare the three schemes numerically in terms of convergence rates and computational cost. Moreover, to illustrate the distinctive capabilities of the EMI model, we present new results for simulating monolayers of cardiac cells with spatially heterogeneous distributions of ionic channels across the cell membrane.

Our results demonstrate that the EMI approach is computationally feasible: We can solve systems relevant for simulating monolayers of cardiac cells with sufficient resolution. Moreover, we show, using numerical computations based on the FDM code, that the computational effort per cell is bounded independently of the number of cardiac cells, and thus that the effort increases at most linearly with the number of cells.

1.5. Outline

In the next section, we will present the EMI model and three numerical methods used to solve the model. Next, we will discuss the numerical accuracy of the solutions, show convergence under mesh refinements, and assess the methods' CPU demands. To illustrate the ability to model local properties of individual cells, we present an example showing the difference in the conduction velocity of cells with uniform and non-uniform distributions of sodium channels. In the final sections, the results will be summarized and discussed.

2. Models and methods

In this section, we present the EMI model and numerical methods for solving the corresponding set of equations.

2.1. The EMI model

We will use the EMI model to simulate collections of cardiac cells. However, to present the model, it is sufficient to consider the case of two coupled cells.

We assume that the complete computational domain consists of intracellular spaces , with k = 1, 2 in the case of two cells, that are connected by gap junctions Γ1,2 and surrounded by a connected extracellular space Ωe. The membrane is defined to be the intersection between each intracellular domain and the extracellular domain and is denoted by Γk, while the remaining boundary of the extracellular domain is denoted by ∂Ωe. Figure 1 illustrates a two-dimensional (2D) version of this setup, showing two connected cells surrounded by extracellular space. In our computations (except in the first simple test case with an analytical solution) all cells are 3D and the cells can be connected in one-, two-, or three-dimensional collections. In one-dimensional strands of cells, the cell coupling is as illustrated in Figure 1; for two and three-dimensional collections of cells, the coupling in the y- and z-directions are similar to the x-coupling illustrated in the figure.

Figure 1

For the case illustrated in Figure 1, the EMI model can be formulated as follows: Find the extracellular potential ue defined over Ωe, the intracellular potentials defined over , and the transmembrane potentials vk defined over Γk for k = 1, 2 and w defined over Γ1,2 satisfying

for k = 1, 2. Here, ne is the normal pointing out from Ωe and is the (outward) normal pointing out from for k = 1, 2; σi and σe are the intracellular and extracellular conductivities, respectively; represents the ionic current density, which typically depends on additional state variables such as ionic concentrations; and Igap represents the gap junction current density. In terms of units, the potentials ue, , vk, and w are given in mV; the current densities , , I1,2, and Igap are given in μA/cm2; the conductivities σi and σe are given in mS/cm; the capacitances Cm and C1,2 are given in μF/cm2; length is given in cm; and time is given in ms. In the following, we will refer to (1–9) as the EMI model. For brevity, we will write ui in place of , v in place of vk, Iion in place of and Γ in place of Γk for k = 1, 2 when context allows.

2.2. Membrane model

In our computations, we will consider both a passive and an active model for the dynamics on the cell membrane between the intracellular and extracellular spaces. In the passive model, Iion is given by the linear model

where Rm represents the resistance of the passive membrane (in kΩcm2) and vrest denotes the resting potential of the membrane. In the active model, we let Iion be represented by the action potential (AP) model of Grandi et al. [48]. In this case, Equation (6) is replaced by a system of the form

where v represents the membrane potential and s represents a collection of additional state variables introduced in the AP model. Furthermore, Iion represents the sum of the ionic current densities across the membrane through a number of different types of ion channels, pumps, and exchangers and F(v, s) represents the ordinary differential equations (ODEs) describing the dynamics of the additional state variables. The Grandi model is implemented by defining a membrane potential v and a set of state variables s for each of the membrane nodes of the mesh. We let all state variables of the Grandi model, including the intracellular ionic concentrations, be defined only on the mesh nodes located on the cell membrane, and we allow the value of these variables to vary for different membrane nodes located on the same cell. The values of the state variables are updated in each time step using an operator splitting scheme described below. Intracellular and extracellular gradients of the ionic concentrations are ignored (see comment in section 4).

Finally, we represent the gap junction between neighboring cells by a passive membrane:

where Rgap represents the resistance of the passive membrane (in kΩcm2). A discussion of the modeling of the gap-junctions is given in Hogues et al. [1] where a boundary element method is used to solve a model similar to the system (1–9).

2.3. Operator splitting scheme

The ionic current density Iion entering the EMI model through (6) typically introduce a significant number of additional states [e.g., as in (11)]. For this reason, we consider an operator splitting approach to solve the EMI model defined by (1–9).

The system (1–9) is solved by first applying given initial conditions for v and w. Then, for each time step n, we assume that the solutions vn−1 and wn−1 are known for t = tn−1 on Γ and Γ1,2 respectively. We then find the solutions at t = tn using a two-step (first-order) operator splitting procedure, but note that a three-step (second-order) operator splitting could equally well be used (e.g., [11]).

In the first step, we update the solutions for the membrane potential by solving a system of ODEs of the form (11) and (12) over Γ with Im set equal to zero. In the following numerical experiments, the ODE system (11) and (12) is solved by taking m forward Euler steps of size Δt* = Δt/m for each global time step, though any other suitable ODE scheme could be used.

In the second (PDE) step of the operator splitting procedure, we solve the linear system arising from an implicit discretization in time and space of (1–9) with and set to zero. For the discretization in time of (6) and (9), we use an implicit Euler scheme using the solution from the first (ODE) step of the operator splitting scheme as the previous state.

When a linear model for Iion is considered, the first (ODE) step of the splitting scheme is redundant and thus omitted, and for k = 1, 2 is kept in the PDE step, altering the linear system to be solved.

We propose and compare three different approaches for the spatial discretization of the PDE step in this study, each presented in the following sections. For the numerical experiments, the finite difference method (FDM) was implemented directly in MATLAB, while the finite element methods (FEMs) were implemented using the FEniCS finite element library [49, 50]. All computations were run on a Dell PowerEdge R430 with dual Intel Xeon processors (E5-2623 v4 2.60 GHz) and 12 x 32 GB RDIMM; each processor runs four kernels with two threads each.

2.3.1. Finite difference method for solving the EMI PDEs

We first consider a finite difference scheme for solving the PDE step of the EMI model as defined above. To simplify the notation, we describe here the 2D case only; the extension to three dimensions is immediate. The spatial discretization employed here is taken from Tveito et al. [8].

Figure 2 shows the four different types of nodes used in the computations. Nodes marked by × represent the extracellular domain. In these nodes, we define a single unknown, ue. Similarly, nodes marked by ◦ represent the intracellular domain (either or ) and we define a single unknown ui for these nodes. Nodes marked by ⊗ represent the membrane between the intracellular and the extracellular space (Γ = Γ1 ∪ Γ2). For these nodes, we define three unknowns: ue, ui, and v, with v = uiue. Similarly, nodes marked by • represent the membrane between two cells and, for these nodes, we define the three unknowns , , and w, with .

Figure 2

We use the notation for the numerical solution of the extracellular potential, ue, at the point (xj, yk) = (jΔx, kΔy) at time tn = nΔt and use an analogous notation for the numerical solution of the remaining variables.

We discretize (1) using the finite difference scheme

where Equation (2) is discretized similarly, with σe replaced by σi and ue replaced by ui.

On the membrane between the intracellular and extracellular domains, there are three unknowns and three equations. The first equation is given directly by (5) and the second equation is given by a first-order finite difference discretization of (4). Finally, the third equation is given by an implicit discretization of (6) of the form

where is a discrete version of the term ne · σeue from (4) and vn−1/2, j, k is the solution of the membrane potential from the first step of the operator splitting procedure.

Similarly, for the nodes on the membrane between the cells, there are three unknowns and three equations. The first equation is given directly by (8), the second is a first-order finite difference discretization of (7), and the third is an implicit discretization of (9) of the form

where is a discrete version of the term from (7) and is a linear function of wn, j, k given by (13). It is worth mentioning here that if the gap junction dynamics is modeled using a non-linear model, operator splitting can be applied as was done for the membrane model.

Two special types of nodes require some special treatment. The first type is the nodes on the corners of the membrane. For these nodes, we define two flux terms , one for the normal derivative in the x direction and one for the normal derivative in the y direction, and we use the mean of these two terms in the equation of the form (15). Furthermore, in the flux equality Equation (4), we also define two intracellular flux terms, one for each direction, and let the sum of the two intracellular flux terms equal the sum of the two extracellular flux terms.

The second special node type is the extracellular nodes located next to a node on the membrane between two cells. In Figure 2, these are the two extracellular nodes just above or below Γ1,2. For these nodes, we define a no-flux boundary condition between the extracellular node and the adjacent node on Γ1,2. This is implemented by defining an extracellular potential for the node on the end of Γ1,2 with a value equal to the extracellular potential in the node just outside Γ1,2.

When considering a linear model for Iion, we skip the first step of the operator splitting procedure and replace the equation of the form (15) in the finite difference scheme by

A major drawback of the finite difference discretization is the fact that actual cell geometries are quite complex and virtually impossible to handle with this method. However, complex geometries can be resolved by the finite element method. In the following, we shall propose two different FEM formulations of the EMI Equations (1–9): the mortar finite element formulation, where the primary unknowns are the intra/extracellular potentials, and the H(div)-based finite element formulation, where the currents are the primary unknowns in the cells/tissue.

2.3.2. Mortar finite element method for solving the EMI PDEs

Mortar finite element methods ([51]; see also [4] for the application of the method in simulations of cell membranes) allow for the coupling of different types of variational problems posed over non-overlapping domains by weakly (in an integral sense) enforcing interface conditions on common boundaries. For the EMI system, the Poisson problems (1) and (2) are coupled by the conditions (4) and (5) and the conditions (7) and (8).

Let Ve and be spaces of functions over Ωe and for k = 1, 2, and let Q be a function space defined over Γ = Γ1 ∪ Γ2 ∪ Γ1,2, to be precisely defined below. For any ψ ∈ Q, we denote by ψ1, ψ2 and ψ1,2 the restriction of ψ to Γ1, Γ2, and Γ1,2, respectively. With this notation, given (vk)n and wn at time level n, at each time level n+1 of the temporal discretization, we aim to find the membrane current density JQ, defined such that and and the extracellular and intracellular potentials ueVe and such that:

Here, the first three equations of the variational problem are obtained by multiplying (1) and (2) by test functions ϕe and and integrating over the associated domains while using conditions (4) and (7) in the integration by parts. The final three equations are then weakly enforcing the constraints

which are obtained by a backward Euler discretization of (6) and (9) (cf. Equations 15 and 16) while expanding the transmembrane potentials of and Γ1,2 at the (n+1)th temporal level using definitions (5) and (8), respectively. We note that the definitions of the transmembrane potentials enter the variational problem only via (19). Moreover, the membrane current density J can be interpreted as the multiplier of the augmented Lagrangian associated with these constraints.

System (18) is the linear part of the operator splitting procedure described above. The well-posedness of the system (18) was established in Belgacem [52] or Lamichhane [53] for the stationary case, where it was shown that a unique solution exists in the Sobolev spaces , and Q = H−1/2(Γ).

To discuss the finite element discretization of the well-posed problem (18), we denote by and simplicial meshes of the domains Ωe and , respectively. Generally, the mortar finite element approach allows the tessellations to be independent of one another and the elements of Γh, the triangulation of Γ, are defined in terms of facets of one of the sharing tessellations. For simplicity, we opt here for meshes such that they share facets on Γ (see Figure 3). In particular, the neighboring tessellations define identical meshes Γh.

Figure 3

In the following, the discrete finite element subspaces of Ve, , and Q will be constructed from continuous piecewise linear Lagrange elements. More precisely, we let

and thus the space Qh is the trace space of the functions in Ve,h and . We refer to Wohlmuth [54] and references therein for proof of the numerical stability of this choice of discretization. We also note that the choice of element for the space Qh simplifies the implementation, however, dual Lagrange multipliers (see [53, 54]), though more involved, are more suitable if static condensation is employed to solve the linear system arising from (18). Finally, in the numerical experiments, the scheme was implemented using the FEniCSii extension [55] of the FEniCS finite element library [49, 50].

2.3.3. H(div)-based finite element method for solving the EMI PDEs

The mortar finite element formulation defined above introduces separate function spaces for each of the intracellular domains , which adds implementational complexity. As an alternative approach, we also consider an H(div)-based finite element method (e.g., [56]) for solving the PDE step of the operator splitting scheme. This scheme relaxes the continuity constraint for the potentials throughout the domain Ω and introduces potential gradients as additional variables with the appropriate normal continuity regularity for the associated currents. Therefore, the interface continuity conditions for the currents can be handled seamlessly.

To this end, we use the intracellular current density vector Ĵi and the extracellular current density vector Ĵe as additional vector fields defined over Ωi and Ωe, respectively:

We let Ĵ denote the extension of Ĵi and Ĵe to Ω, and assume that Ĵ is in the space H(div, Ω), that is, Ĵ is a square-integrable vector field with square-integrable divergence. Furthermore, denote by u the extension of ui and ue to Ω, and analogously for σ. In addition, we define as the extension of the transmembrane potential v and the transcellular potential w and we let Î denote the extension of Iion and Igap. Thus the variable u is defined over Ω while and Î are defined over the whole interior membrane .

Let ni denote the outward normal, from the intracellular domains to the extracellular domain, on Γk for k = 1, 2 and from to on Γ1,2 and, analogously, let ne denote the outward normal from the extracellular to the intracellular domains. By the flux continuity conditions (4) and (7), we require that Ĵi · ni = −Ĵe · ne on Γk (k = 1, 2) and analogously on Γ1,2. Let denote the membrane potential solution from the ODE step in the nonlinear case or the membrane solution at the previous time in the linear (no ODE) case.

With this notation and after an implicit Euler discretization in time, our H(div)-based finite element scheme at each time step n reads as follows: For given vn,*, fn, and gn, find , and such that

In the case of a nonlinear Iion, we set α = 0 and treat the non-linear term by operator splitting as outlined above.

In the numerical experiments, as for the mortar finite element method described in section 2.3.2, we let denote a simplicial mesh of Ω conforming to (k = 1, 2) and Ωe such that , the restriction of to , defines a conforming mesh of (of one topological dimension lower). Relative to these meshes, we define the spaces Sh as the lowest-order Raviart–Thomas elements defined over and Uh as the space of (discontinuous) piecewise constants defined over , and Vh as the space of (discontinuous) piecewise constants defined over . The Raviart–Thomas elements are, by definition, such that the normal components of the vector fields are continuous across cell facets (edges in 2D, faces in 3D) and thus the flux continuity conditions (4) and (7) hold by construction [56].

This mixed finite element combination is conforming and our numerical experiments indicate that the element pairing is stable and convergent. The scheme can also be compared to the schemes discussed by Sacco [57]. Based on the interpolation properties of the lowest-order finite element spaces as described above, we expect to observe first-order convergence for u, Ĵ, and in the respective L2 norms, and first-order convergence for Ĵ in the H(div) norm. Higher-order convergence in the L2 norm of Ĵ can be recovered by using the Brezzi–Douglas–Marini [58] H(div) elements instead of the Raviart–Thomas family.

In the numerical experiments, this scheme was implemented using the FEniCS finite element library [49, 50].

2.4. Optimal solvers

A common problem in scientific computing is to solve a linear PDE defined on a certain geometry. After applying some sort of discretization characterized by a mesh parameter h, the remaining problem is to solve a linear system of algebraic equations. The linear solution process is usually said to be order optimal provided that the number of floating point operations (FLOPs) required to solve the problem grows linearly in the number of unknowns as h decreases. For self-adjoint, linear PDEs, optimal solvers are well understood (e.g., see the review papers [59, 60] for the theory of saddle point problems). In simulating cardiac tissue, optimal solvers exist for both the monodomain model and the bidomain model (e.g., [11, 61, 62]).

Feynman [63] suggested an alternative, but related, definition of order optimality: Suppose a numerical method is used to simulate a small space–time volume of a physical process and the mesh is refined to convergence. Then computational complexity should only grow linearly as the space–time volume is increased. For our application, this definition is very well suited; we consider a single cell surrounded by an extracellular space, and we carry out numerical simulations to find the mesh resolution in time and space necessary to obtain convergence. Then we define a numerical solution as being order optimal provided that the CPU efforts only increase linearly in the number of biological cells in the computation.

3. Results

In this section, we present applications of the methods introduced above. We start by assessing the accuracy of the numerical methods for a very simple unitless test problem where an analytical solution can be enforced using the method of manufactured solutions. For non-linear membrane dynamics, we explore convergence under mesh refinements. Next, we consider the CPU efforts needed to solve the numerical problems arising from the EMI model and we are particularly interested in the CPU effort per physical cell to understand the scalability of the EMI approach. For the FEM, we also show results for cylindrical geometries. Finally, we investigate the effect of non-uniform distributions of sodium channels along the cell membrane.

3.1. Model parameters

In the first unitless test problem we consider a 2D domain consisting of an extracellular domain and a single cell. In the remaining simulations, we consider 3D domains consisting of a number of connected cells and the surrounding extracellular space. The coupled cells are organized as a single layer where the cells are connected to each other in a grid in the x and y directions by gap junctions. The shape and size of the cells and the extracellular domain will be specified for each simulation below. We primarily consider cells of the shape illustrated in Figure 4, where each part of the intracellular domain, ΩO, ΩW, ΩE, ΩS, and ΩN, is shaped as a rectangular cuboid.

Figure 4

The parameter values used in the simulations are given in Table 1 unless otherwise specified. Moreover, we use the initial condition w = 0 in all the simulations of connected cells. When the Grandi model is used to model Iion, we mainly use the default initial conditions of the Grandi model for v and the remaining state variables. When a passive model is used for Iion, we primarily use the initial condition v = vrest.

Table 1

ParameterValueReferences
Cm1μF/cm2[64]
C1,21μF/cm2
σi5mS/cm[65]
σe20mS/cm[7]
vrest−85 mV[66]
Rm10kΩcm2[64]
Rg0.0015kΩcm2[7]
Δx, Δy, Δz2μm
Δt (PDE part)0.1 ms
Δt* (ODE part)0.001 ms

Default parameter values used in the simulations.

For the parameters used in the Grandi model, we refer to Grandi et al. [48].

3.2. Numerical verification and accuracy

3.2.1. Linear ionic current: method of manufactured solutions

To evaluate the accuracy of the numerical methods, we construct an analytical solution for a 2D single-cell version of the EMI model with the passive model Iion = v. The analytical solution of this simple example is constructed using the method of manufactured solutions (e.g., [67]). We consider a single cell surrounded by extracellular space:

For this case, we assume that the model is unitless with parameters σi = σe = Cm = 1, and we define the domain Ω = Ωi ∪ Ωe = [0, 1] × [0, 1], where Ωi = [0.25, 0.75] × [0.25, 0.75].

We let

and the analytical solution of (24–30) is then given by

In the numerical experiments of this test case, we use Δt = 0.01/n, where for the FDM, n equals the number of intervals in each direction of the spatial discretization of the domain. In the FEM case, 2n2 is the number of triangles that constitute the uniformly discretized mesh. We note that the chosen time step criterion is not necessary for numerical stability of any of the methods. Rather, it was selected to yield more stable convergence rates. For this test case, the linear systems arising in the experiments are solved by direct solvers (LU factorization), and the errors are computed at time t = 0.1.

Table 2 shows the maximum error of the finite difference method as the discretization parameters are refined. We observe that the convergence rates of the intracellular and extracellular potentials uh and the membrane potential vh are both close to one, indicating that the maximum (L) error of the FDM is O(h).

Table 2

n||u − u_h||||vvh||
163.24E−01 (--)1.21E−01 (--)
321.73E−01 (0.91)7.24E−02 (0.75)
649.32E−02 (0.89)3.98E−02 (0.86)
1284.80E−02 (0.96)2.09E−02 (0.93)
2562.43E−02 (0.98)1.07E−02 (0.96)
5121.22E−02 (0.99)5.44E−03 (0.98)

Convergence of the finite difference method for the manufactured test problem with convergence rates in parentheses.

The convergence rates in row i are computed by , where Ei is the maximum error of u or v in row i and hi is the value of h = Δx = Δy = 100Δt used in the simulation in row i.

In Table 3, we report the results obtained with the mortar FEM. The error of the potentials uh is reported in the broken H1 norm ||uuh||1, which is natural for the problem [53], the L2 norm ||uuh||0 to enable comparison with the H(div) FEM, and the supremum norm ||uuh|| to allow for comparison across different numerical methods. The error in the current density Jh is measured in the L2 norm rather than the natural but more involved H−1/2 norm. Finally, we report convergence of the membrane potential difference ||vvh||, where vh is obtained from the definition ui,hue,h = vh using the computed potentials. We note that the integral norms are evaluated by first interpolating the error in the space of discontinuous fourth-order polynomials. The supremum norms are then computed using linear polynomials.

Table 3

n||uuh||1||uuh||0||JJh||0||uuh||||vvh||
161.11E+00 (--)2.85E−02 (--)1.45E−01 (--)6.36E−02 (--)5.03E−02 (--)
325.59E−01 (0.98)7.37E−03 (1.95)4.01E−02 (1.86)2.09E−02 (1.60)1.82E−02 (1.47)
642.80E−01 (1.00)1.90E−03 (1.96)1.05E−02 (1.94)6.73E−03 (1.64)6.22E−03 (1.54)
1281.40E−01 (1.00)4.99E−04 (1.93)2.65E−03 (1.98)2.15E−03 (1.65)2.08E−03 (1.58)
2567.02E−02 (1.00)1.38E−04 (1.86)6.66E−04 (1.99)6.93E−04 (1.63)6.90E−04 (1.59)
5123.51E−02 (1.00)4.16E−05 (1.73)1.66E−04 (2.00)2.31E−04 (1.59)2.34E−04 (1.56)

Convergence of the mortar finite element method for the manufactured test problem, with convergence rates in parentheses.

Using piecewise linear elements, the observed convergence rates in the integral norms (see the first three columns of Table 3), are 1.0 (optimal) and 1.73 (slightly suboptimal) for the broken H1 norm and the L2 norm of potentials, respectively, while order 2 can be seen in the L2 norm of the current density. We note that the suboptimal rate of convergence is due to the error being dominated by the temporal discretization and decreasing the time step restores the optimal quadratic convergence. Let us also note that the quadratic convergence of the current density is likely related to the fact that Im = 0 in the test case. The observed order of convergence in the supremum norms is 1.59 and 1.56 for uh and vh, respectively. However, the error here seems again to be dominated by temporal discretization, since using Δt = 10−3/n improves the rates toward 2.0.

Table 4 reports the errors and convergence rates for the H(div)-based FEM. The error in the computed intracellular and extracellular potentials uh and the error in the membrane potential vh are reported in the L2 norm and in the supremum norm. Furthermore, the error in the computed potential gradient Ĵh is reported in the L2 and H(div) norms. We observe that the convergence rate is one both for the error in the L2 norm for uh and vh and for the H(div) and L2 norms for Ĵh. These rates are in complete agreement with the theoretical expectations. In addition, we observe that the convergence of the supremum norm of uh and vh, computed after a projection onto continuous piecewise linears, appears to be close to quadratic.

Table 4

n||uuh||0||ĴĴh||0||ĴĴh||div||vvh||0||uuh||||vvh||
168.41E−02 (--)6.49E−01 (--)6.62E+00 (--)1.02E−01 (--)2.73E−02 (--)2.53E−03 (--)
324.21E−02 (1.00)3.24E−01 (1.00)3.32E+00 (0.99)5.13E−02 (1.00)6.87E−03 (1.99)6.36E−04 (1.99)
642.11E−02 (1.00)1.62E−01 (1.00)1.66E+00 (1.00)2.56E−02 (1.00)1.72E−03 (2.00)1.57E−04 (2.02)
1281.05E−02 (1.00)8.10E−02 (1.00)8.31E−01 (1.00)1.28E−02 (1.00)4.30E−04 (2.00)3.76E−05 (2.06)
2565.27E−03 (1.00)4.05E−02 (1.00)4.16E−01 (1.00)6.41E−03 (1.00)1.08E−04 (2.00)8.63E−06 (2.12)
5122.63E−03 (1.00)2.03E−02 (1.00)2.08E−01 (1.00)3.21E−03 (1.00)2.69E−05 (2.00)1.77E−06 (2.29)

Convergence of the H(div) finite element method for the manufactured test problem, with convergence rates in parentheses.

3.2.2. Nonlinear ionic current: mesh refinement

To investigate the accuracy of the numerical methods using the Grandi AP model, we compare the solutions obtained from the numerical methods using different spatial resolutions.

Figure 5 shows the solution of the membrane potential in a single point on the membrane for the FDM and the H(div)-based FEM for a number of resolutions. We consider the solution for two connected cells; and the sizes of the cells and the domain used in the simulations are given in Table 5.

Figure 5

Table 5

DomainSize
ΩO36 × 16 × 16 μm
ΩW, ΩE8 × 8 × 8 μm
ΩS, ΩN20 × 8 × 8 μm
Ωi ∪ Ωe120 × 48 × 32 μm

The cell and domain sizes used in the simulations reported in Figure 5.

The intracellular domain consists of two connected cells, where each cell is a composition of the domains ΩO, ΩW, ΩE, ΩS, and ΩN (see Figure 4). Note that the geometry used in the remaining 3D simulations is specified in Tables 6, 10.

In the upper panel of Figure 5, the solutions for different resolutions are almost indistinguishable, but in the lower panel we focus on a small part of the solution and a difference is visible for the different resolutions of the FDM. The H(div) FEM solutions are very similar for different resolutions, indicating that the method is more accurate than the FDM in this case as well.

3.3. CPU requirements

As mentioned in the section 1, simulation of the electrophysiology of cardiac tissue is usually based on homogenized models such as the monodomain model or the bidomain model. The motivation for this is certainly that it requires considerably less computing power than the EMI approach considered here. Therefore, it is very important to understand the computational complexity of the EMI model to appreciate the applications in which this approach can be used.

3.3.1. Finite difference method

Tables 7, 8 report the CPU times, number of iterations, and system size for the FDM as the number of cells included in the simulation is increased. In Table 7, we use the passive model (10) for Iion, and in Table 8, we use the Grandi AP model. The linear systems are solved using the BiCGStab method (see [68, 69]) with an incomplete LU preconditioner (e.g., [68]) and relative tolerance of 10−5 for the true/unpreconditioned (l2) norm of the residuum. The computations are performed using MATLAB. The last column of the tables reports the simulation time per cell for a single time step and we observe that the simulation time per physical cell appears to be bounded as the number of cells is increased.

Table 6

DomainSize
ΩO100 × 12 × 12 μm
ΩW, ΩE4 × 8 × 8 μm
ΩS, ΩN60 × 4 × 8 μm

Cell sizes used in the simulations reported in Figures 79 and Tables 79.

The intracellular domain consists of a number of connected cells where each cell is a composition of the domains ΩO, ΩW, ΩE, ΩS, and ΩN (see Figure 4). The size of Ω = Ωi∪Ωe is Lx×Ly×Lz, where Lz = 20μm and Lx and Ly depend on the number of cells in the simulation. The minimal distance between the intracellular domain and the boundary of the extracellular domain is 8 μm in both the x and y directions.

Table 7

CellsGrid pointsSystem sizenitT (s)T/cell (s)
113,16714,609440.50.5
437,32342,5631223.91.0
16121,275141,1791467.20.5
64431,739509,24319824.30.4
2561,622,9071,928,69925686.40.3
1,0246,286,2037,500,923258328.70.3
4,09624,736,63529,578,6192501,195.90.3
16,38498,132,859117,467,0032093,696.80.2

CPU times for the finite difference method for a passive membrane model.

Here, nit is the number of iterations in the fourth time step of size Δt = 0.1 ms and T is the solution time for the fourth time step. The parameters used in the computations are given in Table 1 and the domain sizes are specified in Table 6. For the 25% of the cells at the center of the domain, we use the initial condition v = 10 mV and, for the remaining cells, we use the initial condition v = vrest.

Table 8

CellsGrid pointsSystem sizenitTODE (s)TPDE (s)T (s)T/cell (s)
113,16714,609642.90.73.63.6
437,2342,5631507.64.512.13.0
16121,275141,17921023.912.736.52.3
64431,739509,24326085.141.5126.62.0
2561,622,9071,928,699318351.9109.8461.71.8
1,0246,286,2037,500,9233381,256.0442.61698.61.7
4,09624,736,63529,578,6193224,512.81,515.86028.61.5
16,38498,132,859117,467,0033601,7594.66,171.923,766.51.5

CPU times for the finite difference method using the Grandi membrane model for Iion.

Here, T = TODE + TPDE is the solution time for the fourth time step of size Δt = 0.1 ms, where TODE is the solution time for the first (ODE) part of the operator splitting procedure and TPDE is the solution time for the second (PDE) part of the procedure. Furthermore, nit is the number of iterations needed to achieve convergence of the BiCGStab method used in the PDE part of the procedure. The parameters used in the computations are given in Tables 1, 6. For the 25% of the cells at the center of the domain, we replace the default initial conditions of the Grandi model with the values of the state variables obtained when the membrane potential first reached v = −10 mV during the upstroke of the AP in a single-cell simulation of the model. For the remaining cells, we use the default initial conditions of the Grandi model.

3.3.2. Finite element method

Because of the complexity of the mortar FEM, which introduces a separate function space for the potential of each cell1, we shall focus on the H(div) FEM in the following.

Table 9 shows the CPU time, the number of iterations, and the dimensions of the finite element spaces for a number of simulations using the H(div) FEM described in section 2.3.3 with an increasing number of cells and a passive membrane model. The linear systems are again solved using the biconjugate gradient stabilized method with an incomplete LU preconditioner and a convergence criterion as in the FDM case. The linear solver and the preconditioner were provided by the PETSc library [70], while the system was assembled using FEniCS [49, 50].

Table 9

Cellsdim(Sh)dim(Uh)dim(Vh|Γh)dim(Mh)nitT (s)T/cell (s)
1137,75266,9603,216342,464746.16.1
4399,136194,88012,320993,15222049.812.5
161,317,184645,12048,1923,279,488458337.621.1
644,734,4002,323,200190,59211,792,0006371,684.826.3

CPU times for the H(div) finite element method for a passive membrane model.

Here, nit is the number of iterations in the fourth time step of size Δt = 0.1 ms and T is the solution time for the fourth time step. Furthermore, T/cell is the solution time per cell for the fourth time step. The second to fifth columns give the dimensions of the various finite element spaces (see section 2.3.3). Note that Vh|Γh refers to the space Vh restricted to the membrane Γh but that Vh is defined in the entire domain in the computations reported in the table. Note also that dim(Mh) refers to the dimension of the total mixed space Uh × Sh × Vh. The parameters used in the computations are given in Tables 1, 6. For the 25% of the cells at the center of the domain, we use the initial condition v = 10 mV and, for the remaining cells, we use the initial condition v = vrest.

Since the definition of the H(div)-based variational problem (21) in FEniCS is not immediately obvious, we briefly comment on some implementational aspects. Recall that the solution is sought in the space Uh × Sh × Vh, where the functions in Vh are defined over , the discretization of the cell mebranes Γ. However, FEniCS (version 2017.1) does not currently support mixed spaces with components defined over different meshes, such as over and . To bypass this restriction, we construct the space Vh over all the facets of and the excess degrees of freedom are set to zero in the assembled linear system. As illustrated above the construction yields the correct numerical solution. However, the additional degrees of freedom naturally affect the performance of the linear solvers, since they increase the computational cost of the matrix–vector product significantly. FEniCS support for mixed finite element spaces with components defined over different meshes is currently under development and we thus expect this issue to be resolved in future FEniCS releases.

Comparing the results of Table 9 with those of the FDM (see Table 7), we observe that the CPU times for the FEM are considerably larger (by a factor of ~70). While the longer solution times for the FEM are expected due to the larger linear systems stemming from the method (with factors of ~23 and ~14 for the system with or without the additional degrees of freedom introduced in Vh, respectively), the results also point out that the iterative solver does not perform as well as in the FDM case. More efficient solution strategies for the system are currently being investigated.

3.4. Cylindrical geometry

The somewhat clunky geometry of the cells used above does not reflect reality very well. Indeed, cardiac cells have cylindrical shapes, but such shapes are inconvenient to address using FDMs, and we therefore apply the FEM. Figure 6 shows the membrane potential and surrounding extracellular potential for a simulation of two connected cylinders using the parameters given in Tables 1, 10. We note that the FEM is well suited for handling cylindrical geometry, and we expect that the method can also be used to handle the even more complex geometries that will arise when the T-tubules of ventricular cells (e.g., [71]) are incorporated in the model.

Figure 6

Table 10

Length of ΩO100 μm
Radius of ΩO10 μm
Length of ΩW and ΩE4 μm
Radius of ΩW and ΩE8 μm
Domain (Ωi ∪ Ωe)228 × 40 × 40 μm

Cell and domain sizes used in the simulations of the two connected cylinders in Figure 6.

The intracellular domain consists of two cells, where each cell is a composition of three cylinders ΩW, ΩO, and ΩE.

3.5. Ion channel density distribution affects conduction velocity

As mentioned in the section 1, it is difficult to represent a non-uniform distribution of ion channels along the cell membrane using classical homogenized models. This is an important shortcoming of the classical methods, because a non-uniform distribution of sodium channels is believed to affect the conduction velocity. In the EMI modeling framework, the representation of non-uniform distributions of ion channels is straightforward.

Figure 7 shows the solutions of two simulations of a collection of 30 × 5 cells with different distributions of the sodium channel conductance, gNa. In the left panel the value of gNa is constant on the entire membrane, while, in the right panel, gNa is zero over a large part of the membrane and only non-zero on ΩW and ΩE, that is, near the ends of the cell in the x direction. The mean value of gNa over the cells is the same in the two simulations. We observe that the conduction velocity is increased for the case with a varying value of gNa compared to the case with a constant value. The conduction velocities reported in the figure are computed from the 10th and 20th cells in the third row in the y direction, and are defined as the distance between the cell centers divided by the time between each of the two cell centers reaches a membrane potential of v = 0 mV.

Figure 7

Figure 8 shows a more detailed view of the two cells at the center of the domain. Here, we observe that the conduction velocity across the first part of the cell appears to be higher for the case with a constant value of gNa than for the varying case, but that the traveling wave moves faster across the gap junction for the case with a varying gNa than for the constant case, leading to an overall increased conduction velocity for the varying case.

Figure 8

This effect is studied more closely in Figure 9, which shows the activation times and conduction velocities along the length of two cells in a similar pair of simulations. The gap junction between the two cells is located at x = 548μm, and we observe that there is a delay of about 0.1 ms between when the membrane on each side of the gap junction is activated. The delay appears to be slightly longer for the case with a constant gNa compared to the varying case. We also observe that, overall, the wave uses less time to activate the two cells for the case with a varying gNa than for the constant case, consistent with the results of Figures 7, 8. In addition, we observe that the shape of the activation curve is different in the two cases. In the case with a constant gNa distribution, the activation curve becomes steeper toward the end of the cells, corresponding to a decreasing conduction velocity along the cell lengths. For the varying case, however, the activation curve flattens out toward the end of the cells, corresponding to an increased conduction velocity toward the cell ends.

Figure 9

4. Discussion

As described above, the classical models of cardiac tissue are founded on homogenization of the tissue and the resulting models therefore assume that the extracellular space, the cell membrane, and the intracellular space exist everywhere. This leads to tractable computing problems that have provided insights into important applications such as the propagation of an electrochemical wave, cardiac arrhythmias, the effect of defibrillation, the onset of cardiac waves, and the effect of diverse drugs. However, in some cases, it is of interest to see the dynamics surrounding individual cells as part of the tissue, which is hard to do using homogenized models. It is also of interest to be able to change local properties of the tissue that are difficult to represent in homogenized models.

In the present report, we focused on the computational challenges of a different approach in which separate geometrical domains for the extracellular space, the cell membrane, and the intracellular domain represent the tissue; we refer to this as the EMI model. Clearly, the computational problems arising from the EMI model are much more challenging than for traditional models, but we have shown that, for some applications, the more detailed model is feasible. In particular, we have shown that the EMI model is suitable for monolayers of cells. Furthermore, we have demonstrated that the EMI framework allows the representation of local properties of cells that are hard to represent in classical homogenized models of cardiac tissue.

4.1. Membrane dynamics

The dynamics of the cell membrane are absolutely critical for the functioning of the cell and have been subject to intense studies for centuries. A wide variety of models are available through the open CellML library [72]. In our computations, we have used the ventricular cell model by Grandi et al. [48]. That model consists of a system of 39 ODEs defined on every computational node of the cell membrane and is believed to provide an accurate representation of the cell's action potential. From a computational point of view, we could have used numerous other models (e.g., [7380]) with comparable complexity of the membrane computations. Common to all these models is that the ion currents are represented using models where the ion channel density must be specified. When the models are used as part of a monodomain or bidomain model, the channel density is most conveniently treated as a constant for each cell, but in the EMI model, the ion channel density associated with any of the currents can be specified as a function of space on the cell membrane. We noted in Figure 7 that a non-uniform distribution of sodium channels significantly affects the tissue's conduction velocity.

4.2. Numerical accuracy

The numerical accuracy of the discretizations considered was assessed using a single-cell problem (24–30) and the method of manufactured solutions. As seen in Tables 24, all the discretizations provide converging numerical solutions. However, taking the L norms of the computed potentials for comparison, there are considerable differences in the convergence properties of the methods.

The convergence of the FDM discretization is linear and this method is the least accurate. The first order convergence of the FDM is to be expected, since all internal boundary conditions are approximated using first-order finite differences. Compared to the FDM, the mortar FEM yields solutions with considerably smaller error and the observed rates are about 1.5. It should be noted that, on a given grid, the methods lead to identical numbers of unknowns. The H(div) FEM is the most accurate among the methods considered with errors much smaller than those of the mortar FEM. As noted in section 3.3, the H(div) FEM leads to larger linear systems than the other two methods do (see Tables 7, 9). Finally, let us note that the manufactured solution employed was particularly simple and thus the numerical results obtained may not be universally valid.

4.3. CPU requirements

The CPU efforts needed to solve the system (1–9) using the FDM or the FEM are given in Table 7 (FDM, passive membrane dynamics), Table 8 (FDM, membrane dynamics given by the Grandi model), and Table 9 (H(div) FEM, passive membrane dynamics). We observe that, for the FDM, the CPU efforts per cell seem to be bounded independently of the number of cardiac cells. This result implies that the solver is optimal in the sense defined above. When the Grandi model is used for the membrane dynamics, the CPU efforts per time step per cell are around 1.5 s. This enables us to simulate 16,384 cells, which defines a linear system with over 117 million unknowns. Since the CPU efforts per cell seem to be bounded independent of the number of cells, the CPU efforts will not explode as more cells are added to the computations. With proper parallelization strategies, it should be possible to simulate huge numbers of cells. In fact, the mouse heart, with around 4 million cells, may be within reach; with a computer that is 1,000 times faster (for large problems) than the one we used, it would require about one week to perform 100 time steps for 4 million cardiac cells.

We observe from Tables 8, 9 that the FDM method in the current implementation is significantly faster than the FEM code even though the FDM code is implemented in Matlab. It has proven to be difficult to derive optimal preconditioners to be used for the FEM, but we hope to be able to improve this part of the code in the future.

4.4. Cell geometry

In the present report, we have used very simple geometries to represent the cells. We have assumed that the geometries are simple rectangular cuboids or have cylindrical shapes. However, real cardiac cells have much more complex geometries and future work will investigate the effect of the geometry on the solutions. Of particular importance is the effect of T-tubules in ventricular cells and how they change during illness (e.g., [71, 81]). The diameter of the T-tubules ranges from 20 to 450 nm (see [82]) and therefore a very fine computational mesh would be needed to represent these invaginations. Presently, we have run the FDM code with spatial resolution of 5 nm (in the case of only three coupled cells), so including T-tubules is within reach for the FDM code but not for the FEM code.

4.5. Intracellular calcium dynamics

The focus of the present report has been to show that it is possible to simulate the electrical potential of cardiac cells based on explicit representation of the cells. We have focused on models that represent the membrane dynamics in terms of interchange over the cell membrane and we have ignored the spatial gradients of the ionic concentrations away from the cell membrane. Certainly, this is a major simplification; the intracellular concentration of calcium is essential and can be modeled using partial differential equations defined in the intracellular domain, see e.g. [8386]. In Nivala et al. [83], a model based on Calcium released units (CRUs) is presented and the number of CRUs for a single cell used in the computations is typically ~20,000. In our model, a cardiac cell with a volume of 30 pL and a typical mesh length of 1 μm would consist of 30,000 computational blocks within each cell. A reasonable representation of the CRUs in the EMI model is therefore within reach.

4.6. Conduction velocity

As mentioned above, the conduction velocity is essential for the stability of the electrochemical wave underpinning the rhythmic contraction of the cardiac muscle. In numerical computations, the distribution of ion channels is usually assumed to be constant, but experimental evidence suggests that the ion channel density is non-uniform along the cell membrane. For instance, the density of sodium channels is believed to be much higher closer to the intercalated discs separating individual cells (e.g., [87]). The difference between uniform and non-uniform distributions of sodium channels was addressed in Figures 79. We observed that the conduction velocity was significantly lower in the case of a constant distribution of the sodium channels compared to the case of a non-uniform distribution. Interestingly, we also observed (Figure 9) that for the uniform case, the conduction velocity decreased along the cell, whereas it increased in the case of non-uniform distribution. Again, such effects are difficult to observe in the classical models (monodomain, bidomain). This effect deserves closer scrutiny and the EMI model provides a suitable framework for such studies.

5. Conclusion

Local properties of cells and cell membranes are difficult to represent in standard (bidomain, monodomain) models of excitable tissue. In this paper, we have demonstrated that a more accurate model and method can be used. In our approach, every cell is represented in terms of its surrounding extracellular space, the cell membrane, and the intracellular space. The extracellular and intracellular spaces are represented using a mesh of length of 2μm and the membrane is represented as the intersection of the extracellular and intracellular meshes. We have seen that, with a finite difference method using a very simple geometry, the computations are quite efficient and the computational demands increase linearly in the number of physical cells. We have solved for up to 16,384 cells using this method. More complex geometries must be represented using a method allowing flexible grids and, in the present paper, we have shown the results for two variants of the finite element method. Although, the solution process of the finite element equations is much more time-consuming, the results indicate that more complex cell geometries can, in fact, be handled.

Statements

Author contributions

Numerical methods: AT, KJ, MK, KM, MR. Software development: KJ, MK, MR. Simulations: AT, KJ, MK. Writing paper: AT, KJ, MK, KM, MR.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Footnotes

1.^The space for intracellular potentials for the case considered with FDM in the section 3.3.1 would be where n = 16, 384.

References

  • 1.

    HoguesHLeonLRobergeF. A model study of electric field interactions between cardiac myocytes. IEEE Trans Biomed Eng. (1992) 39:123243.

  • 2.

    KrassowskaWNeuJC. Response of a single cell to an external electric field. Biophys J. (1994) 66:1768.

  • 3.

    YingWHenriquezCS. Hybrid finite element method for describing the electrical response of biological cells to applied fields. IEEE Trans Biomed Eng. (2007) 54:61120. 10.1109/TBME.2006.889172

  • 4.

    Agudelo-ToroANeefA. Computationally efficient simulation of electrical activity at cell membranes interacting with self-generated and externally imposed electric fields. J Neural Eng. (2013) 10:026019. 10.1088/1741-2560/10/2/026019

  • 5.

    StinstraJGHenriquezCSMacLeodRS. Comparison of microscopic and bidomain models of anisotropic conduction. In: MurrayA, editor. Computers in Cardiology.IEEE (2009). p. 65760.

  • 6.

    StinstraJGMacLeodRSHenriquezCS. Incorporating histology into a 3D microscopic computer model of myocardium to study propagation at a cellular level. Ann Biomed Eng. (2010) 38:1399414. 10.1007/s10439-009-9883-y

  • 7.

    StinstraJGHopenfeldBMacLeodRS. On the passive cardiac conductivity. Ann Biomed Eng. (2005) 33:174351. 10.1007/s10439-005-7257-7

  • 8.

    TveitoAJægerKHLinesGTPaszkowskiŁSundnesJEdwardsAGet al. An evaluation of the accuracy of classical models for computing the membrane potential and extracellular potential for neurons. Front Comput Neurosci. (2017) 11:27. 10.3389/fncom.2017.00027

  • 9.

    KeenerJPSneydJ. Mathematical Physiology. New York, NY: Springer (2009).

  • 10.

    FranzonePCPavarinoLFScacchiS. Mathematical Cardiac Electrophysiology. Cham; Heidelberg; New York, NY; Dordrecht; London: Springer International Publishing (2014).

  • 11.

    SundnesJNielsenBFMardalKACaiXLinesGTTveitoA. On the computational complexity of the bidomain and the monodomain models of electrophysiology. Ann Biomed Eng. (2006) 34:108897. 10.1007/s10439-006-9082-z

  • 12.

    RothBJ. Bidomain simulations of defibrillation: 20 years of progress. Heart Rhythm (2013) 10:12189. 10.1016/j.hrthm.2013.05.002

  • 13.

    TrayanovaNA. Whole-heart modeling: applications to cardiac electrophysiology and electromechanics. Circ Res. (2011) 108:11328. 10.1161/CIRCRESAHA.110.223610

  • 14.

    VigmondEVadakkumpadanFGurevVArevaloHDeoMPlankGet al. Towards predictive modelling of the electrophysiology of the heart. Exp Physiol. (2009) 94:56377. 10.1113/expphysiol.2008.044073

  • 15.

    TveitoALinesGTArtebrantRSkavhaugOMaleckarMM. Existence of excitation waves for a collection of cardiomyocytes electrically coupled to fibroblasts. Math Biosci. (2011) 230:7986. 10.1016/j.mbs.2011.01.004

  • 16.

    TveitoALinesGTEdwardsAGMaleckarMMMichailovaAHakeJet al. Slow Calcium–Depolarization–Calcium waves may initiate fast local depolarization waves in ventricular tissue. Prog Biophys Mol Biol. (2012) 110:295304. 10.1016/j.pbiomolbio.2012.07.005

  • 17.

    XieYSatoDGarfinkelAQuZWeissJN. So little source, so much sink: requirements for afterdepolarizations to propagate in tissue. Biophys J. (2010) 99:140815. 10.1016/j.bpj.2010.06.042

  • 18.

    XieYGarfinkelAWeissJNQuZ. Cardiac alternans induced by fibroblast-myocyte coupling: mechanistic insights from computational models. Am J Physiol Heart Circ Physiol. (2009) 297:H77584. 10.1152/ajpheart.00341.2009

  • 19.

    QuZNivalaM. Multiscale nonlinear dynamics in cardiac electrophysiology: from sparks to sudden death. In: PesensonMZ, editor. Multiscale Analysis and Nonlinear Dynamics: From Genes to the Brain. Weinheim: Wiley-VCH Verlag (2013). p. 25775.

  • 20.

    QuZHuGGarfinkelAWeissJN. Nonlinear and stochastic dynamics in the heart. Physics Rep. (2014) 543:61162. 10.1016/j.physrep.2014.05.002

  • 21.

    TveitoALinesGT. A condition for setting off ectopic waves in computational models of excitable cells. Math Biosci. (2008) 213:14150. 10.1016/j.mbs.2008.04.001

  • 22.

    KeenerJPPanfilovAV. A biophysical model for defibrillation. Biophys J. (1996) 71:133545.

  • 23.

    PlankGVigmondEJLeonLJ. Shock energy for successful defibrillation of atrial tissue during vagal stimulation. In: Proceedings of the 25th annual International Conference of the IEEE EMBS (2003). p. 16770.

  • 24.

    PlankGLeonLJKimberSVigmondEJ. Defibrillation depends on conductivity fluctuations and the degree of disorganization in reentry patterns. J Electrophysiol. (2005) 16:20516. 10.1046/j.1540-8167.2005.40140.x

  • 25.

    TrayanovaNGernot PlankEJJ. Modeling cardiac defibrillation. In: SaundersWB, editor. Cardiac Electrophysiology: From Cell to Bedside. Philadelphia (2009). p. 36172.

  • 26.

    TveitoALinesGRognesMEMaleckarMM. An analysis of the shock strength needed to achieve defibrillation in a simplified mathematical model of cardiac tissue. Int J Numer Anal Model. (2012) 9:64457. Available online at: http://www.math.ualberta.ca/ijnam/

  • 27.

    RantnerLJTiceBMTrayanovaNA. Terminating ventricular tachyarrhythmias using far-field low-voltage stimuli: mechanisms and delivery protocols. Heart Rhythm (2013) 10:120917. 10.1016/j.hrthm.2013.04.027

  • 28.

    TrayanovaNARantnerLJ. New insights into defibrillation of the heart from realistic simulation studies. Europace (2014) 16:70513. 10.1093/europace/eut330

  • 29.

    MorenoJDZhuZIYangPCBankstonJRJengMTKangCet al. A computational model to predict the effects of class I anti-arrhythmic drugs on ventricular rhythms. Sci Transl Med. (2011) 3:18. 10.1126/scitranslmed.3002588

  • 30.

    RodriguezBBurrageKGavaghanDGrauVKohlPNobleD. The systems biology approach to drug development: application to toxicity assessment of cardiac drugs. Clin Pharmacol Ther. (2010) 88:1304. 10.1038/clpt.2010.95

  • 31.

    TveitoALinesGTMaleckarMM. Note on a possible proarrhythmic property of antiarrhythmic drugs aimed at improving gap-junction coupling. Biophys J. (2012) 102:2317. 10.1016/j.bpj.2011.11.4015

  • 32.

    TveitoALinesGT. A note on a method for determining advantageous properties of an anti-arrhythmic drug based on a mathematical model of cardiac cells. Math Biosci. (2009) 217:16773. 10.1016/j.mbs.2008.12.001

  • 33.

    VeeraraghavanRGourdieRGPoelzingS. Mechanisms of cardiac conduction: a history of revisions. Am J Physiol Heart Circ Physiol. (2014) 306:H61927. 10.1152/ajpheart.00760.2013

  • 34.

    SpachMSHeidlageJFBarrRCDolberPC. Cell size and communication: role in structural and electrical development and remodeling of the heart. Heart Rhythm (2004) 1:50015. 10.1016/j.hrthm.2004.06.010

  • 35.

    RudyYQuanW. A model study of the effects of the discrete cellular structure on electrical propagation in cardiac tissue. Circ Res. (1987) 61:81523.

  • 36.

    ShawRMRudyY. Ionic mechanisms of propagation in cardiac tissue. Circ Res. (1997) 81:72741.

  • 37.

    WeiNMoriYTolkachevaEG. The dual effect of ephaptic coupling on cardiac conduction with heterogeneous expression of connexin 43. J Theor Biol. (2016) 397:10314. 10.1016/j.jtbi.2016.02.029

  • 38.

    PoelzingSRosenbaumDS. Altered connexin43 expression produces arrhythmia substrate in heart failure. Am J Physiol Heart Circ Physiol. (2004) 287:H176270. 10.1152/ajpheart.00346.2004

  • 39.

    LinJKeenerJP. Ephaptic coupling in cardiac myocytes. IEEE Trans Biomed Eng. (2013) 60:57682. 10.1109/TBME.2012.2226720

  • 40.

    OlivettiGMelissariMCapassoJMAnversaP. Cardiomyopathy of the aging human heart. Myocyte loss and reactive cellular hypertrophy. Circ Res. (1991) 68:15608.

  • 41.

    DoevendansPADaemenMJde MuinckEDSmitsJF. Cardiovascular phenotyping in mice. Cardiovasc Res. (1998) 39:3449.

  • 42.

    LeePKlosMBollensdorffCHouLEwartPKampTJet al. Simultaneous voltage and calcium mapping of genetically purified human induced pluripotent stem cell–derived cardiac myocyte monolayers novelty and significance. Circ Res. (2012) 110:155663. 10.1161/CIRCRESAHA.111.262535

  • 43.

    GrskovicMJavaherianAStruloviciBDaleyGQ. Induced pluripotent stem cells – opportunities for disease modelling and drug discovery. Nat Rev Drug Discov. (2011) 10:91529. 10.1038/nrd3577

  • 44.

    MatsaEBurridgePWWuJC. Human stem cells for modeling heart disease and for drug discovery. Sci Transl Med. (2014) 6:239ps6. 10.1126/scitranslmed.3008921

  • 45.

    StraussDGBlinovaK. Clinical trials in a dish. Trends Pharmacol Sci. (2017) 38:47. 10.1016/j.tips.2016.10.009

  • 46.

    TrayanovaNARothBJMaldenLJ. The response of a spherical heart to a uniform electric field: a bidomain analysis of cardiac stimulation. IEEE Trans Biomed Eng. (1993) 40:899908.

  • 47.

    NiedererSMitchellLSmithNPlankG. Simulating human cardiac electrophysiology on clinical time-scales. Front Physiol. (2011) 2:14. 10.3389/fphys.2011.00014

  • 48.

    GrandiEPasqualiniFSBersDM. A novel computational model of the human ventricular action potential and Ca transient. J Mol Cell Cardiol. (2010) 48:11221. 10.1016/j.yjmcc.2009.09.019

  • 49.

    AlnæsMSBlechtaJHakeJJohanssonAKehletBLoggAet al. The FEniCS project version 1.5. Arch Numer Softw. (2015) 3. 10.11588/ans.2015.100.20553

  • 50.

    LoggAMardalKAWellsGN. Automated Solution of Differential Equations by the Finite Element Method: The FEniCS Book, Vol. 84. Heidelberg; Dordrecht; London; New York, NY: Springer Science & Business Media (2012).

  • 51.

    BernardiCMadayYPateraAT. Domain decomposition by the mortar element method. In: KaperHGGarbeyMPieperGW, editors. Asymptotic and Numerical Methods for Partial Differential Equations with Critical Parameters. Dordrecht: Springer Netherlands. (1993). p. 26986.

  • 52.

    BelgacemFB. The mortar finite element method with Lagrange multipliers. Numer Math. (1999) 84:17397.

  • 53.

    LamichhaneBPWohlmuthBI. Mortar finite elements for interface problems. Computing (2004) 72:33348. 10.1007/s00607-003-0062-y

  • 54.

    WohlmuthBI. A mortar finite element method using dual spaces for the Lagrange multiplier. SIAM J Numer Anal. (2000) 38:9891012. 10.1137/S0036142999350929

  • 55.

    HolterKEKuchtaMMardalKA. Trace Constrained Problems in FEniCS. In: HaleJS, editor. Proceedings of the FEniCS Conference 2017. (2017). 10.6084/m9.figshare.5086369

  • 56.

    RaviartPAThomasJM (Editors). A mixed finite element method for 2-nd order elliptic problems. In: Mathematical Aspects of Finite Element Methods. Berlin; Heidelberg: Springer (1977). p. 292315.

  • 57.

    SaccoR. Multiscale Modeling of Interface Phenomena in Biology. Available online at: http://www1.mate.polimi.it/~ricsac/NotesCMElBioMath.pdf

  • 58.

    BrezziFDouglasJMariniL. Two families of mixed finite elements for second order elliptic problems. Numer Math. (1985) 47:21735.

  • 59.

    BenziMGolubGHLiesenJ. Numerical solution of saddle point problems. Acta Numer. (2005) 14:1137. 10.1017/S0962492904000212

  • 60.

    MardalKAWintherR. Preconditioning discretizations of systems of partial differential equations. Numer Linear Algeb Appl. (2011) 18:140. 10.1002/nla.716

  • 61.

    MardalKANielsenBFCaiXTveitoA. An Order Optimal Solver for the Discretized Bidomain Equations. Numer Linear Algeb Appl. (2007) 14:8398. 10.1002/nla.501

  • 62.

    LingeSSundnesJHanslienMLinesGTTveitoA. Numerical solution of the bidomain equations. Philos Trans R Soc Lond A (2009) 367:193150. 10.1098/rsta.2008.0306

  • 63.

    FeynmanRP. Simulating physics with computers. Int J Theor Phys. (1982) 21:46788.

  • 64.

    WeidmannS. Electrical constants of trabecular muscle from mammalian heart. J Physiol. (1970) 210:1041.

  • 65.

    CascioWEYanGXKleberAG. Passive electrical properties, mechanical activity, and extracellular potassium in arterially perfused and ischemic rabbit ventricular muscle. Effects of calcium entry blockade or hypocalcemia. Circ Res. (1990) 66:146173.

  • 66.

    JayeDAXiaoYFSiggDC. Basic cardiac electrophysiology: excitable membranes. In: SiggDIaizzoPXiaoYFHeB, editors. Cardiac Electrophysiology Methods and Models. Boston, MA: Springer (2010). p. 4151.

  • 67.

    RoachePJ. Verification and Validation in Computational Science and Engineering. Hermosa, CA: Albuquerque, NM (1998).

  • 68.

    AxelssonO. Iterative Solution Methods. Cambridge University Press (1996).

  • 69.

    Vander Vorst HA. Bi-CGSTAB: A fast and smoothly converging variant of Bi-CG for the solution of nonsymmetric linear systems. SIAM J Sci Stat Comput. (1992) 13:63144.

  • 70.

    BalaySAbhyankarSAdamsMFBrownJBrunePBuschelmanKet al. PETSc Web page. (2017). Available online at: http://www.mcs.anl.gov/petsc

  • 71.

    LyonARMacLeodKTZhangYGarciaEKandaGKKorchevYEet al. Loss of T-tubules and other changes to surface topography in ventricular myocytes from failing human and rat heart. Proc Natl Acad Sci USA. (2009) 106:68549. 10.1073/pnas.0809777106

  • 72.

    CuellarAALloydCMNielsenPFBullivantDPNickersonDPHunterPJ. An overview of CellML 1.1, a biological model description language. SIMULATION (2003) 79:7407. 10.1177/0037549703040939

  • 73.

    NobleD. Cardiac action and pace-maker potentials based on the Hodgkin–Huxley equations. Nature (1960) 188:4957.

  • 74.

    LuoCHRudyY. A model of the ventricular cardiac action potential. Depolarization, repolarization, and their interaction. Circ Res. (1991) 68:150126.

  • 75.

    LuoCHRudyY. A dynamic model of the cardiac ventricular action potential. I. Simulations of ionic currents and concentration changes. Circ Res. (1994) 74:107196.

  • 76.

    HundTJKuceraJPOtaniNFRudyY. Ionic charge conservation and long-term steady state in the Luo–Rudy dynamic cell model. Biophys J. (2001) 81:332431. 10.1016/S0006-3495(01)75965-6

  • 77.

    RudyYSilvaJR. Computational biology in the study of cardiac ion channels and cell electrophysiology. Q Rev Biophys. (2006) 39:57116. 10.1017/S0033583506004227

  • 78.

    MaleckarMMGreensteinJLGilesWRTrayanovaNA. K+ current changes account for the rate dependence of the action potential in the human atrial myocyte. Am J Physiol Heart Circ Physiol. (2009) 297:H1398410. 10.1152/ajpheart.00411.2009

  • 79.

    RudyYWeinsteinH. From genes and molecules to organs and organisms: heart. Compr Biophys. (2012) 2:268327. 10.1016/B978-0-12-374920-8.00924-3

  • 80.

    TveitoALinesGT. Computing Characterizations of Drugs for Ion Channels and Receptors Using Markov Models, Vol. 111.Heidelberg: Springer-Verlag (2016).

  • 81.

    LouchWESejerstedOMSwiftF. There goes the neighborhood: pathological alterations in T-tubule morphology and consequences for cardiomyocyte Ca2+ handling. J Biomed Biotechnol. (2010) 2010:503906. 10.1155/2010/503906

  • 82.

    SoellerCCannellM. Examination of the transverse tubular system in living cardiac rat myocytes by 2-photon microscopy and digital image–processing techniques. Circ Res. (1999) 84:26675.

  • 83.

    NivalaMde LangeERovettiRQuZ. Computational modeling and numerical methods for spatiotemporal calcium cycling in ventricular myocytes. Front Physiol. (2012) 3:114. 10.3389/fphys.2012.00114

  • 84.

    ChengYYuZHoshijimaMHolstMJMcCullochADMcCammonJAet al. Numerical analysis of Ca2+ signaling in rat ventricular myocytes with realistic transverse-axial tubular geometry and inhibited sarcoplasmic reticulum. PLoS Comput Biol. (2010) 6:e1000972. 10.1371/journal.pcbi.1000972

  • 85.

    SwietachPSpitzerKWVaughan-JonesRD. Modeling calcium waves in cardiac myocytes: importance of calcium diffusion. Front Biosci. (2010) 15:661.

  • 86.

    TveitoALinesGTHakeJEdwardsAG. Instabilities of the resting state in a mathematical model of calcium handling in cardiac myocytes. Math Biosci. (2012) 236:97107. 10.1016/j.mbs.2012.02.005

  • 87.

    KuceraJPRohrSRudyY. Localization of sodium channels in intercalated disks modulates cardiac conduction. Circ Res. (2002) 91:117682. 10.1161/01.RES.0000046237.54156.0A

Summary

Keywords

transmembrane potential, finite difference method, finite element method, cell modeling, conduction velocity

Citation

Tveito A, Jæger KH, Kuchta M, Mardal K-A and Rognes ME (2017) A Cell-Based Framework for Numerical Modeling of Electrical Conduction in Cardiac Tissue. Front. Phys. 5:48. doi: 10.3389/fphy.2017.00048

Received

21 June 2017

Accepted

25 September 2017

Published

10 October 2017

Volume

5 - 2017

Edited by

Christian F. Klingenberg, University of Würzburg, Germany

Reviewed by

Edward Joseph Vigmond, Université de Bordeaux, France; Edoardo Milotti, University of Trieste, Italy

Updates

Copyright

*Correspondence: Aslak Tveito

This article was submitted to Computational Physics, a section of the journal Frontiers in Physics

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics