rsachetto / MonoAlg3D_C

Extensible Monodomain simulator
MIT License
16 stars 13 forks source link

Add new scripts/New ToRORd model variant/New option to save the Purkinje on the Ensight save mesh function #71

Closed bergolho closed 3 months ago

bergolho commented 3 months ago

Dear Sachetto,

In this pull request, I am sending you some new "/scripts" to calibrate the monodomain conductivities using "tuneCV" alongside some other minor changes.

The main idea is to use the "tuneCV" to calibrate the values on a cable first using the algorithm proposed here (https://opencarp.org/documentation/examples/02_ep_tissue/03a_study_prep_tunecv). Next, we use the 'evaluateBenchmarkCV' script to run a 3D wedge simulation with the previously tuned conductivities to check their CVs. It is very simple, but we plan to improve in the future.

Another change in this pull request is a new option to the "_save_asensight" function. You can now use a boolean value called "_savepurkinje" to choose if you want the Purkinje to be written in the Ensight files during a Purkinje coupled simulation.

Finally, there is a new variant for the ToRORd model that we are using for a new paper called "_ToRORd_fkatp_mixed_endo_mid_epi_GKsGKrtjcaadjustments".

After this pull request, there will another one with some change in the "_monodomainsolver.c" since I am working on the Purkinje coupled code. I decided to break the pull requests in two parts, so that there will be not so many changes for you to look.

Best regards, Lucas