faFieldDecomposer Class Reference

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

Classes

class  fieldsCache
 
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 store 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 store 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 59 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 156 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 176 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 198 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 225 of file faFieldDecomposer.C.

◆ clear()

void clear ( )

Remove all mappers.

Definition at line 231 of file faFieldDecomposer.C.

◆ reset() [1/2]

void reset ( const faMesh completeMesh)

Reset mappers using information from the complete mesh.

Definition at line 301 of file faFieldDecomposer.C.

References faMesh::boundary(), clear(), forAll, faPatch::patchSlice(), faBoundaryMesh::patchStarts(), and UPtrList< T >::size().

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 240 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 213 of file faFieldDecomposerTemplates.C.

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

Referenced by faFieldDecomposer::fieldsCache::privateCache::decompose().

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

◆ readFields() [1/2]

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

Read the fields and store on the pointer list.

◆ readFields() [2/2]

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

Read fields and store on the pointer list.

◆ decomposeField() [3/4]

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

Definition at line 33 of file faFieldDecomposerTemplates.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 103 of file faFieldDecomposerTemplates.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: