32 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
41 if (
dict.isDict(keyword))
48 dict.subDict(keyword),
54 PrimitiveField<Type>
f
67 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
70 const word& fieldDictEntry
75 this->readOpt() == IOobject::MUST_READ
76 || this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
80 <<
"read option IOobject::MUST_READ or MUST_READ_IF_MODIFIED"
81 <<
" suggests that a read constructor for field " << this->
name()
82 <<
" would be more appropriate." <<
endl;
86 this->readOpt() == IOobject::READ_IF_PRESENT
90 readField(dictionary(readStream(
typeName)), fieldDictEntry);
92 readOldTimeIfPresent();
103 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
108 const word& fieldDictEntry
112 PrimitiveField<Type>(0),
121 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
127 const word& fieldDictEntry
131 PrimitiveField<Type>(0),
142 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
146 const word& fieldDictEntry
156 static_cast<const PrimitiveField<Type>&
>(*
this)
162 "bool DimensionedField<Type, GeoMesh, PrimitiveField>::writeData"
163 "(Ostream& os, const word& fieldDictEntry) const"
170 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
182 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
195 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
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.
A class for managing temporary objects.
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 WarningInFunction
Report a warning using Foam::Warning.
const dimensionSet dimless
const dimensionSet & dimless
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")))