rsachetto / MonoAlg3D_C

Extensible Monodomain simulator
MIT License
16 stars 13 forks source link

New PMJ functions and minor fixes #58

Closed bergolho closed 1 year ago

bergolho commented 1 year ago

Hello Sachetto,

This pull request introduces new functions to write the PMJ coupling information to files.

For instance, the PMJ delay for each Purkinje terminal is now writen as a ".csv" file instead of just printed using "stdout".

Also, there is a function that outputs the points involved in the Purkinje coupling as ".vtk". Two new files are generated, one containing the Purkinje terminal positions, "purkinje_terminals.vtk", and a second with the coupled tissue cells, "coupled_tissue_cells.vtk". This last one has an additional POINT_DATA value called "associatedTerminal" so you can check which Purkinje terminal a coupled tissue cell is linked to.

Maybe these functions can be moved to another file/library instead of the "monodomain_solver.c", but I would like to know your opinion first.

Bests, Lucas