119 #ifndef functionObject_H 120 #define functionObject_H 135 class polyTopoChangeMap;
155 virtual const word&
type()
const = 0;
174 (
const word&
name,
const Time& runTime,
const dictionary&
dict),
175 (name, runTime, dict)
185 autoPtr<functionObject>
clone()
const 188 return autoPtr<functionObject>(
nullptr);
198 static autoPtr<functionObject>
New 213 const word&
name()
const;
216 virtual bool read(
const dictionary&);
232 virtual bool write() = 0;
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual wordList fields() const =0
Return the list of fields required.
virtual ~functionObject()
Destructor.
const word & name() const
Return the name of this functionObject.
static bool postProcess
Global post-processing mode switch.
virtual bool execute()=0
Called at each ++ or += of the time-loop.
virtual void topoChange(const polyTopoChangeMap &map)
Update topology using the given map.
Abstract base-class for Time/database functionObjects.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual const word & type() const =0
Runtime type information.
void operator=(const functionObject &)=delete
Disallow default bitwise assignment.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
Switch executeAtStart_
Switch write log to Info.
functionObject(const word &name)
Construct from components.
List< word > wordList
A List of words.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
autoPtr< functionObject > clone() const
Return clone.
virtual bool write()=0
Called at each ++ or += of the time-loop.
ClassName("functionObject")
Mesh consisting of general polyhedral cells.
Macros to ease declaration of run-time selection tables.
Switch log
Switch write log to Info.
Class containing mesh-to-mesh mapping information.
virtual scalar timeToNextWrite()
Called by Time::adjustTimeStep(). Allows the functionObject to.
virtual void movePoints(const polyMesh &mesh)
Update topology using the given map.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
declareRunTimeSelectionTable(autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
virtual bool executeAtStart() const
Return true if the functionObject should be executed at the start.