ComputationalPhysiology / simcardems

Simula Cardiac ElectroMechanics Solver
http://computationalphysiology.github.io/simcardems
GNU Lesser General Public License v2.1
11 stars 11 forks source link

Use scipy's odesolver to solve the ODEs on the mechanics side #180

Closed finsberg closed 5 months ago

finsberg commented 1 year ago

Use scipy's Radau method to solve the odes for Zetas and Zetaw. This is an implicit method so we should be able to take larger step between each mechanics solves.

With the current implementation I am able to run the simple_demo and arrive at the same reference solution using mech_threshold=2.0 (default is 0.05) or dt_mech=0.1 (default is 1.0). This mean essentially that we solve the mechanics model every time step which is not any improvement.