32 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
45 dimensions_.reset(dims);
49 if (dims != dimensions_)
52 <<
"Inconsistent dimensions specified for " << this->
name()
54 <<
", required dimensions are " << this->dimensions()
59 if (
dict.isDict(keyword))
66 dict.subDict(keyword),
72 PrimitiveField<Type>
f
85 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
88 const word& fieldDictEntry
93 this->readOpt() == IOobject::MUST_READ
94 || this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
98 <<
"read option IOobject::MUST_READ or MUST_READ_IF_MODIFIED"
99 <<
" suggests that a read constructor for field " << this->
name()
100 <<
" would be more appropriate." <<
endl;
104 this->readOpt() == IOobject::READ_IF_PRESENT
108 readField(dictionary(readStream(
typeName)), fieldDictEntry);
110 readOldTimeIfPresent();
122 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
129 const word& fieldDictEntry
133 PrimitiveField<Type>(0),
142 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
148 const word& fieldDictEntry
152 PrimitiveField<Type>(0),
163 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
167 const word& fieldDictEntry
177 static_cast<const PrimitiveField<Type>&
>(*
this)
183 "bool DimensionedField<Type, GeoMesh, PrimitiveField>::writeData"
184 "(Ostream& os, const word& fieldDictEntry) const"
191 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
203 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
216 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
220 const tmp<DimensionedField<Type, GeoMesh, PrimitiveField>>& tdf
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void readField(const dictionary &fieldDict, const word &fieldDictEntry="value")
friend class DimensionedField
Declare friendship with other dimensioned fields.
bool writeData(Ostream &, const word &fieldDictEntry) const
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool good() const
Return true if next operation might succeed.
Class to add into field types to provide old-time storage and retrieval.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Dimension set for the base types.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Istream & readStream(const word &, const bool read=true)
Return Istream and check object type against that given.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet invalid
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
const bool writeData(readBool(pdfDictionary.lookup("writeData")))