34template<
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_));
57template<
class Type,
class GeoMesh>
60 const word& fieldDictEntry
65 (this->readOpt() == IOobject::READ_IF_PRESENT && this->headerOk())
66 || this->readOpt() == IOobject::MUST_READ
67 || this->readOpt() == IOobject::MUST_READ_IF_MODIFIED
70 readField(
dictionary(readStream(typeName)), fieldDictEntry);
77template<
class Type,
class GeoMesh>
82 const word& fieldDictEntry
95template<
class Type,
class GeoMesh>
101 const word& fieldDictEntry
116template<
class Type,
class GeoMesh>
120 const word& fieldDictEntry
126 if (oriented_.writeEntry(
os))
138template<
class Type,
class GeoMesh>
147template<
class Type,
class GeoMesh>
160template<
class Type,
class GeoMesh>
164 const tmp<DimensionedField<Type, GeoMesh>>& tdf
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.
static const char *const typeName
Typename for Field.
Generic templated field type.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
bool good() const noexcept
True if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Istream & readStream(const word &, const bool valid=true)
Return Istream and check object type against that given.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
const dimensionSet dimless
Dimensionless.
static void writeData(Ostream &os, const Type &val)
constexpr char nl
The newline '\n' character (0x0a)