Go to the documentation of this file.
36 namespace functionObjects
54 readOnStart_(
dict.getOrDefault(
"readOnStart",
true)),
80 for (
const word& fieldName : fieldSet_)
83 const auto* ptr = mesh_.cfindObject<
regIOobject>(fieldName);
89 << ptr->name() <<
" (" << ptr->type()
90 <<
") already in database" <<
endl;
98 mesh_.time().timeName(),
110 loadField<scalar>(io)
111 || loadField<vector>(io)
112 || loadField<sphericalTensor>(io)
113 || loadField<symmTensor>(io)
114 || loadField<tensor>(io)
121 <<
"readFields : failed to load " << fieldName <<
endl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
readFields(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & headerClassName() const noexcept
Return name of the class name read from header.
virtual bool execute()
Read the fields.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
virtual bool write()
Do nothing.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define DebugInfo
Report an information message using Foam::Info.
wordList fieldSet_
Fields to load.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
virtual bool read(const dictionary &dict)
Read the set of fields from dictionary.