CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
This page regroups additional information on inputs and outputs of CEPS. See this page for text file inputs.
Readable mesh formats are
.mesh
(medit,gmsh,...).ele
(Tetgen). .face
.node
files must be present alongside the .ele
file..pvtu
(parallel XML VTK file).vtk
(legacy VTK file)The prefered mesh format is vtk
or pvtu
, for the reasons listed in sections below.
All meshes must have 3 dimensional coordinates, even if it is a 2d or 1d mesh.
The expected unit for coordinates in cardiac problems is the centimeter. Use the geometry scale
parameter in the text input file for easy unit change.
Several meshes can be given for each dimension (1d,2d,3d). The meshes will be merged into a single computational domain, but not coupled by default. To couple meshes refer to the coupled nodes section.
CEPS requires boundary elements to impose boundary conditions. For each dimension , a mesh can contain volumic simplices of dimension , and boundary simplices of dimension . The elements given in a mesh in a input line of lower dimension will not be considered as boundary elements of the higher dimension mesh. Boundary elements must be given in the same mesh file than volumic elements.
For example, when meshing a 3D domain with gmsh, save the 2D elements on boundary and the 3D elements in the same mesh file. Give this file as input with the 3d mesh
entry.
In CEPS, several attributes can be given to each point and/or cell within a mesh. Attributes are used to locate regions of the computational domain. For example, a boundary condition can be imposed on part of the boundary thanks to attributes.
Here are some information to keep in mind when building a mesh that will be used by CEPS:
It is possible to couple meshes two by two by providing a list of node indices between which an edge will be added. To work properly, the file containing coupling data must be given in the main input file using the coupled nodes
entry.
The file must contain the following pattern for each pair of coupled meshes:
where meshA
and meshB
are the complete file names of the two linked meshes, N
is the number of couples to be read and nodeABX
are the respective IDs of the coupled nodes in those meshes. Several couplings can be given in the same file.
Real-valued data arrays can be passed to CEPS. They can be made of scalar, vector or tensorial data. Some problems can be parametrized with custom coefficients imported from mesh files
In order to pass fibers orientation to CEPS, it is possible to do it in two ways:
When solving a PDE, CEPS will write the following files.
For spatial data, either one of these three formats, selected with the "output format"
option:
"MUSICARDIO"
option, which is the same as "VTK_LEGACY"
, a collection of legacy .vtk
files will be generated in a subdirectory called snapshots
, along with a .xml
file in the main output directory, that can be opened in the MUSICARDIO software."PARAVIEW_SERIES"
(or "PSERIES"
for short), the snaphot files will be of the
.vtu format. The collection file name ends in .series
and can be opened in Paraview to load all the data at once."CEPS"
options, a custom file format is used for snapshots. These files can be loaded on the input mesh thanks to the Paraview plugin that creates the "AppendCepsData" filter. See below.Note that the MUSICARDIO
, VTK_LEGACY
and CEPS
outputs require communications between CPUS at each writing step, since only the master CPUs writes a single file. The PARAVIEW_SERIES
files are written in parallel. The CEPS
output files do not duplicate the geometry, though. Choosing the output format is then a trade-off between disk usage and computation time.
Additionally, if probe points are given in the main text input file, a text file (suffixed _probes.dat
) is written, with values of the PDE unknowns interpolated at the probe points on each column, for each time iteration.
When solving a cardiac problem, maps of activation time, APD50, custom APDxx% and AP peak values can be computed along the simulation and output in the end. To do so, you must fill the activation time data
entry in the main text input file.
Each group of four numbers declares how the action potential signal is processed for an unknown of the problem. id
is the identifier of that unknown and the real values t
p
m
are used as follows:
Peak is defined as the first point with negative time derivative after the minimum value m
has been reached.
This plugin, located in the contrib
directory, can be added to Paraview (Tools -> Manage Plugins... -> Load New). The plugin creates the AppendCepsData filter. This filter can be applied on the input mesh that CEPS used for computation of spatial data. With the ...
button next to File Names
in the left column, select the files within the snapshots
directory that have the ceps_vtk
extension, then click on Apply
.