68 mesh_.time().timeName(),
75 mesh_.objectRegistry::store(ptr);
94 const scalar sumData =
sum(dataNormalised);
101 dataNormalised /= sumData;
109 << magBinMidPoint[i] <<
tab 110 << dataCount[i] <<
tab 123 const dictionary&
dict 128 fieldName_(
word::null)
141 fieldName_ =
dict.
get<word>(
"field");
143 if (writeToFile() && !writtenHeader_)
145 writeFileHeader(file());
void write(scalarField &dataNormalised, const labelField &dataCount, const scalarField &magMidBin)
Write histogram data.
const Type & value() const noexcept
Return const reference to value.
Field< label > labelField
Specialisation of Field<T> for label.
virtual void writeFileHeader(Ostream &os)
Output file header information.
virtual void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char tab
The tab '\t' character(0x09)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const Time & time() const
Return the top-level database.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Various functions to operate on Lists.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
virtual bool read(const dictionary &dict)
Read.
static bool master(const label communicator=worldComm)
Am I the master rank.
volScalarField & getOrReadField(const word &fieldName) const
Return requested field from the object registry or read+register the field to the object registry...
Automatically write from objectRegistry::writeObject()
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.