File size: 1,000 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/sh
if ! which gnuplot > /dev/null 2>&1
then
echo "gnuplot not found - skipping graph creation" >&2
exit 1
fi
file=postProcessing/outflow/0/surfaceFieldValue.dat
V15=$(grep '^2 ' "$file" | cut -f3)
V20=$(grep '^3 ' "$file" | cut -f3)
V25=$(grep '^4 ' "$file" | cut -f3)
V30=$(grep '^5 ' "$file" | cut -f3)
V35=$(grep '^6 ' "$file" | cut -f3)
gnuplot<<EOF
\$simulation << end
V15 $V15
V20 $V20
V25 $V25
V30 $V30
V35 $V35
end
\$experiment << end
V15 2.06
V20 2.036
V25 2.07
V30 2.683
V35 2.607
end
set terminal postscript eps size 4,3 color enhanced font "Helvetica,20"
set output "./validation/$(basename "$PWD").eps"
set style data histograms
set style histogram clustered
set style fill solid 1.0 border lt -1
set grid ytics
set ylabel 'Condensation Rate [g/s]'
plot [][0:4] \
'\$simulation' u (\$2*1000) t 'Simulation', \
'\$experiment' u 2:xtic(1) lt rgb "black" t 'Experiment'
EOF
#------------------------------------------------------------------------------
|