parFvFieldDistributor Class Reference

Finite volume reconstructor for volume and surface fields. More...

Public Member Functions

 parFvFieldDistributor (const parFvFieldDistributor &)=delete
 No copy construct. More...
 
void operator= (const parFvFieldDistributor &)=delete
 No copy assignment. More...
 
 parFvFieldDistributor (const fvMesh &srcMesh, fvMesh &tgtMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc)
 Construct from components. More...
 
 parFvFieldDistributor (const fvMesh &srcMesh, fvMesh &tgtMesh, const mapDistributePolyMesh &distMap, refPtr< fileOperation > &writeHandler)
 Construct from components. 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 60 of file parFvFieldDistributor.H.

Constructor & Destructor Documentation

◆ parFvFieldDistributor() [1/3]

No copy construct.

◆ parFvFieldDistributor() [2/3]

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)

◆ parFvFieldDistributor() [3/3]

parFvFieldDistributor ( const fvMesh srcMesh,
fvMesh tgtMesh,
const mapDistributePolyMesh distMap,
refPtr< fileOperation > &  writeHandler 
)

Construct from components.

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

Member Function Documentation

◆ operator=()

void operator= ( const parFvFieldDistributor )
delete

No copy assignment.

◆ 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 113 of file parFvFieldDistributor.H.


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