47 os.writeEntry(
"type",
type());
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,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word modelType_
Model type.
bool active_
Source active flag.
virtual bool read(const dictionary &dict)
Read source dictionary.
dictionary coeffs_
Dictionary containing source coefficients.
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.
bool log
Switch write log to Info.
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).