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
Best regards,
Alessandro