# Program Code Generator for Cardiac Electrophysiology Simulation with Automatic PDE Boundary Condition Handling

**Authors:** Florencio Rusty Punzalan, Yoshitoshi Kunieda, Akira Amano

PMC · DOI: 10.1371/journal.pone.0136821 · PLoS ONE · 2015-09-10

## TL;DR

This paper introduces a program code generator that simplifies cardiac electrophysiology simulations by automatically handling PDE boundary conditions.

## Contribution

The novel contribution is a replacement scheme for discretizing PDEs and boundary conditions in a program generator for cardiac simulations.

## Key findings

- The program generator can handle multi-cell simulations and implicit PDE numerical schemes.
- Simulation results using FHN and other cell models match experimental data, validating the code generator.
- The system reduces errors and time in customizing PDE solutions for cardiac electrophysiology.

## Abstract

Clinical and experimental studies involving human hearts can have certain limitations. Methods such as computer simulations can be an important alternative or supplemental tool. Physiological simulation at the tissue or organ level typically involves the handling of partial differential equations (PDEs). Boundary conditions and distributed parameters, such as those used in pharmacokinetics simulation, add to the complexity of the PDE solution. These factors can tailor PDE solutions and their corresponding program code to specific problems. Boundary condition and parameter changes in the customized code are usually prone to errors and time-consuming. We propose a general approach for handling PDEs and boundary conditions in computational models using a replacement scheme for discretization. This study is an extension of a program generator that we introduced in a previous publication. The program generator can generate code for multi-cell simulations of cardiac electrophysiology. Improvements to the system allow it to handle simultaneous equations in the biological function model as well as implicit PDE numerical schemes. The replacement scheme involves substituting all partial differential terms with numerical solution equations. Once the model and boundary equations are discretized with the numerical solution scheme, instances of the equations are generated to undergo dependency analysis. The result of the dependency analysis is then used to generate the program code. The resulting program code are in Java or C programming language. To validate the automatic handling of boundary conditions in the program code generator, we generated simulation code using the FHN, Luo-Rudy 1, and Hund-Rudy cell models and run cell-to-cell coupling and action potential propagation simulations. One of the simulations is based on a published experiment and simulation results are compared with the experimental data. We conclude that the proposed program code generator can be used to generate code for physiological simulations and provides a tool for studying cardiac electrophysiology.

## Full-text entities

- **Genes:** ALDH7A1 (aldehyde dehydrogenase 7 family member A1) [NCBI Gene 501] {aka ATQ1, EPD, EPEO4, PDE}
- **Chemicals:** C (MESH:D002244), BTCS (-)
- **Species:** Cavia porcellus (domestic guinea pig, species) [taxon 10141], Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC4565589/full.md

## Figures

13 figures with captions in the complete paper: https://tomesphere.com/paper/PMC4565589/full.md

## References

34 references — full list in the complete paper: https://tomesphere.com/paper/PMC4565589/full.md

---
Source: https://tomesphere.com/paper/PMC4565589