Loading...
Searching...
No Matches
faMeshDistributor Class Reference

Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the subMesh) with mapping lists for points, faces, and cells. More...

#include <faMeshDistributor.H>

Public Member Functions

 faMeshDistributor (const faMeshDistributor &)=delete
 No copy construct.
void operator= (const faMeshDistributor &)=delete
 No copy assignment.
 faMeshDistributor (const faMesh &srcMesh, const faMesh &tgtMesh, const mapDistributePolyMesh &faDistMap, const bool isWriteProc)
 Construct from components, using bool to control writing.
 faMeshDistributor (const faMesh &srcMesh, const faMesh &tgtMesh, const mapDistributePolyMesh &faDistMap, refPtr< fileOperation > &writeHandler)
 Construct from components, using file handler to control writing.
label distributeAllFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, distribute and write all/selected point field types (scalar, vector, ... types).
template<class Type>
tmp< GeometricField< Type, faPatchField, areaMesh > > distributeField (const GeometricField< Type, faPatchField, areaMesh > &fld) const
 Distribute area field.
template<class Type>
tmp< GeometricField< Type, faePatchField, edgeMesh > > distributeField (const GeometricField< Type, faePatchField, edgeMesh > &fld) const
 Distribute edge field.
template<class Type>
tmp< GeometricField< Type, faPatchField, areaMesh > > distributeAreaField (const IOobject &fieldObject) const
 Read and distribute area field.
template<class Type>
tmp< GeometricField< Type, faePatchField, edgeMesh > > distributeEdgeField (const IOobject &fieldObject) const
 Read and distribute edge field.
template<class Type>
label distributeAreaFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, distribute and write all/selected area fields.
template<class Type>
label distributeEdgeFields (const IOobjectList &objects, const wordRes &selectedFields=wordRes()) const
 Read, distribute and write all/selected area fields.

Static Public Member Functions

static mapDistributePolyMesh distribute (const faMesh &oldMesh, const mapDistributePolyMesh &distMap, const polyMesh &tgtPolyMesh, autoPtr< faMesh > &newMeshPtr)
 Distribute mesh according to the given (volume) mesh distribution.
static mapDistributePolyMesh distribute (const faMesh &oldMesh, const mapDistributePolyMesh &distMap, autoPtr< faMesh > &newMeshPtr)
 Distribute mesh according to the given (volume) mesh distribution.

Static Public Attributes

static int verbose_
 Output verbosity when writing.

Detailed Description

Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the subMesh) with mapping lists for points, faces, and cells.

Source files

Definition at line 57 of file faMeshDistributor.H.

Constructor & Destructor Documentation

◆ faMeshDistributor() [1/3]

faMeshDistributor ( const faMeshDistributor & )
delete

No copy construct.

References faMeshDistributor().

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

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

◆ faMeshDistributor() [2/3]

faMeshDistributor ( const faMesh & srcMesh,
const faMesh & tgtMesh,
const mapDistributePolyMesh & faDistMap,
const bool isWriteProc )

Construct from components, using bool to control writing.

◆ faMeshDistributor() [3/3]

faMeshDistributor ( const faMesh & srcMesh,
const faMesh & tgtMesh,
const mapDistributePolyMesh & faDistMap,
refPtr< fileOperation > & writeHandler )

Construct from components, using file handler to control writing.

Member Function Documentation

◆ operator=()

void operator= ( const faMeshDistributor & )
delete

No copy assignment.

References faMeshDistributor().

Here is the call graph for this function:

◆ distribute() [1/2]

mapDistributePolyMesh distribute ( const faMesh & oldMesh,
const mapDistributePolyMesh & distMap,
const polyMesh & tgtPolyMesh,
autoPtr< faMesh > & newMeshPtr )
static

Distribute mesh according to the given (volume) mesh distribution.

Uses 'tgtPolyMesh' for the new mesh

Parameters
tgtPolyMeshFrom polyMesh

◆ distribute() [2/2]

mapDistributePolyMesh distribute ( const faMesh & oldMesh,
const mapDistributePolyMesh & distMap,
autoPtr< faMesh > & newMeshPtr )
static

Distribute mesh according to the given (volume) mesh distribution.

Re-uses polyMesh from oldMesh for the new mesh

Parameters
newMeshPtrFrom polyMesh

◆ distributeAllFields()

label distributeAllFields ( const IOobjectList & objects,
const wordRes & selectedFields = wordRes() ) const

Read, distribute and write all/selected point field types (scalar, vector, ... types).

◆ distributeField() [1/2]

template<class Type>
tmp< GeometricField< Type, faPatchField, areaMesh > > distributeField ( const GeometricField< Type, faPatchField, areaMesh > & fld) const

Distribute area field.

References fld().

Here is the call graph for this function:

◆ distributeField() [2/2]

template<class Type>
tmp< GeometricField< Type, faePatchField, edgeMesh > > distributeField ( const GeometricField< Type, faePatchField, edgeMesh > & fld) const

Distribute edge field.

References fld().

Here is the call graph for this function:

◆ distributeAreaField()

template<class Type>
tmp< GeometricField< Type, faPatchField, areaMesh > > distributeAreaField ( const IOobject & fieldObject) const

Read and distribute area field.

◆ distributeEdgeField()

template<class Type>
tmp< GeometricField< Type, faePatchField, edgeMesh > > distributeEdgeField ( const IOobject & fieldObject) const

Read and distribute edge field.

◆ distributeAreaFields()

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

Read, distribute and write all/selected area fields.

◆ distributeEdgeFields()

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

Read, distribute and write all/selected area fields.

Member Data Documentation

◆ verbose_

int verbose_
static

Output verbosity when writing.

Definition at line 138 of file faMeshDistributor.H.


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