Wrapper that clones the supplied function object for each region. More...
#include <multiRegion.H>


Public Member Functions | |
| TypeName ("multiRegion") | |
| Runtime type information. | |
| multiRegion (const word &name, const Time &runTime, const dictionary &dict) | |
| Construct from name, Time and dictionary. | |
| virtual | ~multiRegion ()=default |
| Destructor. | |
| virtual bool | read (const dictionary &dict) |
| Read the function-object dictionary. | |
| virtual bool | execute () |
| Execute the function-object operations (no-op). | |
| virtual bool | write () |
| Write the function-object results. | |
| Public Member Functions inherited from timeFunctionObject | |
| timeFunctionObject (const word &name, const Time &runTime) | |
| Construct from Time. | |
| virtual | ~timeFunctionObject ()=default |
| Destructor. | |
| const Time & | time () const |
| Return time database. | |
| objectRegistry & | storedObjects () |
| Write access to the output objects ("functionObjectObjects") registered on Time. | |
| const objectRegistry & | storedObjects () const |
| Const access to the output objects ("functionObjectObjects") registered on Time. | |
| 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. | |
| autoPtr< functionObject > | clone () const |
| Return clone. | |
| virtual | ~functionObject ()=default |
| Destructor. | |
| virtual const word & | type () const =0 |
| Runtime type information. | |
| const word & | name () const noexcept |
| Return the name of this functionObject. | |
| bool | useNamePrefix () const noexcept |
| Return the flag for adding a scoping name prefix. | |
| bool | useNamePrefix (bool on) noexcept |
| Modify the flag for adding a scoping name prefix. | |
| virtual bool | execute (const label subIndex) |
| Execute using the specified subIndex. | |
| virtual bool | end () |
| Called when Time::run() determines that the time-loop exits. | |
| virtual bool | adjustTimeStep () |
| Called at the end of Time::adjustDeltaT() if adjustTime is true. | |
| virtual bool | filesModified () const |
| Did any file get changed during execution? | |
| virtual void | updateMesh (const mapPolyMesh &mpm) |
| Update for changes of mesh. | |
| virtual void | movePoints (const polyMesh &mesh) |
| Update for changes of mesh. | |
Protected Member Functions | |
| multiRegion (const multiRegion &)=delete | |
| No copy construct. | |
| void | operator= (const multiRegion &)=delete |
| No copy assignment. | |
| Protected Member Functions inherited from timeFunctionObject | |
| void | clearOutputObjects (const wordList &objNames) |
| Remove specified items from "functionObjectObjects". | |
| timeFunctionObject (const timeFunctionObject &)=delete | |
| No copy construct. | |
| void | operator= (const timeFunctionObject &)=delete |
| No copy assignment. | |
| Protected Member Functions inherited from functionObject | |
| word | scopedName (const word &name) const |
| Return a scoped (prefixed) name. | |
Protected Attributes | |
| PtrList< functionObject > | functions_ |
| List of cloned objects (1 per region). | |
| Protected Attributes inherited from timeFunctionObject | |
| const Time & | time_ |
| Reference to the time database. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from functionObject | |
| static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
| Select from dictionary, based on its "type" entry. | |
| Public Attributes inherited from functionObject | |
| bool | log |
| Flag to write log into Info. | |
| Static Public Attributes inherited from functionObject | |
| static int | debug |
| Flag to execute debug content. | |
| static bool | postProcess |
| Global post-processing mode switch. | |
| static bool | defaultUseNamePrefix |
| Global default for useNamePrefix. | |
| static word | outputPrefix |
| Directory prefix. | |
Wrapper that clones the supplied function object for each region.
Simplifies the setup of identical post-processing requirements for multi-region cases. Applies the supplied function to all regions by default.
system/controlDict.functions: multiRegion
{
// Mandatory entries
type multiRegion;
libs (utilityFunctionObjects);
function
{
// Actual object specification
type fieldMinMax;
libs (fieldFunctionObjects);
fields (<field1> ... <fieldN>);
}
// Optional entries
regions (region1 region2);
}
where the entries mean:
| Property | Description | Type | Reqd | Deflt |
|---|---|---|---|---|
type | Type name: multiRegion | word | yes | - |
libs | Library name: utilityFunctionObjects | word | yes | - |
function | Function object sub-dictionary | dict | yes | - |
regions | List of region names | wordList | no | all |
The inherited entries are elaborated in:
Definition at line 119 of file multiRegion.H.
|
protecteddelete |
No copy construct.
References multiRegion().
Referenced by multiRegion(), and operator=().


| multiRegion | ( | const word & | name, |
| const Time & | runTime, | ||
| const dictionary & | dict ) |
Construct from name, Time and dictionary.
Definition at line 46 of file multiRegion.C.
References dict, functionObject::name(), read(), runTime, and timeFunctionObject::timeFunctionObject().

|
virtualdefault |
Destructor.
References dict.
|
protecteddelete |
| TypeName | ( | "multiRegion" | ) |
Runtime type information.
References dict, functionObject::name(), and runTime.

|
virtual |
Read the function-object dictionary.
Reimplemented from functionObject.
Definition at line 61 of file multiRegion.C.
References dictionary::add(), dict, Foam::endl(), timeControl::entriesPresent(), f(), functions_, Foam::Info, wordRes::match(), name, functionObject::New(), Foam::nl, functionObject::read(), regionName, IOobject::scopedName(), UList< T >::size(), timeFunctionObject::time_, Foam::type(), and WarningInFunction.
Referenced by multiRegion().


|
virtual |
Execute the function-object operations (no-op).
Implements functionObject.
Definition at line 136 of file multiRegion.C.
References f(), and functions_.

|
virtual |
Write the function-object results.
Implements functionObject.
Definition at line 149 of file multiRegion.C.
References f(), and functions_.

|
protected |