Function Objects – histogram


OpenFOAM Version:
OpenFOAM-4.x

Settings of histogram

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.

histgram

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

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

where \(V\) is the cell volume.