36 namespace histogramModels
71 nBins_ = ranges_.size();
75 const auto&
range = ranges_[bini];
80 <<
"Histogram bin-" << bini
81 <<
" has invalid range: " <<
range 89 <<
"Invalid number of histogram bins: " << nBins_
107 midBin[bini].x() = ranges_[bini].centre();
120 const auto&
range = ranges_[bini];
126 dataNormalised[bini] += V[celli];
void write(scalarField &dataNormalised, const labelField &dataCount, const scalarField &magMidBin)
Write histogram data.
static void listCombineGather(UList< T > &values, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Combines List elements.
Field< label > labelField
Specialisation of Field<T> for label.
defineTypeNameAndDebug(equalBinWidth, 0)
addToRunTimeSelectionTable(histogramModel, equalBinWidth, dictionary)
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual bool read(const dictionary &dict)
Read top-level dictionary.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A base class for histogram models.
errorManip< error > abort(error &err)
virtual bool write(const bool log)
Write data to stream and files.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
volScalarField & getOrReadField(const word &fieldName) const
Return requested field from the object registry or read+register the field to the object registry...
virtual bool read(const dictionary &dict)
Read top-level dictionary.
unequalBinWidth(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from components.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)