Finite volume reconstructor for volume and surface fields. More...
Public Member Functions | |
parFvFieldDistributor (const fvMesh &srcMesh, fvMesh &tgtMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc) | |
Construct from components. 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... | |
void | reconstructPoints () |
Helper: reconstruct and write mesh points. More... | |
void | distributeAllFields (const IOobjectList &objects, const wordRes &selectedFields) const |
Distribute all fields for known field types. More... | |
template<class Type > | |
tmp< DimensionedField< Type, volMesh > > | distributeField (const DimensionedField< Type, volMesh > &) const |
Redistribute volume internal field. More... | |
template<class Type > | |
tmp< DimensionedField< Type, volMesh > > | distributeInternalField (const IOobject &fieldObject) const |
Read and distribute volume internal field. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | distributeField (const GeometricField< Type, fvPatchField, volMesh > &fld) const |
Redistribute volume field. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | distributeVolumeField (const IOobject &fieldObject) const |
Read and distribute volume field. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | distributeField (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const |
Redistribute surface field. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | distributeSurfaceField (const IOobject &fieldObject) const |
Read and distribute surface field. More... | |
template<class Type > | |
label | distributeInternalFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const |
Read, redistribute and write all/selected volume internal fields. More... | |
template<class Type > | |
label | distributeVolumeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const |
Read, redistribute and write all/selected volume fields. More... | |
template<class Type > | |
label | distributeSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const |
Read, reconstruct and write all/selected surface fields. More... | |
Static Public Attributes | |
static int | verbose_ |
Output verbosity when writing. More... | |
Finite volume reconstructor for volume and surface fields.
Runs in parallel. Reconstructs/redistributes from procMesh to baseMesh. baseMesh is non-zero cells on processor0 only.
Definition at line 63 of file parFvFieldDistributor.H.
parFvFieldDistributor | ( | const fvMesh & | srcMesh, |
fvMesh & | tgtMesh, | ||
const mapDistributePolyMesh & | distMap, | ||
const bool | isWriteProc | ||
) |
Construct from components.
srcMesh | The source mesh (eg, processor) |
tgtMesh | The target mesh (eg, reconstructed) |
distMap | The distribution map |
isWriteProc | Tagged for output writing (on this proc) |
|
inlinenoexcept |
Get status of write enabled (on this proc)
Definition at line 121 of file parFvFieldDistributor.H.
Change status of write enabled (on this proc)
Definition at line 127 of file parFvFieldDistributor.H.
void reconstructPoints | ( | ) |
Helper: reconstruct and write mesh points.
(note: should be moved to something like processorMeshes class)
void distributeAllFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields | ||
) | const |
Distribute all fields for known field types.
tmp< DimensionedField< Type, volMesh > > distributeField | ( | const DimensionedField< Type, volMesh > & | ) | const |
Redistribute volume internal field.
tmp< DimensionedField< Type, volMesh > > distributeInternalField | ( | const IOobject & | fieldObject | ) | const |
Read and distribute volume internal field.
tmp< GeometricField< Type, fvPatchField, volMesh > > distributeField | ( | const GeometricField< Type, fvPatchField, volMesh > & | fld | ) | const |
Redistribute volume field.
tmp< GeometricField< Type, fvPatchField, volMesh > > distributeVolumeField | ( | const IOobject & | fieldObject | ) | const |
Read and distribute volume field.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeField | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | ) | const |
Redistribute surface field.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeSurfaceField | ( | const IOobject & | fieldObject | ) | const |
Read and distribute surface field.
label distributeInternalFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) | const |
Read, redistribute and write all/selected volume internal fields.
label distributeVolumeFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) | const |
Read, redistribute and write all/selected volume fields.
label distributeSurfaceFields | ( | const IOobjectList & | objects, |
const wordRes & | selectedFields = wordRes() |
||
) | const |
Read, reconstruct and write all/selected surface fields.
|
static |
Output verbosity when writing.
Definition at line 98 of file parFvFieldDistributor.H.