parFvFieldDistributor Class Reference

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...
 

Detailed Description

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.

Source files

Definition at line 63 of file parFvFieldDistributor.H.

Constructor & Destructor Documentation

◆ parFvFieldDistributor()

parFvFieldDistributor ( const fvMesh srcMesh,
fvMesh tgtMesh,
const mapDistributePolyMesh distMap,
const bool  isWriteProc 
)

Construct from components.

Parameters
srcMeshThe source mesh (eg, processor)
tgtMeshThe target mesh (eg, reconstructed)
distMapThe distribution map
isWriteProcTagged for output writing (on this proc)

Member Function Documentation

◆ isWriteProc() [1/2]

bool isWriteProc ( ) const
inlinenoexcept

Get status of write enabled (on this proc)

Definition at line 121 of file parFvFieldDistributor.H.

◆ isWriteProc() [2/2]

bool isWriteProc ( const bool  on)
inlinenoexcept

Change status of write enabled (on this proc)

Definition at line 127 of file parFvFieldDistributor.H.

◆ reconstructPoints()

void reconstructPoints ( )

Helper: reconstruct and write mesh points.

(note: should be moved to something like processorMeshes class)

◆ distributeAllFields()

void distributeAllFields ( const IOobjectList objects,
const wordRes selectedFields 
) const

Distribute all fields for known field types.

◆ distributeField() [1/3]

tmp< DimensionedField< Type, volMesh > > distributeField ( const DimensionedField< Type, volMesh > &  ) const

Redistribute volume internal field.

◆ distributeInternalField()

tmp< DimensionedField< Type, volMesh > > distributeInternalField ( const IOobject fieldObject) const

Read and distribute volume internal field.

◆ distributeField() [2/3]

tmp< GeometricField< Type, fvPatchField, volMesh > > distributeField ( const GeometricField< Type, fvPatchField, volMesh > &  fld) const

Redistribute volume field.

◆ distributeVolumeField()

tmp< GeometricField< Type, fvPatchField, volMesh > > distributeVolumeField ( const IOobject fieldObject) const

Read and distribute volume field.

◆ distributeField() [3/3]

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeField ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ) const

Redistribute surface field.

◆ distributeSurfaceField()

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeSurfaceField ( const IOobject fieldObject) const

Read and distribute surface field.

◆ distributeInternalFields()

label distributeInternalFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
) const

Read, redistribute and write all/selected volume internal fields.

◆ distributeVolumeFields()

label distributeVolumeFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
) const

Read, redistribute and write all/selected volume fields.

◆ distributeSurfaceFields()

label distributeSurfaceFields ( const IOobjectList objects,
const wordRes selectedFields = wordRes() 
) const

Read, reconstruct and write all/selected surface fields.

Member Data Documentation

◆ verbose_

int verbose_
static

Output verbosity when writing.

Definition at line 98 of file parFvFieldDistributor.H.


The documentation for this class was generated from the following file: