Go to the documentation of this file.
92 #ifndef functionObjects_readFields_H
93 #define functionObjects_readFields_H
103 namespace functionObjects
112 public fvMeshFunctionObject
128 template<
class FieldType>
150 const dictionary&
dict
173 virtual bool write();
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.
bool readOnStart_
Read immediately on construction (default: true)
bool loadAndStore(const IOobject &io)
Attempt load from io, store on database if successful.
void operator=(const readFields &)=delete
No copy assignment.
virtual bool execute()
Read the fields.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< word > wordList
A List of words.
bool loadField(const IOobject &io)
Forward to loadAndStore for supported types.
virtual ~readFields()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
const word & name() const noexcept
Return the name of this functionObject.
wordList fieldSet_
Fields to load.
TypeName("readFields")
Runtime type information.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
virtual bool read(const dictionary &dict)
Read the set of fields from dictionary.