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... | |
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< 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... | |
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< functionObject > | New (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... | |
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 105 of file syncObjects.H.
| syncObjects | ( | const word & | name, |
| const Time & | runTime, | ||
| const dictionary & | dict | ||
| ) |
Construct from Time and dictionary.
Definition at line 48 of file syncObjects.C.
References dict, and Foam::blockMeshTools::read().

|
virtualdefault |
Destructor.
|
protected |
Do all: synchronise all IOFields and objectRegistry.
Definition at line 63 of file syncObjects.C.
References PstreamBuffers::allProcs(), UPstream::commGlobal(), UPstream::commWarn(), functionObject::debug, Foam::endl(), PstreamBuffers::finishedSends(), IOobject::objectPath(), os(), UPstream::parRun(), Foam::Pout, mappedPatchBase::readDict(), mappedPatchBase::receivePath(), mappedPatchBase::sendPath(), mappedPatchBase::subRegistry(), functionObject::type(), and mappedPatchBase::writeDict().

| TypeName | ( | "syncObjects" | ) |
Runtime type information.
|
inline |
Definition at line 174 of file syncObjects.H.
|
inline |
Definition at line 179 of file syncObjects.H.
|
virtual |
Read the syncObjects data.
Reimplemented from functionObject.
Definition at line 160 of file syncObjects.C.
References Foam::ensightOutput::debug, dict, Foam::endl(), fileName::null, Foam::Pout, functionObject::read(), and Foam::type().

|
virtual |
Do nothing.
Implements functionObject.
Definition at line 183 of file syncObjects.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::Pout, and Foam::type().

|
virtual |
Write the registered objects.
Implements functionObject.
Definition at line 196 of file syncObjects.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::Pout, and Foam::type().
