Function Objects – histogram

OpenFOAM Version:

Settings of histogram


You can create a picture as shown below using Gnuplot with the input file generated by OpenFOAM. I replaced “with lines” with “with boxes” in the input command file to create this picture.


In the above picture, the first bin represents the following volume fraction:

\frac{\sum_{celli}^{} \left( V_{celli}:\;300 \leq T_{celli} < 301\right)}{\sum_{celli}^{} \left( V_{celli}:\;min \leq T_{celli} < max\right)},

where \(V\) is the cell volume.