Hi, I am doing a monodomain simulation on a biventricular mesh cut at the base using the Tomek model, I have already tagged 4 regions of the mesh based on the transmural coordinates and applied to them flags for the EPI, MCELL and ENDO ionic variant of the model. I want also to apply a gradient for the GKs_b variable of the model based on the apicobasal and transmural coordinates.
To do so since the original Tomek in the limpet library does not expose any variable, I modified and recompiled the Tomek.model to expose the GKs_b var as nodal value and I created an adjustment file for mesh nodes based on ab coordinates. Then I applied the adj file with the ajustment parameters, the following is part of the carputils script with imp regions and phys region.
cmd += [
'-num_imp_regions', 3,
'-imp_region[0].name', 'Endocardio',
'-imp_region[0].num_IDs', 2,
'-imp_region[0].ID[0]', 3, #tag endocardio 3
'-imp_region[0].ID[1]', 4, #tag fast endocardio 4
'-imp_region[0].im', 'Tomek_editv3',
'-imp_region[0].im_param', 'flags=ENDO',
'-imp_region[1].name', 'Mid_Miocardio',
'-imp_region[1].num_IDs', 1,
'-imp_region[1].ID[0]', 2,
'-imp_region[1].im', 'Tomek_editv3',
'-imp_region[1].im_param', 'flags=MCELL',
'-imp_region[2].name', 'Epicardio',
'-imp_region[2].num_IDs', 1,
'-imp_region[2].ID[0]', 1,
'-imp_region[2].im', 'Tomek_editv3',
'-imp_region[2].im_param', 'flags=EPI',
'-num_adjustments', 1,
'-adjustment[0].variable', 'Tomek_editv3.GKs_b',
'-adjustment[0].file', './sb3901_meshes/gks_tomek_gradient30abtm.adj',
'-adjustment[0].dump', 1,
]
I added the flag dump, the simulation export also 2 dat files Gks_b_canonical.dat and Gks_perm.dat However If I open them on the input mesh in Meshalyzer, one shows only a portion of the mesh with the gradient values the rest is black while the other file shows various colored points distributed non uniformally on the mesh.
I don't understand if I am making mistakes in the generation and application of adj file or it is a problem of the dump option.
At the folder at this link I uploaded the the file used for the simulation and the dat files output from the simulation. opencarp_simulation_files
Thanks for the help!