47 os.writeEntry(
"type",
type());
48 os.writeEntry(
"active", active_);
51 coeffs_.writeEntry(
word(
type() +
"Coeffs"),
os);
57 dict.readIfPresent(
"active", active_);
59 log =
dict.getOrDefault(
"log",
true);
61 coeffs_ =
dict.optionalSubDict(modelType_ +
"Coeffs");
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void writeHeader(Ostream &) const
Write the source header information.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual void writeData(Ostream &) const
Write the source properties.
const word name_
Source name.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar log(const dimensionedScalar &ds)
constexpr char nl
The newline '\n' character (0x0a)