34 template<
class Type,
class GeoMesh>
38 const word& fieldDictEntry
41 dimensions_.readEntry(
"dimensions", fieldDict);
47 if (oriented_.oriented() != orientedType::ORIENTED)
49 oriented_.read(fieldDict);
52 Field<Type> f(fieldDictEntry, fieldDict, GeoMesh::size(mesh_));
57 template<
class Type,
class GeoMesh>
60 const word& fieldDictEntry
63 if (this->isReadRequired() || (this->isReadOptional() && this->headerOk()))
65 readField(
dictionary(readStream(typeName)), fieldDictEntry);
72 template<
class Type,
class GeoMesh>
77 const word& fieldDictEntry
86 readField(
dictionary(readStream(typeName)), fieldDictEntry);
90 template<
class Type,
class GeoMesh>
96 const word& fieldDictEntry
105 readField(fieldDict, fieldDictEntry);
111 template<
class Type,
class GeoMesh>
115 const word& fieldDictEntry
118 os.writeEntry(
"dimensions", dimensions());
121 if (oriented_.writeEntry(
os))
126 Field<Type>::writeEntry(fieldDictEntry,
os);
133 template<
class Type,
class GeoMesh>
142 template<
class Type,
class GeoMesh>
146 const DimensionedField<Type, GeoMesh>& df
155 template<
class Type,
class GeoMesh>
159 const tmp<DimensionedField<Type, GeoMesh>>& tdf
A list of keyword definitions, which are a keyword followed by a number of values (eg...
DimensionedField(const IOobject &io, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &field)
Construct from components, copy initial field content.
constexpr char nl
The newline '\n' character (0x0a)
const dimensionSet dimless
Dimensionless.
const bool writeData(pdfDictionary.get< bool >("writeData"))
void readField(const dictionary &fieldDict, const word &fieldDictEntry="value")
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Generic templated field type.
bool writeData(Ostream &os, const word &fieldDictEntry) const
A class for handling words, derived from Foam::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Defines the attributes of an object for which implicit objectRegistry management is supported...