Convert results without GUI

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Hunor Csala
Posts: 4
Joined: Tue Sep 28, 2021 4:41 pm

Convert results without GUI

Post by Hunor Csala » Thu May 18, 2023 7:31 pm

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!

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

Re: Convert results without GUI

Post by David Parker » Tue May 23, 2023 4:25 pm

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

POST REPLY