Hi, I think I started overthinking something, so I need some clarification on how things are implemented in openCARP. I looked at example 07 on ECGs, documentation and some other questions in this forum, however I am still in doubts. Let's say I have the following simulations setups for an atria in a bath:
Bidomain/Pseudo-bidomain:
-num_imp_regions 1
-imp_region[0].name Atrium
-imp_region[0].im Courtemanche
-imp_region[0].num_IDs 1
-imp_region[0].ID[0] 1
-num_gregions 2
-gregion[0].name Bath
-gregion[0].g_bath 0.24725
-gregion[0].num_IDs 1
-gregion[0].ID[0] 0
-gregion[1].name Atria
-gregion[1].g_il 0.3333
-gregion[1].g_it 0.3333
-gregion[1].g_in 0.3333
-gregion[1].g_el 0.6666
-gregion[1].g_et 0.6666
-gregion[1].g_en 0.6666
-gregion[1].num_IDs 1
-gregion[1].ID[0] 1
-num_phys_regions 2
-phys_region[0].name Extracellular
-phys_region[0].ptype 1
-phys_region[0].num_IDs 2
-phys_region[0].ID[0] 0
-phys_region[0].ID[1] 1
-phys_region[1].name Intracellular
-phys_region[1].ptype 0
-phys_region[1].num_IDs 1
-phys_region[1].ID[0] 1
-phie_rec_ptf /home/jg23/ecg
-bidomain 2
Monodomain with IVC/Lead fields:
-num_imp_regions 1
-imp_region[0].name Atrium
-imp_region[0].im Courtemanche
-imp_region[0].num_IDs 1
-imp_region[0].ID[0] 1
-num_gregions 1
-gregion[0].name Atria
-gregion[0].g_il 0.3333
-gregion[0].g_it 0.3333
-gregion[0].g_in 0.3333
-gregion[0].g_el 0.6666
-gregion[0].g_et 0.6666
-gregion[0].g_en 0.6666
-gregion[0].num_IDs 1
-gregion[0].ID[0] 1
-phie_rec_ptf /home/jg23/ecg
-bidomain 0
My questions are:
1. For bidomain/pseudo-bidomain, how can I obtain Phie values to compute ECGs? In a previous question, Toni mentioned loading the phie.igb file and extracting the Phie values at the mesh point indices corresponding to the ECG electrodes locations, which can then be used to calculate ECGs.
2. Following up on question (1), if I include -phie_rec_ptf with ecg.pts in the bidomain/pseudo-bidomain simulation, as show in the example, it generates a phie_recovery.igb file. Can I use this phie_recovery.igb to calculate my bidomain ECGs, or not? The documentation states that phie_rec_ptf is used to recover Phie in monoodomain simulations, but example 07 includes it in bidomain cases, so I'm a bit confused.
3. Does the monodomain with IVC setup look correct or is there something missing? How can I configure the bath conductivity for IVC?
4. Do I need -phys_region for monodomain IVC?
Thanks,
Jakub