43 const objectRegistry& db,
53 processor ?
"processorUniform" :
"uniform",
64 Foam::stateModel::stateModelWriter::stateModelWriter
66 const stateModel& model,
70 regIOobject(io(model.
name(), model.db(), processor, true)),
92 model_.writeState(os);
97 model_.writeProcessorState(os);
110 const bool ok = stateModel::stateModelWriter(*
this,
false).write();
115 const bool ok = stateModel::stateModelWriter(*
this,
true).write();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
bool good() const
Return true if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static bool & parRun()
Is this a parallel run?
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
bool merge(const dictionary &)
Merge entries from the given dictionary.
const word & name() const
Return const reference to name.
Registry of regIOobjects.
const Time & time() const
Return time.
virtual const word & name() const =0
Return the model name.
bool writeState(const bool write) const
Write state.
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
virtual ~stateModel()
Destructor.
stateModel()
Construct null.
virtual const objectRegistry & db() const =0
Return the model's database.
virtual void writeProcessorState(Ostream &os) const
Write processor state.
timeIOdictionary derived from IOdictionary with globalFile set false to enable writing to processor t...
A class for handling words, derived from string.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
defineTypeNameAndDebug(combustionModel, 0)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const bool writeData(readBool(pdfDictionary.lookup("writeData")))