32 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
36 const word& fieldDictEntry
41 PrimitiveField<Type>
f
53 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
56 const word& fieldDictEntry
61 this->readOpt() == IOobject::MUST_READ
62 || this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
66 <<
"read option IOobject::MUST_READ or MUST_READ_IF_MODIFIED"
67 <<
" suggests that a read constructor for field " << this->
name()
68 <<
" would be more appropriate." <<
endl;
72 this->readOpt() == IOobject::READ_IF_PRESENT
76 readField(dictionary(readStream(typeName)), fieldDictEntry);
78 readOldTimeIfPresent();
89 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
94 const word& fieldDictEntry
98 PrimitiveField<Type>(0),
107 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
113 const word& fieldDictEntry
117 PrimitiveField<Type>(0),
128 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
132 const word& fieldDictEntry
142 static_cast<const PrimitiveField<Type>&
>(*
this)
148 "bool DimensionedField<Type, GeoMesh, PrimitiveField>::writeData"
149 "(Ostream& os, const word& fieldDictEntry) const"
156 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
168 template<
class Type,
class GeoMesh,
template<
class>
class PrimitiveField>
181 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...
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.
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
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.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
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.
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 HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const bool writeData(readBool(pdfDictionary.lookup("writeData")))