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

Collaboration diagram for faMeshSubset:
[legend]

Public Member Functions

 faMeshSubset (const faMesh &baseMesh)
 Construct using the entire mesh (no subset) More...
 
 faMeshSubset (const faMesh &baseMesh, const Foam::zero)
 Construct a zero-sized subset mesh, non-processor patches only. More...
 
const faMeshbaseMesh () const noexcept
 Original mesh. More...
 
const faMeshmesh () const noexcept
 Return baseMesh or subMesh, depending on the current state. More...
 
bool hasSubMesh () const noexcept
 Have subMesh? More...
 
const faMeshsubMesh () const
 Return reference to subset mesh. More...
 
faMeshsubMesh ()
 Return reference to subset mesh. More...
 
const labelListpointMap () const
 Return point map. More...
 
const labelListfaceMap () const
 Return face map. More...
 
const labelListedgeFlipMap () const
 Return edge map with sign to encode flipped edges. More...
 
const labelListcellMap () const
 Return cell map. More...
 
const labelListpatchMap () const
 Return patch map. More...
 
void clear ()
 Reset subMesh and all maps. More...
 
void reset ()
 Reset subMesh and all maps. Same as clear() More...
 
void reset (const Foam::zero)
 Reset to a zero-sized subset mesh, non-processor patches only. More...
 
template<class Type >
tmp< GeometricField< Type, faPatchField, areaMesh > > interpolate (const GeometricField< Type, faPatchField, areaMesh > &, const bool allowUnmapped=false) const
 Map area field. More...
 
template<class Type >
tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate (const GeometricField< Type, faePatchField, edgeMesh > &, const bool allowUnmapped=false) const
 Map edge field. More...
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > interpolate (const GeometricField< Type, faPatchField, areaMesh > &vf, const faMesh &sMesh, const bool allowUnmapped)
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > interpolate (const GeometricField< Type, faePatchField, edgeMesh > &vf, const faMesh &sMesh)
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > interpolate (const GeometricField< Type, faPatchField, areaMesh > &vf, const bool allowUnmapped) const
 
template<class Type >
Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > interpolate (const GeometricField< Type, faePatchField, edgeMesh > &vf, const bool allowUnmapped) const
 

Static Public Member Functions

template<class Type >
static tmp< GeometricField< Type, faPatchField, areaMesh > > interpolate (const GeometricField< Type, faPatchField, areaMesh > &, const faMesh &sMesh, const bool allowUnmapped=false)
 Map area field. More...
 
template<class Type >
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate (const GeometricField< Type, faePatchField, edgeMesh > &, const faMesh &sMesh)
 Map edge field. More...
 

Static Public Attributes

static word exposedPatchName
 Name for exposed internal edges (default: oldInternalEdges) More...
 

Protected Member Functions

bool checkHasSubMesh () const
 FatalError if subset has not been performed. More...
 
 faMeshSubset (const faMeshSubset &)=delete
 No copy construct. More...
 
void operator= (const faMeshSubset &)=delete
 No copy assignment. More...
 

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.

Caution Currently not really functional for subsetting beyond handling a simple zero-sized mesh.

Source files

Definition at line 65 of file faMeshSubset.H.

Constructor & Destructor Documentation

◆ faMeshSubset() [1/3]

faMeshSubset ( const faMeshSubset )
protecteddelete

No copy construct.

◆ faMeshSubset() [2/3]

faMeshSubset ( const faMesh baseMesh)
explicit

Construct using the entire mesh (no subset)

Definition at line 59 of file faMeshSubset.C.

◆ faMeshSubset() [3/3]

faMeshSubset ( const faMesh baseMesh,
const Foam::zero   
)

Construct a zero-sized subset mesh, non-processor patches only.

Definition at line 71 of file faMeshSubset.C.

References faMeshSubset::reset().

Here is the call graph for this function:

Member Function Documentation

◆ checkHasSubMesh()

bool checkHasSubMesh ( ) const
protected

FatalError if subset has not been performed.

Definition at line 42 of file faMeshSubset.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ operator=()

void operator= ( const faMeshSubset )
protecteddelete

No copy assignment.

◆ baseMesh()

const Foam::faMesh & baseMesh ( ) const
inlinenoexcept

Original mesh.

Definition at line 30 of file faMeshSubsetI.H.

◆ mesh()

const Foam::faMesh & mesh ( ) const
inlinenoexcept

Return baseMesh or subMesh, depending on the current state.

Definition at line 36 of file faMeshSubsetI.H.

◆ hasSubMesh()

bool hasSubMesh ( ) const
inlinenoexcept

Have subMesh?

Definition at line 42 of file faMeshSubsetI.H.

References bool.

◆ subMesh() [1/2]

const Foam::faMesh & subMesh ( ) const
inline

Return reference to subset mesh.

Definition at line 48 of file faMeshSubsetI.H.

◆ subMesh() [2/2]

Foam::faMesh & subMesh ( )
inline

Return reference to subset mesh.

Definition at line 56 of file faMeshSubsetI.H.

◆ pointMap()

const Foam::labelList & pointMap ( ) const
inline

Return point map.

Definition at line 64 of file faMeshSubsetI.H.

◆ faceMap()

const Foam::labelList & faceMap ( ) const
inline

Return face map.

Definition at line 72 of file faMeshSubsetI.H.

◆ edgeFlipMap()

const Foam::labelList & edgeFlipMap ( ) const
inline

Return edge map with sign to encode flipped edges.

Definition at line 80 of file faMeshSubsetI.H.

◆ cellMap()

const Foam::labelList & cellMap ( ) const
inline

Return cell map.

Definition at line 91 of file faMeshSubsetI.H.

◆ patchMap()

const Foam::labelList & patchMap ( ) const
inline

Return patch map.

Definition at line 99 of file faMeshSubsetI.H.

◆ clear()

void clear ( )

Reset subMesh and all maps.

Definition at line 81 of file faMeshSubset.C.

◆ reset() [1/2]

void reset ( )

Reset subMesh and all maps. Same as clear()

Definition at line 93 of file faMeshSubset.C.

References clear().

Referenced by faMeshSubset::faMeshSubset().

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

◆ reset() [2/2]

void reset ( const Foam::zero  )

Reset to a zero-sized subset mesh, non-processor patches only.

Definition at line 99 of file faMeshSubset.C.

References clear(), forAll, Foam::identity(), faBoundaryMesh::nNonProcessor(), PtrList< T >::set(), and UPtrList< T >::size().

Here is the call graph for this function:

◆ interpolate() [1/8]

static tmp< GeometricField< Type, faPatchField, areaMesh > > interpolate ( const GeometricField< Type, faPatchField, areaMesh > &  ,
const faMesh sMesh,
const bool  allowUnmapped = false 
)
static

Map area field.

Optionally allow unmapped faces not to produce a warning

◆ interpolate() [2/8]

static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate ( const GeometricField< Type, faePatchField, edgeMesh > &  ,
const faMesh sMesh 
)
static

Map edge field.

Optionally allow unmapped faces not to produce a warning

◆ interpolate() [3/8]

tmp< GeometricField< Type, faPatchField, areaMesh > > interpolate ( const GeometricField< Type, faPatchField, areaMesh > &  ,
const bool  allowUnmapped = false 
) const

Map area field.

Optionally allow unmapped faces not to produce a warning

◆ interpolate() [4/8]

tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate ( const GeometricField< Type, faePatchField, edgeMesh > &  ,
const bool  allowUnmapped = false 
) const

Map edge field.

◆ interpolate() [5/8]

◆ interpolate() [6/8]

◆ interpolate() [7/8]

Foam::tmp< Foam::GeometricField< Type, Foam::faPatchField, Foam::areaMesh > > interpolate ( const GeometricField< Type, faPatchField, areaMesh > &  vf,
const bool  allowUnmapped 
) const

Definition at line 236 of file faMeshSubsetTemplates.C.

References Foam::interpolate().

Here is the call graph for this function:

◆ interpolate() [8/8]

Foam::tmp< Foam::GeometricField< Type, Foam::faePatchField, Foam::edgeMesh > > interpolate ( const GeometricField< Type, faePatchField, edgeMesh > &  vf,
const bool  allowUnmapped 
) const

Definition at line 256 of file faMeshSubsetTemplates.C.

References Foam::interpolate().

Here is the call graph for this function:

Member Data Documentation

◆ exposedPatchName

Foam::word exposedPatchName
static

Name for exposed internal edges (default: oldInternalEdges)

Definition at line 116 of file faMeshSubset.H.


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