faFieldDecomposer Class Reference

Finite Area area and edge field decomposer. More...

Classes

class  patchFieldDecomposer
 Patch field decomposer class. More...
 
class  processorAreaPatchFieldDecomposer
 Processor patch field decomposer class. More...
 
class  processorEdgePatchFieldDecomposer
 Processor patch field decomposer class. More...
 

Public Member Functions

 faFieldDecomposer (const Foam::zero, const faMesh &procMesh, const labelList &edgeAddressing, const labelList &faceAddressing, const labelList &boundaryAddressing)
 Construct without mappers, added later with reset() More...
 
 faFieldDecomposer (const faMesh &completeMesh, const faMesh &procMesh, const labelList &edgeAddressing, const labelList &faceAddressing, const labelList &boundaryAddressing)
 Construct from components using information from the complete mesh. More...
 
 faFieldDecomposer (const label nTotalFaces, const List< labelRange > &boundaryRanges, const labelUList &edgeOwner, const labelUList &edgeNeigbour, const faMesh &procMesh, const labelList &edgeAddressing, const labelList &faceAddressing, const labelList &boundaryAddressing)
 Construct from components without the complete mesh. More...
 
 ~faFieldDecomposer ()=default
 Destructor. More...
 
bool empty () const
 True if no mappers have been allocated. More...
 
void clear ()
 Remove all mappers. More...
 
void reset (const faMesh &completeMesh)
 Reset mappers using information from the complete mesh. More...
 
void reset (const label nTotalFaces, const List< labelRange > &boundaryRanges, const labelUList &edgeOwner, const labelUList &edgeNeigbour)
 Reset mapper using information about the complete mesh. More...
 
template<class Type >
tmp< GeometricField< Type, faPatchField, areaMesh > > decomposeField (const GeometricField< Type, faPatchField, areaMesh > &field) const
 Decompose area field. More...
 
template<class Type >
tmp< GeometricField< Type, faePatchField, edgeMesh > > decomposeField (const GeometricField< Type, faePatchField, edgeMesh > &field) const
 Decompose surface field. More...
 
template<class GeoField >
void decomposeFields (const PtrList< GeoField > &fields) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > decomposeField (const GeometricField< Type, faPatchField, areaMesh > &field) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > decomposeField (const GeometricField< Type, faePatchField, edgeMesh > &field) const
 

Static Public Member Functions

template<class Type , template< class > class PatchField, class GeoMesh >
static void readFields (const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool readOldTime)
 Read the fields and hold on the pointer list. More...
 
template<class Mesh , class GeoField >
static void readFields (const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields)
 Read fields and hold on the pointer list. More...
 

Detailed Description

Finite Area area and edge field decomposer.

Author Zeljko Tukovic, FSB Zagreb Hrvoje Jasak, Wikki Ltd.

Source files

Definition at line 61 of file faFieldDecomposer.H.

Constructor & Destructor Documentation

◆ faFieldDecomposer() [1/3]

faFieldDecomposer ( const Foam::zero  ,
const faMesh procMesh,
const labelList edgeAddressing,
const labelList faceAddressing,
const labelList boundaryAddressing 
)

Construct without mappers, added later with reset()

Definition at line 159 of file faFieldDecomposer.C.

◆ faFieldDecomposer() [2/3]

faFieldDecomposer ( const faMesh completeMesh,
const faMesh procMesh,
const labelList edgeAddressing,
const labelList faceAddressing,
const labelList boundaryAddressing 
)

Construct from components using information from the complete mesh.

Definition at line 179 of file faFieldDecomposer.C.

◆ faFieldDecomposer() [3/3]

faFieldDecomposer ( const label  nTotalFaces,
const List< labelRange > &  boundaryRanges,
const labelUList edgeOwner,
const labelUList edgeNeigbour,
const faMesh procMesh,
const labelList edgeAddressing,
const labelList faceAddressing,
const labelList boundaryAddressing 
)

Construct from components without the complete mesh.

Definition at line 201 of file faFieldDecomposer.C.

◆ ~faFieldDecomposer()

~faFieldDecomposer ( )
default

Destructor.

Member Function Documentation

◆ empty()

bool empty ( ) const

True if no mappers have been allocated.

Definition at line 228 of file faFieldDecomposer.C.

◆ clear()

void clear ( )

Remove all mappers.

Definition at line 234 of file faFieldDecomposer.C.

◆ reset() [1/2]

void reset ( const faMesh completeMesh)

Reset mappers using information from the complete mesh.

Definition at line 304 of file faFieldDecomposer.C.

References faMesh::boundary(), clear(), forAll, faPatch::patchSlice(), faBoundaryMesh::patchStarts(), and edgeInterpolation::weights().

Here is the call graph for this function:

◆ reset() [2/2]

void reset ( const label  nTotalFaces,
const List< labelRange > &  boundaryRanges,
const labelUList edgeOwner,
const labelUList edgeNeigbour 
)

Reset mapper using information about the complete mesh.

Definition at line 243 of file faFieldDecomposer.C.

References clear(), forAll, and faPatch::patchSlice().

Here is the call graph for this function:

◆ decomposeField() [1/4]

tmp<GeometricField<Type, faPatchField, areaMesh> > decomposeField ( const GeometricField< Type, faPatchField, areaMesh > &  field) const

Decompose area field.

◆ decomposeField() [2/4]

tmp<GeometricField<Type, faePatchField, edgeMesh> > decomposeField ( const GeometricField< Type, faePatchField, edgeMesh > &  field) const

Decompose surface field.

◆ decomposeFields()

void decomposeFields ( const PtrList< GeoField > &  fields) const

Definition at line 218 of file faFieldDecomposerFields.C.

References fields, forAll, and Foam::vtk::write().

Here is the call graph for this function:

◆ readFields() [1/2]

void readFields ( const typename GeoMesh::Mesh mesh,
const IOobjectList objects,
PtrList< GeometricField< Type, PatchField, GeoMesh >> &  fields,
const bool  readOldTime 
)
static

Read the fields and hold on the pointer list.

Definition at line 37 of file faFieldDecomposerReadFields.C.

References fields, forAll, IOobjectList::lookupClass(), mesh, and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ readFields() [2/2]

void readFields ( const Mesh &  mesh,
const IOobjectList objects,
PtrList< GeoField > &  fields 
)
static

Read fields and hold on the pointer list.

Definition at line 67 of file faFieldDecomposerReadFields.C.

References fields, forAll, IOobjectList::lookupClass(), mesh, and IOobjectList::sortedNames().

Here is the call graph for this function:

◆ decomposeField() [3/4]

Foam::tmp<Foam::GeometricField<Type, Foam::faPatchField, Foam::areaMesh> > decomposeField ( const GeometricField< Type, faPatchField, areaMesh > &  field) const

Definition at line 38 of file faFieldDecomposerFields.C.

References field(), forAll, and Foam::New().

Here is the call graph for this function:

◆ decomposeField() [4/4]

Foam::tmp<Foam::GeometricField<Type, Foam::faePatchField, Foam::edgeMesh> > decomposeField ( const GeometricField< Type, faePatchField, edgeMesh > &  field) const

Definition at line 108 of file faFieldDecomposerFields.C.

References field(), forAll, Foam::New(), and p.

Here is the call graph for this function:

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