Page 1 of 1

Convert results without GUI

Posted: Thu May 18, 2023 7:31 pm
by csalahunor
Hello,

I am wondering if there is any way to convert the SimVascular outputs to vtk without using the SimVascular GUI, like from command line?

The problem I am facing is that I am running a bunch of simulations using HPC, but then I have to copy them to my personal laptop one by one and convert the results there. Since these are quite big, just downloading them to my laptop takes a lot of time, therefore, I'm wondering if there is a way to do the result conversion directly in an HPC environment using some command line tools?

Thanks!

Re: Convert results without GUI

Posted: Tue May 23, 2023 4:25 pm
by davep
Hello,

You can convert simulations results using the svpost program that is built with svsolver.

You can use a bash script that looks something like this

Code: Select all

svpost=$HOME/svSolver/build/svSolver-build/bin/svpost

indir=4-procs_case
outdir=export
start=100
stop=500
inc=100

$svpost -all  \
    -indir ${indir}   \
    -outdir ${outdir}  \
    -start ${start}  \
    -stop ${stop}  \
    -incr ${inc}  \
    -vtp all_results  \
    -vtu all_results
Note that svpost does not create the all_results-*.txt files, these are only create from the SV GUI.

Cheers,
Dave