Files
OpenFOAM-12/test/multiphase/multiphaseEulerFoam/populationBalance/binaryBreakup/validation/createGraphs
Henry Weller b832453b72 multiphaseEulerFoam: replacement for reactingMultiphaseEulerFoam
The new multiphaseEulerFoam is based on reactingMultiphaseEulerFoam with some
improvements and rationalisation to assist maintenance and further development.

The phase system solution has been enhanced to handle two phases more
effectively and all two-phase specific models updated for compatibility so that
multiphaseEulerFoam can also replace reactingTwoPhaseEulerFoam.
When running multiphaseEulerFoam with only two-phases the default behaviour is
to solve for both phase-fractions but optionally a reference phase can be
specified so that only the other phase-fraction is solved, providing better
compatibility with the behaviour of reactingTwoPhaseEulerFoam.

All reactingMultiphaseEulerFoam and reactingTwoPhaseEulerFoam tutorials have
been updated for multiphaseEulerFoam.
2020-07-15 18:13:40 +01:00

40 lines
1.0 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
gnuplot<<EOF
set terminal postscript eps monochrome
set output '../numberDensity.eps'
set decimalsign '.'
set format xy '%g'
set xtics 1e1 mirror
set xlabel 'v(m^{3})'
set ytics 1e1 mirror
set ylabel 'n(m^{-3}m^{-3})'
set logscale xy
set xrange [1e-5:1.5]
set yrange [1e-5:10]
set key at graph 0.8,0.5
N0 = 0.05
v0 = 1.0
n(x,t) = N0*exp(-t*x**2.0)*2.0*t*v0
numberDensity = '../postProcessing/numberDensity/10/numberDensity.dat'
plot '<printf "1 0.05\n1 0\n"' w l t 'Init. Cond.',\
n(x,10.0) ls 2 lc rgb 'black' t '[Ziff and McGrady, J. Phys. A: Math. Gen., 18: 3027-3037, 1985]',\
numberDensity every ::0::19 u 1:4 w p pt 1 t 'air1',\
numberDensity every ::20::24 u 1:4 w p pt 5 t 'air2',\
numberDensity every ::25::28 u 1:4 w p pt 9 t 'air3'
EOF
#------------------------------------------------------------------------------