See code in GitLab.
Author: Jan-Erik Duhme jan-erik.duhme@kit.edu
This example shows how -imp_region_nodefile assigns imp_region indices to
individual mesh nodes, independent of element tags. In a simplified Kirchhoff network
model (SKNM) every node is one cell (see the SKNM example), so a
per-node assignment is a per-cell assignment: each cell can get its own ionic model and
its own surface-to-volume ratio. We use this to place a gap of small fibroblasts into a
chain of ventricular myocytes and ask whether an action potential can cross the gap.
With element tags alone this is hard: a node's region is derived from the tags of the elements around it (the highest tag wins, see Physics region in the user manual), and an element is shared by two nodes. For some very simple chains this can work with a carefully ordered tag sequence, but it quickly fails: the tags then encode the regions instead of the connections, and as soon as cells have more than two neighbours, a valid ordering often no longer exists.
To run the experiments of this example change directories as follows:
cd ${EXAMPLES}/04_sknm_tissue/02_cm_fb_interactionThe tissue is a chain of 10 myocytes, a gap of N fibroblasts, and 4 more myocytes (Fig. 1). Each cell is one node, and neighbouring nodes are connected by line elements.
tenTusscherPanfilov human ventricular model
1
,
fibroblasts (FB) the MacCannell fibroblast model
2
.The element tags only describe the connections, so each connection can get its own coupling resistance. Which ionic model and which per-cell parameters are used is set entirely by the node file.
As in the first SKNM example, the coupling resistances are converted to element conductivities, and the cross-section is set to \(\tilde{A} = 1\,\mathrm{\mu m^2}\).
Since openCARP uses a fixed specific membrane capacitance of 1 \(\mathrm{\mu F/cm^2}\), the capacitance of a cell is set by its membrane area \(S\).
openCARP first assigns every node a volume \(V\): with mass lumping, a node gets half
of the volume of every element touching it, i.e. half of the element length times
\(\tilde{A}\). \(V\) therefore depends on the node spacing and the neighbours, not
on the cell. The membrane area of the node is then cellSurfVolRatio times \(V\).
Since \(V\) differs between nodes of the same cell type, cellSurfVolRatio has to
differ as well, so that all cells of the same type get the same capacitance.
This gives five kinds of nodes, and each needs its own imp_region:
imp_region |
Node | Ionic model | \(V\) in \(\mathrm{\mu m^3}\) | cellSurfVolRatio in 1/µm |
|---|---|---|---|---|
| 0 | Myocyte, interior | tenTusscherPanfilov | 100.00 | 153.4 |
| 1 | Myocyte, chain end | tenTusscherPanfilov | 50.00 | 306.8 |
| 2 | Myocyte, next to fibroblast | tenTusscherPanfilov | 78.75 | 194.8 |
| 3 | Fibroblast, next to myocyte | MacCannell | 36.25 | 17.9 |
| 4 | Fibroblast, interior | MacCannell | 15.00 | 43.3 |
The node file uses the vertex adjustment (.adj) format. For 3 fibroblasts it looks
like this:
7
0 1
9 2
10 3
11 4
12 3
13 2
16 1
The first line is the number of entries, followed by one node region pair per line
with 0-based node indices. For a submesh, an intra line after the count makes the
indices refer to the intracellular grid. Nodes that are not listed keep the region
derived from their element tags, so every element tag still needs exactly one
imp_region, and num_imp_regions must be at least 2.
To verify that the assignment worked, set -dump_imp_region 1: openCARP then writes
the final region of every node to imp_region.dat in the output directory.
./run.py --visualize--fibroblasts: number of fibroblasts in the gap (default 3).--beats and --bcl: number of stimuli (default 5) and basic cycle length in ms
(default 1000).--r-cm-cm, --r-cm-fb, --r-fb-fb: coupling resistances in
M\(\Omega\) (defaults 1, 10 and 10).--visualize: plots the transmembrane voltage of the cells around the gap during
the first beat and over all beats.Number of fibroblasts
With 3 fibroblasts, the action potential crosses the gap with a delay of 11 ms. With 8 fibroblasts, too little current reaches the myocyte behind the gap, and conduction is blocked. Fig. 2 shows the first beat for both cases.
To recreate the figure:
./run.py --fibroblasts 3 --visualize
./run.py --fibroblasts 8 --visualizePacing frequency
With 6 fibroblasts, every beat crosses the gap at 1 Hz. At 2.5 Hz, the myocyte behind the gap has less time to recover between beats, the delay increases, and from the 6th beat on only every other beat crosses the gap (Fig. 3).
To recreate the figure:
./run.py --fibroblasts 6 --beats 8 --bcl 1000 --visualize
./run.py --fibroblasts 6 --beats 8 --bcl 400 --visualizeFor 3 fibroblasts, run.py passes the following region setup to openCARP:
# ionic models: only region 0 lists element tags
num_imp_regions = 5
imp_region[0].im = tenTusscherPanfilov # myocyte, interior
imp_region[0].num_IDs = 3
imp_region[0].ID[0] = 1
imp_region[0].ID[1] = 2
imp_region[0].ID[2] = 3
imp_region[0].cellSurfVolRatio = 153.4
imp_region[1].im = tenTusscherPanfilov # myocyte, chain end
imp_region[1].cellSurfVolRatio = 306.8
imp_region[2].im = tenTusscherPanfilov # myocyte, next to fibroblast
imp_region[2].cellSurfVolRatio = 194.8
imp_region[3].im = MacCannell # fibroblast, next to myocyte
imp_region[3].cellSurfVolRatio = 17.9
imp_region[4].im = MacCannell # fibroblast, interior
imp_region[4].cellSurfVolRatio = 43.3
# node file: moves the listed nodes into regions 1 to 4
imp_region_nodefile = meshes/chain_fb3_regions.adj
dump_imp_region = 1
# coupling: one conductivity per connection type
num_gregions = 3
gregion[0].num_IDs = 1
gregion[0].ID[0] = 1 # myocyte-myocyte, 1 MOhm
gregion[0].g_il = 200
gregion[1].num_IDs = 1
gregion[1].ID[0] = 2 # myocyte-fibroblast, 10 MOhm
gregion[1].g_il = 11.5
gregion[2].num_IDs = 1
gregion[2].ID[0] = 3 # fibroblast-fibroblast, 10 MOhm
gregion[2].g_il = 3Without the node file, every node would be an interior myocyte, since only region 0
lists element tags. To print the full command line, run ./run.py --dry.
ten Tusscher, K. H. W. J. and Panfilov, A. V., Alternans and spiral breakup in a human ventricular tissue model, American Journal of Physiology-Heart and Circulatory Physiology, vol. 291(3), 2006. DOI: 10.1152/ajpheart.00109.2006↩︎
MacCannell, K. A., Bazzazi, H., Chilton, L., Shibukawa, Y., Clark, R. B. and Giles, W. R., A mathematical model of electrotonic interactions between ventricular myocytes and fibroblasts, Biophysical Journal, vol. 92(11), 2007. DOI: 10.1529/biophysj.106.101410↩︎
There are tagged with limpet, experiments, examples, tissue, sknm, regions.
Here we display the 5 most recent questions. You can click on each tag to show all questions for this tag.
You can also ask a new question.
© Copyright 2020 openCARP project Supported by DFG and EuroHPC Contact Imprint and data protection