44 io.
readOpt() == IOobject::MUST_READ
45 || io.
readOpt() == IOobject::MUST_READ_IF_MODIFIED
47 || (io.
readOpt() == IOobject::READ_IF_PRESENT && headerOk())
52 this->dimensions().read(dict.
lookup(
"dimensions"), multiplier);
53 dict.
lookup(
"value") >> this->value();
54 this->value() *= multiplier;
81 this->dimensions().read(dict.
lookup(
"dimensions"), multiplier);
82 dict.
lookup(
"value") >> this->value();
83 this->value() *= multiplier;
101 this->dimensions().write(os, multiplier) << token::END_STATEMENT <<
nl;
102 writeEntry(os,
"value", this->value()/multiplier);
112 void Foam::UniformDimensionedField<Type>::operator=
122 void Foam::UniformDimensionedField<Type>::operator=
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dimensionSet dimless
Generic dimensioned Type class.
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...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
readOption readOpt() const
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.