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");
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const word name_
Source name.
A class for handling words, derived from Foam::string.
virtual void writeFooter(Ostream &) const
Write the source footer information.
virtual bool read(const dictionary &dict)
Read source dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void writeData(Ostream &) const
Write the source properties.
virtual void writeHeader(Ostream &) const
Write the source header information.