42 const word& redirectType,
43 const word& entryName,
86 if (this->faceValues())
100 const auto* vPtr =
dynamic_cast<const VType*
>(ptr);
103 return vPtr->boundaryField()[patchi];
106 const auto* sPtr =
dynamic_cast<const SType*
>(ptr);
109 return sPtr->boundaryField()[patchi];
112 const auto* uPtr =
dynamic_cast<const UType*
>(ptr);
115 return Field<Type>(this->size(), uPtr->value());
124 const auto* uPtr =
dynamic_cast<const UType*
>(ptr);
127 return Field<Type>(this->size(), uPtr->value());
133 <<
" failed lookup of " << name_
134 <<
" (objectRegistry " 136 <<
")\n available objects of type " << VType::typeName
139 <<
" available objects of type " << SType::typeName
142 <<
" available objects of type " << UType::typeName
146 return Field<Type>::null();
151 typedef GeometricField<Type, pointPatchField, pointMesh> PType;
157 const auto* pPtr =
dynamic_cast<const PType*
>(ptr);
160 return pPtr->boundaryField()[patchi].patchInternalField();
167 return Field<Type>(this->size(), obj.value());
180 return (x2-x1)*value(0.5*(x1+x2));
LookupField(const polyPatch &pp, const word &redirectType, const word &entryName, const dictionary &dict, const bool faceValues=true)
Construct from entry name, dictionary and optional registry.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
virtual tmp< Field< Type > > value(const scalar x) const
Return Lookup value.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word & name() const noexcept
Return the object name.
constexpr char nl
The newline '\n' character (0x0a)
wordList names() const
The unsorted names of all objects.
Generic GeometricField class.
const bool writeData(pdfDictionary.get< bool >("writeData"))
PatchFunction1 to lookup volField/surfaceField or pointField from an objectregistry and return its va...
virtual void writeData(Ostream &os) const
Write in dictionary format.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
Base level of Lookup and LookupField classes.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
virtual tmp< Field< Type > > integrate(const scalar x1, const scalar x2) const
Integrate between two values.
OBJstream os(runTime.globalPath()/outputName)
const objectRegistry & parent() const noexcept
Return the parent objectRegistry.
const std::string patch
OpenFOAM patch number as a std::string.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
A class for managing temporary objects.
Registry of regIOobjects.
A patch is a list of labels that address the faces in the global face list.
const regIOobject * cfindIOobject(const word &name, const bool recursive=false) const
Return const pointer to the regIOobject.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())