68 mesh_.time().timeName(),
95 const scalar sumData =
sum(dataNormalised);
102 dataNormalised /= sumData;
110 << magBinMidPoint[i] <<
tab 111 << dataCount[i] <<
tab 124 const dictionary&
dict 142 fieldName_ =
dict.
get<word>(
"field");
144 if (writeToFile() && !writtenHeader_)
146 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.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
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.
bool store()
Register object with its registry and transfer ownership to the registry.
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.
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 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.
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)
True if process corresponds to the master rank in the communicator.
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...
Request registration (bool: true)
virtual void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.