Loading...
Searching...
No Matches
parFvFieldDistributor Class Reference

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

#include <parFvFieldDistributor.H>

Public Member Functions

 parFvFieldDistributor (const parFvFieldDistributor &)=delete
 No copy construct.
void operator= (const parFvFieldDistributor &)=delete
 No copy assignment.
 parFvFieldDistributor (const fvMesh &srcMesh, fvMesh &tgtMesh, const mapDistributePolyMesh &distMap, const bool isWriteProc)
 Construct from components.
 parFvFieldDistributor (const fvMesh &srcMesh, fvMesh &tgtMesh, const mapDistributePolyMesh &distMap, refPtr< fileOperation > &writeHandler)
 Construct from components.
void reconstructPoints ()
 Helper: reconstruct and write mesh points.
void distributeAllFields (const IOobjectList &objects, const wordRes &selectedFields) const
 Distribute all fields for known field types.
template<class Type>
tmp< DimensionedField< Type, volMesh > > distributeField (const DimensionedField< Type, volMesh > &) const
 Redistribute volume internal field.
template<class Type>
tmp< DimensionedField< Type, volMesh > > distributeInternalField (const IOobject &fieldObject) const
 Read and distribute volume internal field.
template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > distributeField (const GeometricField< Type, fvPatchField, volMesh > &fld) const
 Redistribute volume field.
template<class Type>
tmp< GeometricField< Type, fvPatchField, volMesh > > distributeVolumeField (const IOobject &fieldObject) const
 Read and distribute volume field.
template<class Type>
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeField (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
 Redistribute surface field.
template<class Type>
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > distributeSurfaceField (const IOobject &fieldObject) const
 Read and distribute surface field.
template<class Type>
label distributeInternalFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, redistribute and write all/selected volume internal fields.
template<class Type>
label distributeVolumeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, redistribute and write all/selected volume fields.
template<class Type>
label distributeSurfaceFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, reconstruct and write all/selected surface fields.

Static Public Attributes

static int verbose_
 Output verbosity when writing.

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]

parFvFieldDistributor ( const parFvFieldDistributor & )
delete

No copy construct.

References parFvFieldDistributor().

Referenced by operator=(), and parFvFieldDistributor().

Here is the call graph for this function:
Here is the caller graph for this function:

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

References parFvFieldDistributor().

Here is the call graph for this function:

◆ 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]

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

Redistribute volume internal field.

◆ distributeInternalField()

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

Read and distribute volume internal field.

◆ distributeField() [2/3]

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

Redistribute volume field.

References fld().

Here is the call graph for this function:

◆ distributeVolumeField()

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

Read and distribute volume field.

◆ distributeField() [3/3]

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

Redistribute surface field.

◆ distributeSurfaceField()

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

Read and distribute surface field.

◆ distributeInternalFields()

template<class Type>
label distributeInternalFields ( const IOobjectList & objects,
const wordRes & selectedFields = wordRes() ) const

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

◆ distributeVolumeFields()

template<class Type>
label distributeVolumeFields ( const IOobjectList & objects,
const wordRes & selectedFields = wordRes() ) const

Read, redistribute and write all/selected volume fields.

◆ distributeSurfaceFields()

template<class Type>
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: