32 template<
class Type,
class GeoMesh>
36 const word& fieldDictEntry
41 Field<Type> f(fieldDictEntry, dimensions_, fieldDict, GeoMesh::size(mesh_));
47 template<
class Type,
class GeoMesh>
50 const word& fieldDictEntry
55 this->readOpt() == IOobject::MUST_READ
56 || this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
60 <<
"read option IOobject::MUST_READ or MUST_READ_IF_MODIFIED"
61 <<
" suggests that a read constructor for field " << this->
name()
62 <<
" would be more appropriate." <<
endl;
66 this->readOpt() == IOobject::READ_IF_PRESENT
70 readField(dictionary(readStream(typeName)), fieldDictEntry);
72 readOldTimeIfPresent();
83 template<
class Type,
class GeoMesh>
88 const word& fieldDictEntry
101 template<
class Type,
class GeoMesh>
107 const word& fieldDictEntry
122 template<
class Type,
class GeoMesh>
126 const word& fieldDictEntry
137 "bool DimensionedField<Type, GeoMesh>::writeData"
138 "(Ostream& os, const word& fieldDictEntry) const"
145 template<
class Type,
class GeoMesh>
154 template<
class Type,
class GeoMesh>
167 template<
class Type,
class GeoMesh>
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")
GeoMesh::Mesh Mesh
Type of mesh on which this DimensionedField is instantiated.
bool writeData(Ostream &, const word &fieldDictEntry) const
DimensionedField(const IOobject &, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Construct from components.
Pre-declare SubField and related Field type.
static const char *const typeName
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 keyword definitions, which are a keyword followed by any number of values (e....
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.
#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.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const bool writeData(readBool(pdfDictionary.lookup("writeData")))