Go to the documentation of this file.
56 #ifndef fvMeshSubset_H
57 #define fvMeshSubset_H
135 const label currentRegion
163 const label patchID = -1
174 const label currentRegion,
175 const label patchID = -1,
176 const bool syncCouples =
true
183 const label patchID = -1,
184 const bool syncPar =
true
198 const label currentRegion,
199 const bool syncCouples =
true
207 const label currentRegion,
210 const bool syncCouples =
true
278 const bool negateIfFlipped =
true
286 const bool negateIfFlipped =
true
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.
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.
labelList patchMap_
Patch mapping array.
autoPtr< fvMesh > fvMeshSubsetPtr_
Subset mesh pointer.
void doCoupledPatches(const bool syncPar, labelList &nCellsUsingFace) const
Adapt nCellsUsingFace for coupled faces becoming 'uncoupled'.
A class for managing temporary objects.
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
void subsetZones()
Create zones for submesh.
void operator=(const fvMeshSubset &)
Disallow default bitwise assignment.
labelList getCellsToRemove(const labelList ®ion, const label currentRegion) const
Helper: extract cells-to-remove from cells-to-keep.
labelList faceMap_
Face mapping array.
const labelList & cellMap() const
Return cell map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fvMeshSubset(const fvMeshSubset &)
Disallow default bitwise copy construct.
void setCellSubset(const labelHashSet &globalCellMap, const label patchID=-1)
Set the subset. Create "oldInternalFaces" patch for exposed.
const fvMesh & baseMesh_
Mesh to subset from.
labelList cellMap_
Cell mapping array.
const labelList & pointMap() const
Return point map.
autoPtr< labelList > faceFlipMapPtr_
const labelList & faceFlipMap() const
Return face map with sign to encode flipped faces.
labelList getExposedFaces(const labelList ®ion, const label currentRegion, const bool syncCouples=true) const
Two step subsetting.
static labelList subset(const label nElems, const labelList &selectedElements, const labelList &subsetMap)
Subset of subset.
bool checkCellSubset() const
Check if subset has been performed.
Mesh data needed to do the Finite Volume discretisation.
Mesh representing a set of points created from polyMesh.
const labelList & patchMap() const
Return patch map.
static void markPoints(const labelList &, Map< label > &)
Mark points in Map.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fvMesh & subMesh() const
Return reference to subset mesh.
labelList pointMap_
Point mapping array.
const fvMesh & baseMesh() const
Original mesh.
Generic GeometricField class.
bool hasSubMesh() const
Have subMesh?
const labelList & faceMap() const
Return face map.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...