Public Member Functions | List of all members

Watches for presence of the named trigger file in the case directory and signals a simulation stop (or other) event if found. More...

Inheritance diagram for abort:
Inheritance graph
[legend]
Collaboration diagram for abort:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("abort")
 
 abort (const word &name, const Time &runTime, const dictionary &dict)
 
virtual ~abort ()=default
 
virtual bool read (const dictionary &dict)
 
virtual bool execute ()
 
virtual bool write ()
 
virtual bool end ()
 
- Public Member Functions inherited from timeFunctionObject
 timeFunctionObject (const word &name, const Time &runTime)
 
virtual ~timeFunctionObject ()=default
 
const Timetime () const
 
objectRegistrystoredObjects ()
 
const objectRegistrystoredObjects () const
 
- 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)
 
autoPtr< functionObjectclone () const
 
virtual ~functionObject ()=default
 
virtual const wordtype () const =0
 
const wordname () const noexcept
 
bool useNamePrefix () const noexcept
 
bool useNamePrefix (bool on) noexcept
 
virtual bool execute (const label subIndex)
 
virtual bool adjustTimeStep ()
 
virtual bool filesModified () const
 
virtual void updateMesh (const mapPolyMesh &mpm)
 
virtual void movePoints (const polyMesh &mesh)
 

Additional Inherited Members

- Static Public Member Functions inherited from functionObject
static autoPtr< functionObjectNew (const word &name, const Time &runTime, const dictionary &dict)
 
- Public Attributes inherited from functionObject
bool log
 
- Static Public Attributes inherited from functionObject
static int debug
 
static bool postProcess
 
static bool defaultUseNamePrefix
 
static word outputPrefix
 
- Protected Member Functions inherited from timeFunctionObject
void clearOutputObjects (const wordList &objNames)
 
 timeFunctionObject (const timeFunctionObject &)=delete
 
void operator= (const timeFunctionObject &)=delete
 
- Protected Member Functions inherited from functionObject
word scopedName (const word &name) const
 
- Protected Attributes inherited from timeFunctionObject
const Timetime_
 

Detailed Description

Watches for presence of the named trigger file in the case directory and signals a simulation stop (or other) event if found.

The presence of the trigger file is only checked on the master process.

Currently the following action types are supported:

Example of function object specification:

abort
{
    type    abort;
    libs    (utilityFunctionObjects);

    file    "<case>/GOODBYE";
    action  writeNow
}


Function object usage

Property Description Required Default
type Type name: abort yes
file The trigger filename no <case>/name
action The default action to trigger no nextWrite

When the trigger file is found, it is checked for the following content which corresponds to actions.

Note
The trigger file is considered "sticky". This means that once detected and processed, the trigger is duly noted and the file will not be rechecked. It is not possible or desirable to 'untrigger' an action.
Source files

Definition at line 121 of file abort.H.

Constructor & Destructor Documentation

◆ abort()

abort ( const word name,
const Time runTime,
const dictionary dict 
)

Definition at line 131 of file abort.C.

References dict, Foam::blockMeshTools::read(), and Foam::rm().

Here is the call graph for this function:

◆ ~abort()

virtual ~abort ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "abort"  )

◆ read()

bool read ( const dictionary dict)
virtual

◆ execute()

bool execute ( )
virtual

Implements functionObject.

Definition at line 194 of file abort.C.

References Foam::endl(), Foam::getStopAction(), Foam::Info, Foam::isFile(), Foam::longDescription(), UPstream::master(), and Pstream::scatter().

Here is the call graph for this function:

◆ write()

bool write ( )
virtual

Implements functionObject.

Definition at line 235 of file abort.C.

◆ end()

bool end ( )
virtual

Reimplemented from functionObject.

Definition at line 241 of file abort.C.

References UPstream::master(), and Foam::rm().

Here is the call graph for this function:

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