Distributor/redistributor for point fields, uses a two (or three) stage construction. More...
Public Member Functions | |
parPointFieldDistributor (const pointMesh &srcMesh, const bool savePoints=false, const bool isWriteProc=false) | |
Basic construction. More... | |
parPointFieldDistributor (const pointMesh &srcMesh, const pointMesh &tgtMesh, const mapDistributePolyMesh &distMap, const bool savePoints=false, const bool isWriteProc=false) | |
Full construction of source/target. More... | |
bool | hasMeshPoints () const |
bool | hasPatchPointMaps () const |
True if patch maps (per boundary) exist. More... | |
bool | hasTarget () const |
True if a target mesh/distribution map has been attached. More... | |
void | clearMeshPoints () |
Clear out meshPoints (per boundary) for the source mesh. More... | |
void | clearPatchPointMaps () |
Clear out patch maps (per boundary) More... | |
void | saveMeshPoints () |
Create/recreate meshPoints (per boundary) for the source mesh. More... | |
void | createPatchPointMaps () |
Construct per-patch addressing. More... | |
void | resetTarget () |
Clear target mesh / distribution map. More... | |
void | resetTarget (const pointMesh &tgtMesh, const mapDistributePolyMesh &distMap) |
Reset target mesh / distribution map. More... | |
bool | isWriteProc () const noexcept |
Get status of write enabled (on this proc) More... | |
bool | isWriteProc (const bool on) noexcept |
Change status of write enabled (on this proc) More... | |
label | distributeAllFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const |
template<class Type > | |
tmp< GeometricField< Type, pointPatchField, pointMesh > > | distributeField (const GeometricField< Type, pointPatchField, pointMesh > &fld) const |
Distribute point field. More... | |
template<class Type > | |
tmp< GeometricField< Type, pointPatchField, pointMesh > > | distributePointField (const IOobject &fieldObject) const |
Read and distribute point field. More... | |
template<class Type > | |
label | distributePointFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const |
Read, distribute and write all/selected point fields. More... | |
template<class Type > | |
void | distributeAndStore (const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &) const |
Static Public Attributes | |
static int | verbose_ |
Output verbosity when writing. More... | |
Distributor/redistributor for point fields, uses a two (or three) stage construction.
The inconvenient multi-stage construction is needed since the pointMesh is directly associated with a polyMesh, which will probably have changed while creating the target mesh. This means that it is necessary to save the size of the source mesh and all of its patch meshPoints prior to making any changes (eg, creating the target mesh).
Runs in parallel. Redistributes from srcMesh to tgtMesh.
Definition at line 74 of file parPointFieldDistributor.H.
|
explicit |
Basic construction.
srcMesh | The source pointMesh |
savePoints | Call saveMeshPoints() immediately |
isWriteProc | Tagged for output writing (on this proc) |
|
explicit |
Full construction of source/target.
srcMesh | The source pointMesh |
tgtMesh | The target pointMesh |
distMap | The distribution map |
savePoints | Call saveMeshPoints() immediately |
isWriteProc | Tagged for output writing (on this proc) |
bool hasMeshPoints | ( | ) | const |
True if meshPoints (per boundary) for the source mesh have been saved
bool hasPatchPointMaps | ( | ) | const |
True if patch maps (per boundary) exist.
bool hasTarget | ( | ) | const |
True if a target mesh/distribution map has been attached.
void clearMeshPoints | ( | ) |
Clear out meshPoints (per boundary) for the source mesh.
void clearPatchPointMaps | ( | ) |
Clear out patch maps (per boundary)
void saveMeshPoints | ( | ) |
Create/recreate meshPoints (per boundary) for the source mesh.
void createPatchPointMaps | ( | ) |
Construct per-patch addressing.
void resetTarget | ( | ) |
Clear target mesh / distribution map.
void resetTarget | ( | const pointMesh & | tgtMesh, |
const mapDistributePolyMesh & | distMap | ||
) |
Reset target mesh / distribution map.
|
inlinenoexcept |
Get status of write enabled (on this proc)
Definition at line 181 of file parPointFieldDistributor.H.
Change status of write enabled (on this proc)
Definition at line 187 of file parPointFieldDistributor.H.
label distributeAllFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) | const |
Read, distribute and write all/selected point field types (scalar, vector, ... types)
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributeField | ( | const GeometricField< Type, pointPatchField, pointMesh > & | fld | ) | const |
Distribute point field.
tmp< GeometricField< Type, pointPatchField, pointMesh > > distributePointField | ( | const IOobject & | fieldObject | ) | const |
Read and distribute point field.
label distributePointFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) | const |
Read, distribute and write all/selected point fields.
void distributeAndStore | ( | const PtrList< GeometricField< Type, pointPatchField, pointMesh > > & | ) | const |
Distributed each (unregistered!) point field and store the result on its objectRegistry
|
static |
Output verbosity when writing.
Definition at line 112 of file parPointFieldDistributor.H.