SimVascular / svZeroDSolver

A C++ lumped-parameter solver for blood flow and pressure in hemodynamic networks
https://simvascular.github.io/documentation/rom_simulation.html#0d-solver
Other
7 stars 20 forks source link

Add time to configure #139

Open alexkaiser opened 4 days ago

alexkaiser commented 4 days ago

Use Case

Some LPN blocks such as the chamber block have time-dependent parameters, but explicit time-dependence is not implemented in the calibrate program.

Problem

This will allow blocks with time-dependent to be used by the calibrate program.

Solution

Time and time-dependent variables for each block should be updated in the calibrate program in the main loop over the time series.

Alternatives considered

The code could potentially be modified from the main solver loops over time.

Additional context

An initial attempt at adding chamber blocks to configure (that does not yet work) was thwarted by the lack of time-dependent updates. See this fork for (incomplete) code: https://github.com/alexkaiser/svZeroDSolver/tree/chamber_calibrate

Code of Conduct