117 #ifndef functionObject_H
118 #define functionObject_H
133 class polyTopoChangeMap;
135 class polyDistributionMap;
160 virtual const word&
type()
const = 0;
179 (
const word&
name,
const Time& runTime,
const dictionary&
dict),
190 autoPtr<functionObject>
clone()
const
193 return autoPtr<functionObject>(
nullptr);
203 static autoPtr<functionObject>
New
218 const word&
name()
const;
221 virtual bool read(
const dictionary&);
237 virtual bool write() = 0;
Abstract base-class for Time/database functionObjects.
Switch log
Switch write log to Info.
virtual const word & type() const =0
Runtime type information.
const Time & time_
Reference to time.
functionObject(const word &name, const Time &runTime)
Construct from components.
virtual ~functionObject()
Destructor.
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.
autoPtr< functionObject > clone() const
Return clone.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual scalar maxDeltaT() const
Return the maximum time-step for stable operation.
virtual void movePoints(const polyMesh &mesh)
Update topology using the given map.
virtual bool execute()=0
Called at each ++ or += of the time-loop.
ClassName("functionObject")
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual wordList fields() const =0
Return the list of fields required.
void operator=(const functionObject &)=delete
Disallow default bitwise assignment.
Switch executeAtStart_
Switch write log to Info.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
static bool postProcess
Global post-processing mode switch.
virtual scalar timeToNextAction()
Called by Time::adjustTimeStep(). Allows the functionObject to.
const word & name() const
Return the name of this functionObject.
virtual void topoChange(const polyTopoChangeMap &map)
Update topology using the given map.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
virtual bool write()=0
Called at each ++ or += of the time-loop.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
List< word > wordList
A List of words.
Macros to ease declaration of run-time selection tables.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...