Wrapper that clones the supplied function object for each region. More...
Public Member Functions | |
TypeName ("multiRegion") | |
Runtime type information. More... | |
multiRegion (const word &name, const Time &runTime, const dictionary &dict) | |
Construct from Time and dictionary. More... | |
virtual | ~multiRegion ()=default |
Destructor. More... | |
virtual bool | read (const dictionary &dict) |
Read the controls. More... | |
virtual bool | execute () |
Execute, currently does nothing. More... | |
virtual bool | write () |
Write the multiRegion. More... | |
![]() | |
timeFunctionObject (const word &name, const Time &runTime) | |
Construct from Time. More... | |
virtual | ~timeFunctionObject ()=default |
Destructor. More... | |
const Time & | time () const |
Return time database. More... | |
objectRegistry & | storedObjects () |
const objectRegistry & | storedObjects () const |
![]() | |
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< functionObject > | clone () const |
Return clone. More... | |
virtual | ~functionObject ()=default |
Destructor. More... | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
const word & | name () 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 | execute (const label subIndex) |
Execute using the specified subIndex. 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 | |
multiRegion (const multiRegion &)=delete | |
No copy construct. More... | |
void | operator= (const multiRegion &)=delete |
No copy assignment. More... | |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
Remove specified items from "functionObjectObjects". More... | |
timeFunctionObject (const timeFunctionObject &)=delete | |
No copy construct. More... | |
void | operator= (const timeFunctionObject &)=delete |
No copy assignment. More... | |
![]() | |
word | scopedName (const word &name) const |
Return a scoped (prefixed) name. More... | |
Protected Attributes | |
PtrList< functionObject > | functions_ |
List of cloned objects (1 per region) More... | |
![]() | |
const Time & | time_ |
Reference to the time database. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
Select from dictionary, based on its "type" entry. More... | |
![]() | |
bool | log |
Flag to write log into Info. More... | |
![]() | |
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... | |
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 |
Definition at line 123 of file multiRegion.H.
|
protecteddelete |
No copy construct.
multiRegion | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 54 of file multiRegion.C.
References dict, and Foam::blockMeshTools::read().
|
virtualdefault |
Destructor.
|
protecteddelete |
No copy assignment.
TypeName | ( | "multiRegion" | ) |
Runtime type information.
|
virtual |
Read the controls.
Reimplemented from functionObject.
Definition at line 68 of file multiRegion.C.
References dictionary::add(), dict, Foam::endl(), timeControl::entriesPresent(), f(), multiRegion::functions_, Foam::Info, wordRes::match(), functionObject::name(), functionObject::New(), Foam::nl, functionObject::read(), regionName, PtrList< T >::resize(), IOobject::scopedName(), PtrList< T >::set(), objectRegistry::sortedNames(), timeFunctionObject::time_, functionObject::type(), and WarningInFunction.
|
virtual |
Execute, currently does nothing.
Implements functionObject.
Definition at line 143 of file multiRegion.C.
References f().
|
virtual |
Write the multiRegion.
Implements functionObject.
Definition at line 156 of file multiRegion.C.
References f().
|
protected |
List of cloned objects (1 per region)
Definition at line 132 of file multiRegion.H.
Referenced by multiRegion::read().