Copies content of local objectRegistry to all processors. More...
Public Member Functions | |
TypeName ("syncObjects") | |
syncObjects (const word &name, const Time &runTime, const dictionary &dict) | |
virtual | ~syncObjects ()=default |
const objectRegistry & | obr () const |
const fileName & | root () const |
virtual bool | read (const dictionary &) |
virtual bool | execute () |
virtual bool | write () |
![]() | |
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< functionObject > | clone () const |
virtual | ~functionObject ()=default |
virtual const word & | type () const =0 |
const word & | name () const noexcept |
bool | useNamePrefix () const noexcept |
bool | useNamePrefix (bool on) noexcept |
virtual bool | execute (const label subIndex) |
virtual bool | end () |
virtual bool | adjustTimeStep () |
virtual bool | filesModified () const |
virtual void | updateMesh (const mapPolyMesh &mpm) |
virtual void | movePoints (const polyMesh &mesh) |
Protected Member Functions | |
void | sync () |
![]() | |
word | scopedName (const word &name) const |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
![]() | |
bool | log |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
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 | ||
) |
Definition at line 48 of file syncObjects.C.
References dict, and Foam::blockMeshTools::read().
|
virtualdefault |
|
protected |
Definition at line 63 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" | ) |
|
inline |
Definition at line 158 of file syncObjects.H.
|
inline |
Definition at line 163 of file syncObjects.H.
|
virtual |
Reimplemented from functionObject.
Definition at line 166 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, dict, Foam::endl(), fileName::null, Foam::Pout, functionObject::read(), and Foam::type().
|
virtual |
Implements functionObject.
Definition at line 189 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::type().
|
virtual |
Implements functionObject.
Definition at line 202 of file syncObjects.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and Foam::type().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.