How to combine restart files in commandline

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Seo Yeon Kim
Posts: 6
Joined: Tue Mar 21, 2023 5:32 am

How to combine restart files in commandline

Post by Seo Yeon Kim » Mon Oct 28, 2024 2:39 am

I found this Last Step to restart.x.0 function in the GUI version of simvascular.
------------------------------------------------------------------------------------------
> Last Step to restart.x.0

This options combines all the restart files of the last step (200) to a single restart file restart.200.0. which can be used to start a new simulation after renamed as restart.0.1.
------------------------------------------------------------------------------------------

In order to operate the same process (combining restart files from last time step to a single restart file) with command line, which command should i use when running the svpost?

below is the command line arguments for the reference

COMMAND-LINE ARGUMENT SUMMARY
-h : Display usage and command-line argument summary
-sn stepnumber : Specify single step number to reduce
-start stepnumber : Specify starting step number
-stop stepnumber : Specify stopping step number
-newsn stepnumber : override step number in file
-incr increment : Specify increment between steps
-ph : Write flowsolver-format file restart.<stepnumber>.0
-laststep : Only write last step to file restart.<stepnumber>.0
-vis file_prefix : Write Vis-format results file
-vismesh filename : Write Vis-format mesh file
-vtu prefix or file : Write VTK XML UnstructuredGrid
-vtp prefix or file : Write Surface Only VTK XML PolyData
-vtkcombo : Combine all VTK in single file
-sol : Reduce solution(pressure and velocity)
-traction : Reduce in-plane traction
-disp : Reduce displacements
-wallprop : Reduce wall properties
-rho : Fluid density
-mu : Fluid viscosity
-td : Reduce time-derivative field
-wss : Reduce Wall Shear Stress
-wfilter filename : output wall data only on specified wall
-calcws : Recalculate wall stress on specified wall
-applywd : Apply wall deformation during wall stress calculation
-ybar : Reduce average speed and pressure
-yerror : Reduce speed and pressure errors
-nonbinary : Read/Write files in ASCII format
-all : Reduce all available data
-sim_units_mm : set sim units to mm
-sim_units_cm : set sim units to cm (default)
-indir : directory containing restart files (default .)
-outdir : directory containing output files (default .)
-res : Compares residual profiles on histor.dat files
and writes a report to residualDiff.out
-compare : Compare pressures and velocities in result VTU files
-vel : Output velocity data to binary file
and writes a report to vtuDiff.out
-beta : Darcy flow sink conductance
-bcfile : Darcy flow boundary condition file
-venous_pressure : Darcy flow sink pressure
END COMMAND-LINE ARGUMENT SUMMARY



Thank you for the help in advance :)

User avatar
David Parker
Posts: 1747
Joined: Tue Aug 23, 2005 2:43 pm

Re: How to combine restart files in commandline

Post by David Parker » Mon Oct 28, 2024 10:44 am

Hello,

I am guessing that setting the -sn option to the last time step will do what you want.

Code: Select all

-sn stepnumber : Specify single step number to reduce

Cheers,
Dave

POST REPLY