34 namespace functionObjects
49 <<
" functionObjects::" <<
type() <<
" " <<
name()
50 <<
" cannot find required object " << fieldName <<
endl;
60 <<
" functionObjects::" <<
type() <<
" " <<
name()
74 Log <<
" functionObjects::" <<
type() <<
" " <<
name()
75 <<
" writing field: " << field.
name() <<
endl;
93 if (foundObject<regIOobject>(fieldName))
95 regIOobject& resultObject = lookupObjectRef<regIOobject>(fieldName);
const word & name() const
Return name.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
virtual const word & type() const =0
Runtime type information.
const word & name() const
Return the name of this functionObject.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
Specialisation of Foam::functionObject for a region and providing a reference to the region Foam::obj...
void cannotFindObjects(const wordList &fieldNames)
Prints a warning message that fieldNames cannot be found.
bool writeObject(const word &fieldName)
Write field if present in objectRegistry.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
regionFunctionObject(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~regionFunctionObject()
Destructor.
void cannotFindObject(const word &fieldName)
Prints a warning message that fieldName cannot be found.
virtual bool read(const dictionary &)
Read optional controls.
Writes run time, CPU time and clock time and optionally the CPU and clock times per time step.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
bool ownedByRegistry() const
Is this object owned by the registry?
virtual bool write(const bool write=true) const
Write using setting from DB.
bool checkOut()
Remove object from registry.
A class for handling words, derived from string.
static List< word > fieldNames
#define Log
Report write to Foam::Info if the local log switch is true.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.