44 #ifndef Foam_histogramModel_H 45 #define Foam_histogramModel_H 172 virtual bool write(
const bool log) = 0;
void write(scalarField &dataNormalised, const labelField &dataCount, const scalarField &magMidBin)
Write histogram data.
virtual ~histogramModel()=default
Destructor.
virtual void writeFileHeader(Ostream &os)
Output file header information.
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool read(const dictionary &dict)
Read top-level dictionary.
histogramModel(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from components.
const word & fieldName() const noexcept
Return const reference to the operand field name.
static autoPtr< histogramModel > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected histogram model.
const fvMesh & mesh() const noexcept
Return const reference to the mesh.
void operator=(const histogramModel &)=delete
No copy assignment.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
declareRunTimeSelectionTable(autoPtr, histogramModel, dictionary,(const word &name, const fvMesh &mesh, const dictionary &dict),(name, mesh, dict))
A base class for histogram models.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
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...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Base class for writing single files from the function objects.
TypeName("histogramModel")
Runtime type information.