The CardiacEPSolver is used to model the electrophysiology of cardiac tissue, specifically using the monodomain or bidomain model. These models are continuum models and represent an average of the electrical activity over many cells. The system is a reaction-diffusion system, with the reaction term modeling the flow of current in and out of the cells using a separate set of ODEs.

The Bidomain model is given by the following PDEs,

g_{ix} + g_{iy} | = χ | ||

g_{ex} + g_{ey} | = -χ. |

However, when solving numerically, one often rewrites these equations in terms of the transmembrane potential and extracellular potential,

χ | = g_{ex} + g_{ey} | ||

(g_{ix} + g_{ex}) + (g_{iy} + g_{ey}) | = -g_{ix} - g_{iy} |

In the case where the intracellular and extracellular conductivities are proportional,
that is g_{ix} = kg_{ex} for some k, then the above two PDEs can be reduced to a single
PDE:

χ | = ∇⋅ (σ∇V _{m}) |

The action potential of a cardiac cell can be modelled at either a biophysical level of detail, including a number of transmembrane currents, or as a phenomenological model, to reproduce the features of the action potential, with fewer variables. Each cell model will include a unique system of ODEs to represent the gating variables of that model.

A number of ionic cell models are currently supported by the solver including:

- Courtemanche, Ramirez, Nattel, 1998
- Luo, Rudy, 1991
- ten Tusscher, Panfilov, 2006 (epicardial, endocardial and mid-myocardial variants)

Phenomological cell models are also supported:

- Aliev-Panfilov
- Fitzhugh-Nagumo

It is important to ensure that the units of the voltage and currents from the cell model are consistent with the units expected by the tissue level solver (monodomain/bidomain). We will show as an example the Courtemanche, Ramirez, Nattel, 1998 human atrial model.

The monodomain equation:

χ | = ∇⋅ (σ∇V _{m}) |