49 readHeaderOk(IOstreamOption::BINARY, typeName);
65 readHeaderOk(IOstreamOption::BINARY, typeName);
81 readHeaderOk(IOstreamOption::BINARY, typeName);
109 readHeaderOk(IOstreamOption::BINARY, typeName);
121 scalar multiplier(1);
122 this->dimensions().read
124 dict.lookup(
"dimensions", keyType::LITERAL),
129 dict.readEntry(
"value", this->value(), keyType::LITERAL);
130 this->value() *= multiplier;
140 scalar multiplier(1);
141 os.writeKeyword(
"dimensions");
142 this->dimensions().write(
os, multiplier) << token::END_STATEMENT <<
nl;
145 os.writeEntry(
"value", this->value()/multiplier) <<
nl;
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
Generic dimensioned Type class.
const dimensionSet dimless
Dimensionless.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
bool good() const noexcept
True if next operation might succeed.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
static constexpr const zero Zero
Global zero (0)