fvMeshSubset Class ReferencePost-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...
List of all members.
|
Classes |
| class | patchFieldSubset |
| | Patch-field subset interpolation class. More...
|
| class | pointPatchFieldSubset |
| | Patch-field subset interpolation class. More...
|
Public Member Functions |
| | fvMeshSubset (const fvMesh &) |
| | Construct given a mesh to subset.
|
| void | setCellSubset (const labelHashSet &globalCellMap, const label patchID=-1) |
| | Set the subset. Create "oldInternalFaces" patch for exposed.
|
| void | setLargeCellSubset (const labelList ®ion, const label currentRegion, const label patchID=-1, const bool syncCouples=true) |
| | Set the subset from all cells with region == currentRegion.
|
| void | setLargeCellSubset (const labelHashSet &globalCellMap, const label patchID=-1, const bool syncPar=true) |
| | setLargeCellSubset but with labelHashSet.
|
| const fvMesh & | baseMesh () const |
| | Original mesh.
|
| const fvMesh & | subMesh () const |
| | Return reference to subset mesh.
|
| fvMesh & | subMesh () |
| const labelList & | pointMap () const |
| | Return point map.
|
| const labelList & | faceMap () const |
| | Return face map.
|
| const labelList & | cellMap () const |
| | Return cell map.
|
| const labelList & | patchMap () const |
| | Return patch map.
|
| 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.
|
| 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.
|
| 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.
|
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
- a user supplied patch
- a newly created patch "oldInternalFaces"
- setCellSubset is for small subsets. Uses Maps to minimize memory.
- setLargeCellSubset is for largish subsets (>10% of mesh). Uses labelLists instead.
- setLargeCellSubset does coupled patch subsetting as well. If it detects a face on a coupled patch 'losing' its neighbour it will move the face into the oldInternalFaces patch.
- if a user supplied patch is used the mapping becomes a problem. Do the new faces get the value of the internal face they came from? What if e.g. the user supplied patch is a fixedValue 0? So for now they get the face of existing patch face 0.
- Source files
-
Definition at line 69 of file fvMeshSubset.H.
Constructor & Destructor Documentation
Member Function Documentation
Set the subset. Create "oldInternalFaces" patch for exposed.
internal faces (patchID==-1) or use supplied patch. Does not handle coupled patches correctly if only one side gets deleted.
Definition at line 355 of file fvMeshSubset.C.
| 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.
Create "oldInternalFaces" patch for exposed internal faces (patchID==-1) or use supplied patch. Handles coupled patches by if nessecary making coupled patch face part of patchID (so uncoupled)
Definition at line 736 of file fvMeshSubset.C.
| void setLargeCellSubset |
( |
const labelHashSet & |
globalCellMap, |
|
|
const label |
patchID = -1, |
|
|
const bool |
syncPar = true | |
|
) |
| | |
| const fvMesh& baseMesh |
( |
|
) |
const [inline] |
| const fvMesh & subMesh |
( |
|
) |
const |
Map volume field.
Definition at line 32 of file fvMeshSubsetInterpolate.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::dimensions(), forAll, GeometricField< Type, PatchField, GeoMesh >::internalField(), DimensionedField< Type, GeoMesh >::mesh(), IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, fvPatch::patch(), fvPatch::size(), polyPatch::start(), fvMesh::time(), and Time::timeName().
Referenced by vtkMesh::interpolate().
The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd
|