Copies content of local objectRegistry to all processors. More...
Public Member Functions | |
TypeName ("syncObjects") | |
Runtime type information. More... | |
syncObjects (const word &name, const Time &runTime, const dictionary &dict) | |
Construct from Time and dictionary. More... | |
virtual | ~syncObjects ()=default |
Destructor. More... | |
const objectRegistry & | obr () const |
const fileName & | root () const |
virtual bool | read (const dictionary &) |
Read the syncObjects data. More... | |
virtual bool | execute () |
Do nothing. More... | |
virtual bool | write () |
Write the registered objects. More... | |
![]() | |
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 | |
void | sync () |
Do all: synchronise all IOFields and objectRegistry. More... | |
![]() | |
word | scopedName (const word &name) const |
Return a scoped (prefixed) name. 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... | |
Copies content of local objectRegistry to all processors.
Currently only supports IOFields. It is used to distribute IOFields from different processors/regions/worlds when doing loose coupling. To be used in combination with 'mapped' boundary conditions.
syncObjects1 { type syncObjects; libs ("libutilityFunctionObjects.so"); ... // Where is data located relative to runTime. Given as a filename // with every '/' indicating a sub-objectRegistry w.r.t. runTime. // Local data is under <root>/send/processorXXX. After execution // (potentially remote) data will be under the corresponding // <root>/receive/processorYYY objectRegistry. //root "level0/level1/level2"; }
Where the entries comprise:
Property | Description | Required | Default value |
---|---|---|---|
type | type name: syncObjects | yes | |
root | relative location of data | no | "" |
Definition at line 109 of file syncObjects.H.
syncObjects | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 55 of file syncObjects.C.
References dict, and Foam::blockMeshTools::read().
|
virtualdefault |
Destructor.
|
protected |
Do all: synchronise all IOFields and objectRegistry.
Definition at line 70 of file syncObjects.C.
References PstreamBuffers::comm(), functionObject::debug, Foam::endl(), PstreamBuffers::finishedSends(), UPstream::msgType(), UPstream::nonBlocking, UPstream::nProcs(), IOobject::objectPath(), os(), UPstream::parRun(), Foam::Pout, mappedPatchBase::readDict(), mappedPatchBase::receivePath(), mappedPatchBase::sendPath(), mappedPatchBase::subRegistry(), functionObject::type(), UPstream::warnComm, and mappedPatchBase::writeDict().
TypeName | ( | "syncObjects" | ) |
Runtime type information.
|
inline |
Definition at line 162 of file syncObjects.H.
|
inline |
Definition at line 167 of file syncObjects.H.
|
virtual |
Read the syncObjects data.
Reimplemented from functionObject.
Definition at line 173 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, dict, Foam::endl(), fileName::null, Foam::Pout, functionObject::read(), and Foam::type().
|
virtual |
Do nothing.
Implements functionObject.
Definition at line 196 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::type().
|
virtual |
Write the registered objects.
Implements functionObject.
Definition at line 209 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::type().