Go to the documentation of this file.
38 return delayedVariables_.found(
name) || variables_.found(
name);
48 if (delayedVariables_.found(
name))
50 return delayedVariables_[
name];
53 return variables_[
name];
63 if (delayedVariables_.found(
name))
65 return delayedVariables_[
name];
68 return variables_[
name];
82 this->isLocalVariable<Type>(
name, isPointVal, expectedSize)
83 || this->isGlobalVariable<Type>(
name, isPointVal, expectedSize)
99 this->isVariable<Type>(
name, isPointVal, expectedSize)
100 || this->isField<Type>(
name, isPointVal)
105 template<
class GeomField>
114 return this->getOrReadFieldImpl<GeomField>
124 template<
class GeomField>
133 return this->getOrReadFieldImpl<GeomField>
143 template<
class GeomField,
class Mesh>
151 GeomField* ptr =
new GeomField
156 meshRef.thisDb().time().timeName(),
165 if (cacheReadFields())
168 <<
"Registering a copy of " <<
name <<
" with mesh" <<
nl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
bool isVariable(const word &name, bool isPointVal=false, label expectSize=-1) const
Test existence of a local/global variable.
tmp< GeomField > getOrReadPointField(const word &name, bool mandatory=true, bool getOldTime=false)
Retrieve point field from memory or disk.
A polymorphic field/result from evaluating an expression.
virtual bool hasVariable(const word &name) const
True if named variable exists.
tmp< GeomField > getOrReadField(const word &name, bool mandatory=true, bool getOldTime=false)
Retrieve field from memory or disk.
word name(const complex &c)
Return string representation of complex.
tmp< GeomField > readAndRegister(const word &name, const MeshRef &meshRef)
Helper function for getOrReadField.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
virtual exprResult & variable(const word &name)
Non-const access to the named variable (sub-classes only)
#define DebugInfo
Report an information message using Foam::Info.
bool isVariableOrField(const word &name, bool isPointVal=false, label expectSize=-1) const
Test for existence of a local/global variable or a field.