Keywords for svpost in .slurm files

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Alessandro Ruggeri
Posts: 5
Joined: Sun Jul 02, 2023 2:47 am

Keywords for svpost in .slurm files

Post by Alessandro Ruggeri » Mon Apr 29, 2024 7:02 am

Dear all,

I've some trouble in generating .txt velocity, flow and pressure average files after converting results.
Actually, i'm working without a GUI in a server that is Linux-based. I run simulations after uploading all simulation files in a directory and by running a .slurm file.
Simulation run fine, and i can reduce results and obtain .vtu and .vtp files, but i can take .txt average files.

The general structure of .slurm file that i use is the following:

Code: Select all

#!/bin/bash -l

#SBATCH --nodes=1
#SBATCH --ntasks=16
#SBATCH --partition=debug
#SBATCH --job-name=test

WORK_DIR=/home/
EXE_DIR=/opt/svSolver-build/svSolver-build/bin

module purge
module load mpi/openmpi3-x86_64
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH

cd ${WORK_DIR}/$SLURM_JOB_NAME

#launch simulation
mpirun ${EXE_DIR}/svsolver > ./log

#reduce results
${EXE_DIR}/svpost -all -indir ./$SLURM_NTASKS-procs_case -outdir ./ -start 4546 -stop 5054 -incr 2 -vtkcombo -vtp $SLURM_JOB_NAME.vtp -vtu $SLURM_JOB_NAME.vtu

I've found this instruction for svpost, but I don't know how to make those work in .slurm file

Code: Select all

create-flow-files --mesh-directory /home/test/mesh-complete/mesh-surfaces/    --output-directory /home/test/  --results-directory /home/test/  --single-file no --skip-walls yes  --units cm
Can you help me?

Best regards,
Alessandro

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

Re: Keywords for svpost in .slurm files

Post by David Parker » Mon Apr 29, 2024 5:09 pm

Hi Alessandro,

There is no functionality in svpost to create flow files.

The create-flow-files you refer to is I think a program I wrote to create flow files (see https://github.com/ktbolt/cardiovascula ... flow-files).

I've never built this guy on an HPC cluster but you can download the C++ source and try to build it (needs CMake and VTK).

Cheers,
Dave

POST REPLY