chaste codegen: automatic CellML to C++ code generation with fixes for singularities and automatically generated Jacobians. Hendrix, M., Clerx, M., Tamuri, A. U., Keating, S. M., Johnstone, R. H., Cooper, J., & Mirams, G. R. Technical Report 6:261, Wellcome Open Research, October, 2021. Type: article
chaste codegen: automatic CellML to C++ code generation with fixes for singularities and automatically generated Jacobians [link]Paper  doi  abstract   bibtex   
Hundreds of different mathematical models have been proposed for describing electrophysiology of various cell types. These models are quite complex (nonlinear systems of typically tens of ODEs and sometimes hundreds of parameters) and software packages such as the Cancer, Heart and Soft Tissue Environment (Chaste) C++ library have been designed to run simulations with these models in isolation or coupled to form a tissue simulation. The complexity of many of these models makes sharing and translating them to new simulation environments difficult. CellML is an XML format that offers a solution to this problem and has been widely-adopted. This paper specifically describes the capabilities of chaste_codegen, a Python-based CellML to C++ converter based on the new cellmlmanip Python library for reading and manipulating CellML models. While chaste_codegen is a Python 3 redevelopment of a previous Python 2 tool (called PyCML) it has some additional new features that this paper describes. Most notably, chaste_codegen has the ability to generate analytic Jacobians without the use of proprietary software, and also to find singularities occurring in equations and automatically generate and apply linear approximations to prevent numerical problems at these points.
@techreport{hendrix_chaste_2021,
	title = {chaste codegen: automatic {CellML} to {C}++ code generation with fixes for singularities and automatically generated {Jacobians}},
	copyright = {http://creativecommons.org/licenses/by/4.0/},
	shorttitle = {chaste codegen},
	url = {https://wellcomeopenresearch.org/articles/6-261},
	abstract = {Hundreds of different mathematical models have been proposed for describing electrophysiology of various cell types. These models are quite complex (nonlinear systems of typically tens of ODEs and sometimes hundreds of parameters) and software packages such as the Cancer, Heart and Soft Tissue Environment (Chaste) C++ library have been designed to run simulations with these models in isolation or coupled to form a tissue simulation. The complexity of many of these models makes sharing and translating them to new simulation environments difficult. CellML is an XML format that offers a solution to this problem and has been widely-adopted. This paper specifically describes the capabilities of chaste\_codegen, a Python-based CellML to C++ converter based on the new cellmlmanip Python library for reading and manipulating CellML models. While chaste\_codegen is a Python 3 redevelopment of a previous Python 2 tool (called PyCML) it has some additional new features that this paper describes. Most notably, chaste\_codegen has the ability to generate analytic Jacobians without the use of proprietary software, and also to find singularities occurring in equations and automatically generate and apply linear approximations to prevent numerical problems at these points.},
	language = {en},
	number = {6:261},
	urldate = {2021-10-17},
	institution = {Wellcome Open Research},
	author = {Hendrix, Maurice and Clerx, Michael and Tamuri, Asif U. and Keating, Sarah M. and Johnstone, Ross H. and Cooper, Jonathan and Mirams, Gary R.},
	month = oct,
	year = {2021},
	doi = {10.12688/wellcomeopenres.17206.1},
	note = {Type: article},
	keywords = {C++, CellML, GHK equation, cardiac electrophysiology, code generation, jacobian, singularity, uses sympy},
}

Downloads: 0