Files
OpenFOAM-12/applications/test/Distribution2/createGraphs
Will Bainbridge 1a54b2ecfc lagrangian: distributionModels: Cumulative general distribution
The general distribution has been extended to accept cumulative
distribution data, by means of a "cumulative" switch. The calculation of
the mean value has also been corrected for this distribution, and
additional header documentation and parameter checking has been added.

In addition, the distribution models now all print some basic
information (min, max and mean) into the log file to help in checking
that the specification is correct.

Patch contributed by Timo Niemi, VTT.
2019-08-16 11:42:38 +01:00

25 lines
620 B
Bash
Executable File

#!/bin/sh
gnuplot<<EOF
set terminal postscript eps color enhanced font "Helvetica,15"
set output 'comparison.eps'
set multiplot layout 2, 1
set xlabel 'size (m)'
set ylabel 'PDF (-)'
set title 'Density mode test'
plot 'densityTest_' using 1:2 w l t 'produced',\
'densityTest_expected' w l t 'expected'
set key center
set ylabel 'CDF (-)'
set title 'Cumulative mode test'
plot 'cumulativeTest_cumulative_' using 1:2 w l t 'produced',\
'cumulativeTest_expected' w l t 'expected'
EOF
#------------------------------------------------------------------------------