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

Post-processing mesh subset tool. 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...

Public Member Functions

 fvMeshSubset (const fvMesh &)
 Construct given a mesh to subset. More...
 
void setCellSubset (const labelHashSet &globalCellMap, const label patchID=-1)
 Set the subset. Create "oldInternalFaces" patch for exposed. More...
 
void setLargeCellSubset (const labelList &region, const label currentRegion, const label patchID=-1, const bool syncCouples=true)
 Set the subset from all cells with region == currentRegion. More...
 
void setLargeCellSubset (const labelHashSet &globalCellMap, const label patchID=-1, const bool syncPar=true)
 setLargeCellSubset but with labelHashSet. More...
 
const fvMeshbaseMesh () const
 Original mesh. More...
 
bool hasSubMesh () const
 Have subMesh? More...
 
const fvMeshsubMesh () const
 Return reference to subset mesh. More...
 
fvMeshsubMesh ()
 
const labelListpointMap () const
 Return point map. More...
 
const labelListfaceMap () const
 Return face map. More...
 
const labelListcellMap () const
 Return cell map. More...
 
const labelListpatchMap () const
 Return patch map. More...
 
template<class Type >
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate (const GeometricField< Type, fvPatchField, volMesh > &) const
 
template<class Type >
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
 
template<class Type >
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate (const GeometricField< Type, pointPatchField, pointMesh > &) const
 

Static Public Member Functions

template<class Type >
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const fvMesh &sMesh, const labelList &patchMap, const labelList &cellMap, const labelList &faceMap)
 Map volume field. More...
 
template<class Type >
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &, const fvMesh &sMesh, const labelList &patchMap, const labelList &faceMap)
 Map surface field. More...
 
template<class Type >
static tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate (const GeometricField< Type, pointPatchField, pointMesh > &, const pointMesh &sMesh, const labelList &patchMap, const labelList &pointMap)
 Map point field. More...
 

Detailed Description

Post-processing mesh subset tool. 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 71 of file fvMeshSubset.H.

Constructor & Destructor Documentation

fvMeshSubset ( const fvMesh baseMesh)
explicit

Construct given a mesh to subset.

Definition at line 360 of file fvMeshSubset.C.

References fvMeshSubset::setCellSubset().

Here is the call graph for this function:

Member Function Documentation

void setCellSubset ( const labelHashSet globalCellMap,
const label  patchID = -1 
)
void setLargeCellSubset ( const labelList 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 
)

setLargeCellSubset but with labelHashSet.

Definition at line 1358 of file fvMeshSubset.C.

References fvMeshSubset::baseMesh(), forAllConstIter(), and fvMeshSubset::setLargeCellSubset().

Here is the call graph for this function:

const fvMesh& baseMesh ( ) const
inline
bool hasSubMesh ( ) const

Have subMesh?

Definition at line 1374 of file fvMeshSubset.C.

Referenced by fvMeshSubset::baseMesh().

Here is the caller graph for this function:

const fvMesh & subMesh ( ) const

Return reference to subset mesh.

Definition at line 1380 of file fvMeshSubset.C.

Referenced by fvMeshSubset::baseMesh(), structuredDecomp::decompose(), fvMeshDistribute::distribute(), vtkMesh::mesh(), and structuredRenumber::renumber().

Here is the caller graph for this function:

fvMesh & subMesh ( )

Definition at line 1388 of file fvMeshSubset.C.

const labelList & pointMap ( ) const

Return point map.

Definition at line 1396 of file fvMeshSubset.C.

Referenced by fvMeshSubset::baseMesh(), and fvMeshDistribute::distribute().

Here is the caller graph for this function:

const labelList & faceMap ( ) const

Return face map.

Definition at line 1404 of file fvMeshSubset.C.

Referenced by fvMeshSubset::baseMesh(), and fvMeshDistribute::distribute().

Here is the caller graph for this function:

const labelList & cellMap ( ) const

Return cell map.

Definition at line 1412 of file fvMeshSubset.C.

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

Here is the caller graph for this function:

const labelList & patchMap ( ) const

Return patch map.

Definition at line 1420 of file fvMeshSubset.C.

Referenced by fvMeshSubset::baseMesh(), and fvMeshDistribute::distribute().

Here is the caller graph for this function:

tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate ( const GeometricField< Type, fvPatchField, volMesh > &  vf,
const fvMesh sMesh,
const labelList patchMap,
const labelList cellMap,
const labelList faceMap 
)
static
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate ( const GeometricField< Type, fvPatchField, volMesh > &  vf) const

Definition at line 160 of file fvMeshSubsetInterpolate.C.

References Foam::faceMap(), Foam::interpolate(), and fvMeshSubset::interpolate().

Here is the call graph for this function:

tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  vf,
const fvMesh sMesh,
const labelList patchMap,
const labelList faceMap 
)
static
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  sf) const

Definition at line 331 of file fvMeshSubsetInterpolate.C.

References Foam::faceMap(), Foam::interpolate(), and fvMeshSubset::interpolate().

Here is the call graph for this function:

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

Definition at line 478 of file fvMeshSubsetInterpolate.C.

References Foam::interpolate(), and MeshObject< polyMesh, UpdateableMeshObject, pointMesh >::New().

Here is the call graph for this function:


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