First time here? Checkout the FAQ!
x
0 votes
by (120 points)

Hello everyone,

I am trying to modify a list of parameters for the ToRORd_dynCl ionic model using imp_region[0].im_param defined in the parameter file. For some reason it is only accepting a certain length of the string of parameters mentioned. So for example in the im_param I define a long string for ionic model parameters but only the first say 100 characters of the string are being accepted. The characters in string after that throw an error saying "Unrecognized keyword". 

This is what I am defining in the parameter file:

num_imp_regions = 1

imp_region[0].im = ToRORd_dynCl

imp_region[0].num_IDs  = 65

imp_region[0].im_param = "flags=EPI,GNa=1.5788e+01,GNaL_b=1.8332e-01,Gto_b=8.1327e-02,PCa_b=2.5652e-04,GKr_b=6.2616e-02,GKs_b=1.1041e-03,GK1_b=1.4432e+00,Gncx_b=7.5696e-03,Pnak_b=5.0441e+01,GKb_b=6.6005e-02,GClCa=5.5524e-01,cmdnmax_b=1.8078e-01,Jup_b=1.1585e+00,Jrel_b=1.8615e+00"

This is the error I get when I run the simulation:

*** Unrecognized keyword 85e+00

*** Error reading parameters

The 85e+00 is a part of the value defined for Jup_b. 

I have tried assigning parameter modifications in multiple lines but in that case only the parameters defined in the last line are being modified. Does anyone know the reason for this error? Is it a bug? I am using CARPentry.

I would appreciate it if you could give me some advice on how to solve the problem!

Thanks

2 Answers

0 votes
by (610 points)

The parameter file seams to have a line limit for 255 characters.

As a quick fix you might try to rewrite your parameters to fit within that limit (removing +e00 or replacing -e02 with -e2 etc.). In your case it would result to a line:

imp_region[0].im_param="flags=EPI,GNa=15.788,GNaL_b=1.8332e-1,Gto_b=8.1327e-2,PCa_b=2.5652e-4,GKr_b=6.2616e-2,GKs_b=1.1041e-3,GK1_b=1.4432,Gncx_b=7.5696e-3,Pnak_b=5.0441e+1,GKb_b=6.6005e-2,GClCa=5.5524e-1,cmdnmax_b=1.8078e-1,Jup_b=1.1585,Jrel_b=1.8615"

For a more robust solution you would need to change the code of the simulator directly.

0 votes
by (8.1k points)
I have increased the parameter file parsing buffer size in the latest openCARP commit (on master). Let me know if this fixes the issue for you.

Best, Aurel
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...