functionObject::unavailableFunctionObject Class Reference

Abstract functionObject to report when a real version is unavailable. More...

Inheritance diagram for functionObject::unavailableFunctionObject:
[legend]
Collaboration diagram for functionObject::unavailableFunctionObject:
[legend]

Public Member Functions

virtual bool execute ()
 No nothing. More...
 
virtual bool write ()
 No nothing. More...
 
- Public Member Functions inherited from functionObject
 declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
 
 functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix)
 Construct from components. More...
 
autoPtr< functionObjectclone () const
 Return clone. More...
 
virtual ~functionObject ()=default
 Destructor. More...
 
virtual const wordtype () const =0
 Runtime type information. More...
 
const wordname () const noexcept
 Return the name of this functionObject. More...
 
bool useNamePrefix () const noexcept
 Return the flag for adding a scoping name prefix. More...
 
bool useNamePrefix (bool on) noexcept
 Modify the flag for adding a scoping name prefix. More...
 
virtual bool read (const dictionary &dict)
 Read and set the function object if its data have changed. More...
 
virtual bool execute ()=0
 Called at each ++ or += of the time-loop. More...
 
virtual bool execute (const label subIndex)
 Execute using the specified subIndex. More...
 
virtual bool write ()=0
 Called at each ++ or += of the time-loop. More...
 
virtual bool end ()
 Called when Time::run() determines that the time-loop exits. More...
 
virtual bool adjustTimeStep ()
 Called at the end of Time::adjustDeltaT() if adjustTime is true. More...
 
virtual bool filesModified () const
 Did any file get changed during execution? More...
 
virtual void updateMesh (const mapPolyMesh &mpm)
 Update for changes of mesh. More...
 
virtual void movePoints (const polyMesh &mesh)
 Update for changes of mesh. More...
 

Protected Member Functions

 unavailableFunctionObject (const word &name)
 Construct with name. More...
 
void carp (std::string message="") const
 
- Protected Member Functions inherited from functionObject
word scopedName (const word &name) const
 Return a scoped (prefixed) name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from functionObject
static autoPtr< functionObjectNew (const word &name, const Time &runTime, const dictionary &dict)
 Select from dictionary, based on its "type" entry. More...
 
- Public Attributes inherited from functionObject
bool log
 Flag to write log into Info. More...
 
- Static Public Attributes inherited from functionObject
static int debug
 Flag to execute debug content. More...
 
static bool postProcess
 Global post-processing mode switch. More...
 
static bool defaultUseNamePrefix
 Global default for useNamePrefix. More...
 
static word outputPrefix
 Directory prefix. More...
 

Detailed Description

Abstract functionObject to report when a real version is unavailable.

Definition at line 482 of file functionObject.H.

Constructor & Destructor Documentation

◆ unavailableFunctionObject()

unavailableFunctionObject ( const word name)
explicitprotected

Construct with name.

Definition at line 220 of file functionObject.C.

Member Function Documentation

◆ carp()

void carp ( std::string  message = "") const
protected

Report it is unavailable, emitting a FatalError for try/catch in the caller

Definition at line 229 of file functionObject.C.

References Foam::exit(), Foam::FatalError, Foam::nl, and functionObject::type().

Here is the call graph for this function:

◆ execute()

bool execute ( )
virtual

No nothing.

Implements functionObject.

Definition at line 250 of file functionObject.C.

◆ write()

bool write ( )
virtual

No nothing.

Implements functionObject.

Definition at line 256 of file functionObject.C.


The documentation for this class was generated from the following files: