Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
fvMeshSubset Class Reference

Given the original mesh and the list of selected cells, it creates the mesh consisting only of the desired cells, with the mapping list for points, faces, and cells. More...

Collaboration diagram for fvMeshSubset:
Collaboration graph
[legend]

Public Member Functions

 fvMeshSubset (const fvMesh &baseMesh)
 
 fvMeshSubset (const fvMesh &baseMesh, const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true)
 
 fvMeshSubset (const fvMesh &baseMesh, const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true)
 
 fvMeshSubset (const fvMesh &baseMesh, const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true)
 
 fvMeshSubset (const fvMesh &baseMesh, const label regioni, const labelUList &regions, const label patchID=-1, const bool syncPar=true)
 
const fvMeshbaseMesh () const noexcept
 
const fvMeshmesh () const noexcept
 
bool hasSubMesh () const noexcept
 
const fvMeshsubMesh () const
 
fvMeshsubMesh ()
 
const labelListpointMap () const
 
const labelListfaceMap () const
 
const labelListfaceFlipMap () const
 
const labelListcellMap () const
 
const labelListpatchMap () const
 
void clear ()
 
void setCellSubset (const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true)
 
void setCellSubset (const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true)
 
void setCellSubset (const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true)
 
void setCellSubset (const label regioni, const labelUList &regions, const label patchID=-1, const bool syncCouples=true)
 
labelList getExposedFaces (const bitSet &selectedCells, const bool syncCouples=true) const
 
labelList getExposedFaces (const label regioni, const labelUList &regions, const bool syncCouples=true) const
 
void setCellSubset (const bitSet &selectedCells, const labelList &exposedFaces, const labelList &patchIDs, const bool syncCouples=true)
 
void setCellSubset (const label regioni, const labelList &regions, const labelList &exposedFaces, const labelList &patchIDs, const bool syncCouples=true)
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const bool allowUnmapped=false) const
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &, const bool allowUnmapped=false) const
 
template<class Type >
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate (const GeometricField< Type, pointPatchField, pointMesh > &, const bool allowUnmapped=false) const
 
template<class Type >
tmp< DimensionedField< Type, volMesh > > interpolate (const DimensionedField< Type, volMesh > &, const bool allowUnmapped=false) const
 
void setLargeCellSubset (const labelUList &region, const label currentRegion, const label patchID=-1, const bool syncCouples=true)
 
void setLargeCellSubset (const labelHashSet &globalCellMap, const label patchID=-1, const bool syncPar=true)
 
void setLargeCellSubset (const labelList &regions, const label regioni, const labelList &exposedFaces, const labelList &patchIDs, const bool syncCouples=true)
 

Static Public Member Functions

template<class Type >
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap, const bool allowUnmapped=false)
 
template<class Type >
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap)
 
template<class Type >
static tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate (const GeometricField< Type, pointPatchField, pointMesh > &, const pointMesh &sMesh, const labelUList &patchMap, const labelUList &pointMap)
 
template<class Type >
static tmp< DimensionedField< Type, volMesh > > interpolate (const DimensionedField< Type, volMesh > &, const fvMesh &sMesh, const labelUList &cellMap)
 

Static Public Attributes

static word exposedPatchName
 

Detailed Description

Given the original mesh and the list of selected cells, it creates the mesh consisting only of the desired cells, with the mapping list for points, faces, and cells.

Puts all exposed internal faces into either

Source files

Definition at line 69 of file fvMeshSubset.H.

Constructor & Destructor Documentation

◆ fvMeshSubset() [1/5]

fvMeshSubset ( const fvMesh baseMesh)
explicit

Definition at line 467 of file fvMeshSubset.C.

◆ fvMeshSubset() [2/5]

fvMeshSubset ( const fvMesh baseMesh,
const bitSet selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 480 of file fvMeshSubset.C.

References patchID.

◆ fvMeshSubset() [3/5]

fvMeshSubset ( const fvMesh baseMesh,
const labelUList selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 508 of file fvMeshSubset.C.

References patchID.

◆ fvMeshSubset() [4/5]

fvMeshSubset ( const fvMesh baseMesh,
const labelHashSet selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 494 of file fvMeshSubset.C.

References patchID.

◆ fvMeshSubset() [5/5]

fvMeshSubset ( const fvMesh baseMesh,
const label  regioni,
const labelUList regions,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 522 of file fvMeshSubset.C.

References patchID.

Member Function Documentation

◆ baseMesh()

const Foam::fvMesh & baseMesh ( ) const
inlinenoexcept

Definition at line 23 of file fvMeshSubsetI.H.

Referenced by zoneSubSet::baseMesh(), vtkWrite::writeVolFields(), and ensightWrite::writeVolFields().

Here is the caller graph for this function:

◆ mesh()

const Foam::fvMesh & mesh ( ) const
inlinenoexcept

Definition at line 29 of file fvMeshSubsetI.H.

◆ hasSubMesh()

bool hasSubMesh ( ) const
inlinenoexcept

Definition at line 35 of file fvMeshSubsetI.H.

References bool.

Referenced by fvMeshSubsetProxy::interpolate(), and fvMeshSubsetProxy::interpolateInternal().

Here is the caller graph for this function:

◆ subMesh() [1/2]

Foam::fvMesh & subMesh ( ) const
inline

Definition at line 41 of file fvMeshSubsetI.H.

Referenced by structuredDecomp::decompose(), fvMeshDistribute::distribute(), fvMeshSubsetProxy::mesh(), structuredRenumber::renumber(), and momentumError::write().

Here is the caller graph for this function:

◆ subMesh() [2/2]

fvMesh& subMesh ( )
inline

◆ pointMap()

const Foam::labelList & pointMap ( ) const
inline

Definition at line 57 of file fvMeshSubsetI.H.

Referenced by fvMeshDistribute::distribute().

Here is the caller graph for this function:

◆ faceMap()

const Foam::labelList & faceMap ( ) const
inline

Definition at line 65 of file fvMeshSubsetI.H.

Referenced by fvMeshDistribute::distribute().

Here is the caller graph for this function:

◆ faceFlipMap()

const Foam::labelList & faceFlipMap ( ) const
inline

Definition at line 73 of file fvMeshSubsetI.H.

Referenced by fvMeshDistribute::distribute().

Here is the caller graph for this function:

◆ cellMap()

const Foam::labelList & cellMap ( ) const
inline

Definition at line 84 of file fvMeshSubsetI.H.

Referenced by structuredDecomp::decompose(), fvMeshDistribute::distribute(), and structuredRenumber::renumber().

Here is the caller graph for this function:

◆ patchMap()

const Foam::labelList & patchMap ( ) const
inline

Definition at line 92 of file fvMeshSubsetI.H.

Referenced by fvMeshDistribute::distribute().

Here is the caller graph for this function:

◆ clear()

void clear ( )

Definition at line 538 of file fvMeshSubset.C.

◆ setCellSubset() [1/6]

void setCellSubset ( const bitSet selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

◆ setCellSubset() [2/6]

void setCellSubset ( const labelUList selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 1189 of file fvMeshSubset.C.

References Foam::BitSetOps::create(), and patchID.

Here is the call graph for this function:

◆ setCellSubset() [3/6]

void setCellSubset ( const labelHashSet selectedCells,
const label  patchID = -1,
const bool  syncPar = true 
)

Definition at line 1205 of file fvMeshSubset.C.

References Foam::BitSetOps::create(), and patchID.

Here is the call graph for this function:

◆ setCellSubset() [4/6]

void setCellSubset ( const label  regioni,
const labelUList regions,
const label  patchID = -1,
const bool  syncCouples = true 
)

Definition at line 1221 of file fvMeshSubset.C.

References Foam::BitSetOps::create(), and patchID.

Here is the call graph for this function:

◆ getExposedFaces() [1/2]

Foam::labelList getExposedFaces ( const bitSet selectedCells,
const bool  syncCouples = true 
) const

Definition at line 1238 of file fvMeshSubset.C.

References removeCells::getExposedFaces().

Here is the call graph for this function:

◆ getExposedFaces() [2/2]

Foam::labelList getExposedFaces ( const label  regioni,
const labelUList regions,
const bool  syncCouples = true 
) const

Definition at line 1250 of file fvMeshSubset.C.

References removeCells::getExposedFaces().

Here is the call graph for this function:

◆ setCellSubset() [5/6]

void setCellSubset ( const bitSet selectedCells,
const labelList exposedFaces,
const labelList patchIDs,
const bool  syncCouples = true 
)

Definition at line 1263 of file fvMeshSubset.C.

◆ setCellSubset() [6/6]

void setCellSubset ( const label  regioni,
const labelList regions,
const labelList exposedFaces,
const labelList patchIDs,
const bool  syncCouples = true 
)

Definition at line 1281 of file fvMeshSubset.C.

◆ interpolate() [1/8]

static tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate ( const GeometricField< Type, fvPatchField, volMesh > &  ,
const fvMesh sMesh,
const labelUList patchMap,
const labelUList cellMap,
const labelUList faceMap,
const bool  allowUnmapped = false 
)
static

Referenced by momentumError::calcMomentError(), momentumError::divDevRhoReff(), and fvMeshSubsetProxy::interpolate().

Here is the caller graph for this function:

◆ interpolate() [2/8]

tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate ( const GeometricField< Type, fvPatchField, volMesh > &  ,
const bool  allowUnmapped = false 
) const

◆ interpolate() [3/8]

static tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ,
const fvMesh sMesh,
const labelUList patchMap,
const labelUList cellMap,
const labelUList faceMap 
)
static

◆ interpolate() [4/8]

tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ,
const bool  allowUnmapped = false 
) const

◆ interpolate() [5/8]

static tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate ( const GeometricField< Type, pointPatchField, pointMesh > &  ,
const pointMesh sMesh,
const labelUList patchMap,
const labelUList pointMap 
)
static

◆ interpolate() [6/8]

tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate ( const GeometricField< Type, pointPatchField, pointMesh > &  ,
const bool  allowUnmapped = false 
) const

◆ interpolate() [7/8]

static tmp<DimensionedField<Type, volMesh> > interpolate ( const DimensionedField< Type, volMesh > &  ,
const fvMesh sMesh,
const labelUList cellMap 
)
static

◆ interpolate() [8/8]

tmp<DimensionedField<Type, volMesh> > interpolate ( const DimensionedField< Type, volMesh > &  ,
const bool  allowUnmapped = false 
) const

◆ setLargeCellSubset() [1/3]

void setLargeCellSubset ( const labelUList region,
const label  currentRegion,
const label  patchID = -1,
const bool  syncCouples = true 
)
inline

Definition at line 428 of file fvMeshSubset.H.

References Foam::Info, Foam::nl, patchID, and fvMeshSubset::setCellSubset().

Here is the call graph for this function:

◆ setLargeCellSubset() [2/3]

void setLargeCellSubset ( const labelHashSet globalCellMap,
const label  patchID = -1,
const bool  syncPar = true 
)
inline

Definition at line 451 of file fvMeshSubset.H.

References Foam::Info, Foam::nl, patchID, and fvMeshSubset::setCellSubset().

Here is the call graph for this function:

◆ setLargeCellSubset() [3/3]

void setLargeCellSubset ( const labelList regions,
const label  regioni,
const labelList exposedFaces,
const labelList patchIDs,
const bool  syncCouples = true 
)
inline

Definition at line 469 of file fvMeshSubset.H.

References Foam::Info, Foam::nl, and fvMeshSubset::setCellSubset().

Here is the call graph for this function:

Member Data Documentation

◆ exposedPatchName

Foam::word exposedPatchName
static

Definition at line 157 of file fvMeshSubset.H.


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