New "ToRORd_Land" cellular model and minor changes #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Sachetto,
In this pull request there are a few changes and additions to the solver. They are summarized below:
1) ToRORd_Land model:
A new variation of the ToRORd human cellular model to the repository has been implemented. It is called ToRORd_Land and it is a mix between the original ToRORd with the Land model. The model itself is suitable for electromechanical simulations, but we can control the fibre stretch of the Land model by setting the 'lambda' parameter equal to 1 (no deformation) leading to a 0D model.
In all my tests (single cell, cable, plain and biventricular) the model can be solved using a fixed Rush-Larsen timestep of dt=0.01ms without NaN errors and with an accuracy closer to the original Matlab code. Also, the user can include current modifiers to the model by using the new extra data functions "set_extra_data_mixed_torord_Land_same_celltype" and "set_extra_data_mixed_torord_Land_epi_mid_endo" and change the AP behaviour as desired. To test the model capabilities three new configuration files have been added to the example_configs/ folder:
2) Change the PMJ delay calculus:
The PMJ delay calculus is now made using the difference between the LAT of the terminal Purkinje volume and the minimum LAT obtained from the coupled ventricular volumes to that Purkinje terminal. We no longer use a mean LAT of the coupled ventricular volumes.
3) New script to read ".acm" files:
Reader script to extract the data from a ".acm" file has been added to the /scripts folder.