Files
OpenFOAM-12/tutorials/multiRegion/CHT/wallBoiling/validation/createWallBoilingPropertiesGraphs
Will Bainbridge 303e3d1f60 tutorials: Consistency of All* scripts
Various minor changes to tutorial scripts. In particular, ensuring that
they all change to the containing directory so that batches of tutorials
can be run easily from the root of the installation.
2024-06-28 14:31:05 +01:00

52 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
if ! which gnuplot > /dev/null 2>&1
then
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi
graphFile=$(foamListTimes -latestTime)/patch.xy
gnuplot<<EOF
set terminal postscript eps size 8,9 color enhanced font "Helvetica,20"
set output "./validation/$(basename "$PWD")Properties.eps"
set multiplot layout 2,2
set decimalsign '.'
set grid
set key at graph 0.65,0.95
set ylabel 'Vertical coordinate (m)'
set yrange [0:4]
set xtics rotate by -45
set xlabel 'Departure diameter (mm)'
plot \
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
u (\$4*1e3):1 w l lt 1 t 'Simulation' \
set xlabel 'Departure frequency (Hz)'
plot \
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
u 5:1 w l lt 1 t 'Simulation' \
set xlabel 'Nucleation Site Density (1/mm^2)'
plot \
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
u (\$6/1e6):1 w l lt 1 t 'Simulation' \
set xlabel 'Heat flux partitioning function, liquid (-)'
plot \
"postProcessing/fluid/patchWallBoilingProperties/$graphFile" \
u 7:1 w l lt 1 t 'Simulation' \
set key at graph 0.99,0.95
unset multiplot
EOF
#------------------------------------------------------------------------------