Open mrp089 opened 3 years ago
Still not working, but some lessons learned:
restart.0.*
does NOT contain a parallel distribution of initial conditions, i.e. "time step zero". Instead. it holds variable wall properties (in case those are defined): https://github.com/SimVascular/svSolver/blob/9e5ebbca23c86ee1837774b97f99c3fe731e3c22/Code/FlowSolvers/ThreeDSolver/svSolver/readnblk-varwall.f#L459-L460 So I would have to use time step one to rename restart files in step 5 above.restart
files (not just the file name). Not sure where that happens but that messes up step 5 above.lstep
used to read/write *HistRCR.dat.nstep
https://github.com/SimVascular/svSolver/blob/9e5ebbca23c86ee1837774b97f99c3fe731e3c22/Code/FlowSolvers/ThreeDSolver/svSolver/coronary_subroutines.f#L130 is not the same as numstep
to read restart.nstep.*
files https://github.com/SimVascular/svSolver/blob/9e5ebbca23c86ee1837774b97f99c3fe731e3c22/Code/FlowSolvers/ThreeDSolver/svSolver/readnblk-varwall.f#L100-L101 So you end up with displacements/velocities from a different time step than boundary condition history.More investigation is needed...
As a way to deal with #96, I created the following workflow:
nstep
time steps until it reaches a periodic staterestart.0.1
file*HistCOR.dat.nstep
files from the history of the 0D solutionrestart.0.*
files for each processorrestart.0.*
files torestart.nstep.*
nstep
My goal is thus to provide
svSolver
with initial conditions for flow and pressure and tricking it into thinking I'm restarting a simulation with coronary BCs at time stepnstep
with the history provided in*HistCOR.dat.nstep
.Unfortunately, whenever I run step 6,
svSolver
starts computing time step1
and not time stepnstep
. I've uploaded my project here. @ktbolt Can you check if I'm doing something dumb that prevents me from restarting at the chosen time step? Thank you!!