Extends Foam::fvMeshSubset with two-step subsetting (uses polyTopoChange modification). More...
Public Member Functions | |
labelList | getExposedFaces (const bitSet &selectedCells, const bool syncPar=true) const |
Get labels of exposed faces. More... | |
labelList | getExposedFaces (const label regioni, const labelUList ®ions, const bool syncPar=true) const |
Get labels of exposed faces. More... | |
void | setCellSubset (const bitSet &selectedCells, const labelList &exposedFaces, const labelList &patchIDs, const bool syncPar=true) |
For every exposed face (from above getExposedFaces) More... | |
void | setCellSubset (const label regioni, const labelList ®ions, const labelList &exposedFaces, const labelList &patchIDs, const bool syncPar=true) |
For every exposed face (from above getExposedFaces) More... | |
fvMeshSubset (const fvMeshSubset &)=delete | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh) | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh, const Foam::zero) | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh, const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh, const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh, const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Inherit constructors from fvMeshSubset. More... | |
fvMeshSubset (const fvMesh &baseMesh, const label regioni, const labelUList ®ions, const label patchID=-1, const bool syncPar=true) | |
Inherit constructors from fvMeshSubset. More... | |
void | setCellSubset (const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Inherit all one-step subsetting. More... | |
void | setCellSubset (const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true) |
Inherit all one-step subsetting. More... | |
void | setCellSubset (const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Inherit all one-step subsetting. More... | |
void | setCellSubset (const label regioni, const labelUList ®ions, const label patchID=-1, const bool syncPar=true) |
Inherit all one-step subsetting. More... | |
Public Member Functions inherited from fvMeshSubset | |
fvMeshSubset (const fvMesh &baseMesh) | |
Construct using the entire mesh (no subset) More... | |
fvMeshSubset (const fvMesh &baseMesh, const Foam::zero) | |
Construct a zero-sized subset mesh, non-processor patches only. More... | |
fvMeshSubset (const fvMesh &baseMesh, const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Construct for a cell-subset of the given mesh. More... | |
fvMeshSubset (const fvMesh &baseMesh, const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Construct for a cell-subset of the given mesh. More... | |
fvMeshSubset (const fvMesh &baseMesh, const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true) | |
Construct for a cell-subset of the given mesh. More... | |
fvMeshSubset (const fvMesh &baseMesh, const label regioni, const labelUList ®ions, const label patchID=-1, const bool syncPar=true) | |
Construct for a cell-subset of the given mesh. More... | |
const fvMesh & | baseMesh () const noexcept |
Original mesh. More... | |
const fvMesh & | mesh () const noexcept |
Return baseMesh or subMesh, depending on the current state. More... | |
bool | hasSubMesh () const noexcept |
Have subMesh? More... | |
const fvMesh & | subMesh () const |
Return reference to subset mesh. More... | |
fvMesh & | subMesh () |
Return reference to subset mesh. More... | |
const labelList & | pointMap () const |
Return point map. More... | |
const labelList & | faceMap () const |
Return face map. More... | |
const labelList & | faceFlipMap () const |
Return face map with sign to encode flipped faces. More... | |
const labelList & | cellMap () const |
Return cell map. More... | |
const labelList & | patchMap () 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... | |
void | reset (autoPtr< fvMesh > &&subMeshPtr, labelList &&pointMap, labelList &&faceMap, labelList &&cellMap, labelList &&patchMap) |
Reset from components. More... | |
void | reset (const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. More... | |
void | reset (const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. More... | |
void | reset (const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. More... | |
void | reset (const label regioni, const labelUList ®ions, const label patchID=-1, const bool syncCouples=true) |
Use the cells of cells corresponding to where region == regioni. More... | |
void | setCellSubset (const bitSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. Same as reset() More... | |
void | setCellSubset (const labelUList &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. Same as reset() More... | |
void | setCellSubset (const labelHashSet &selectedCells, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. Same as reset() More... | |
void | setCellSubset (const label regioni, const labelUList ®ions, const label patchID=-1, const bool syncPar=true) |
Use the specified subset of cells. Same as reset() More... | |
template<class Type > | |
tmp< DimensionedField< Type, volMesh > > | interpolate (const DimensionedField< Type, volMesh > &, const bool allowUnmapped=false) const |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const bool allowUnmapped=false) const |
Map volume field. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &, const bool allowUnmapped=false) const |
Map surface field. More... | |
template<class Type > | |
tmp< GeometricField< Type, pointPatchField, pointMesh > > | interpolate (const GeometricField< Type, pointPatchField, pointMesh > &, const bool allowUnmapped=false) const |
Map point field. More... | |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &vf, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap, const bool allowUnmapped) |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &vf, const bool allowUnmapped) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > | interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &vf, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap) |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvsPatchField, Foam::surfaceMesh > > | interpolate (const GeometricField< Type, fvsPatchField, surfaceMesh > &sf, const bool allowUnmapped) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::pointPatchField, Foam::pointMesh > > | interpolate (const GeometricField< Type, pointPatchField, pointMesh > &vf, const pointMesh &sMesh, const labelUList &patchMap, const labelUList &pointMap) |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::pointPatchField, Foam::pointMesh > > | interpolate (const GeometricField< Type, pointPatchField, pointMesh > &sf, const bool allowUnmapped) const |
template<class Type > | |
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > | interpolate (const DimensionedField< Type, volMesh > &df, const fvMesh &sMesh, const labelUList &cellMap) |
template<class Type > | |
Foam::tmp< Foam::DimensionedField< Type, Foam::volMesh > > | interpolate (const DimensionedField< Type, volMesh > &df, const bool allowUnmapped) const |
Additional Inherited Members | |
Static Public Member Functions inherited from fvMeshSubset | |
template<class Type > | |
static tmp< DimensionedField< Type, volMesh > > | interpolate (const DimensionedField< Type, volMesh > &, const fvMesh &sMesh, const labelUList &cellMap) |
Map volume internal (dimensioned) field. More... | |
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) |
Map volume field. More... | |
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) |
Map surface field. More... | |
template<class Type > | |
static tmp< GeometricField< Type, pointPatchField, pointMesh > > | interpolate (const GeometricField< Type, pointPatchField, pointMesh > &, const pointMesh &sMesh, const labelUList &patchMap, const labelUList &pointMap) |
Map point field. More... | |
Static Public Attributes inherited from fvMeshSubset | |
static word | exposedPatchName |
Name for exposed internal faces (default: oldInternalFaces) More... | |
Protected Member Functions inherited from fvMeshSubset | |
bool | checkHasSubMesh () const |
FatalError if subset has not been performed. More... | |
fvMeshSubset (const fvMeshSubset &)=delete | |
No copy construct. More... | |
void | operator= (const fvMeshSubset &)=delete |
No copy assignment. More... | |
Extends Foam::fvMeshSubset with two-step subsetting (uses polyTopoChange modification).
Definition at line 52 of file fvMeshSubsetter.H.
Foam::labelList getExposedFaces | ( | const bitSet & | selectedCells, |
const bool | syncPar = true |
||
) | const |
Get labels of exposed faces.
These are
Definition at line 135 of file fvMeshSubsetter.C.
References removeCells::getExposedFaces(), and Foam::invertCellSelection().
Foam::labelList getExposedFaces | ( | const label | regioni, |
const labelUList & | regions, | ||
const bool | syncPar = true |
||
) | const |
Get labels of exposed faces.
These are
Definition at line 149 of file fvMeshSubsetter.C.
References removeCells::getExposedFaces(), and Foam::invertCellSelection().
void setCellSubset | ( | const bitSet & | selectedCells, |
const labelList & | exposedFaces, | ||
const labelList & | patchIDs, | ||
const bool | syncPar = true |
||
) |
For every exposed face (from above getExposedFaces)
Uses supplied (existing!) patches
Definition at line 164 of file fvMeshSubsetter.C.
References Foam::invertCellSelection().
void setCellSubset | ( | const label | regioni, |
const labelList & | regions, | ||
const labelList & | exposedFaces, | ||
const labelList & | patchIDs, | ||
const bool | syncPar = true |
||
) |
For every exposed face (from above getExposedFaces)
Uses supplied (existing!) patches
Definition at line 182 of file fvMeshSubsetter.C.
References Foam::invertCellSelection().
|
delete |
Inherit constructors from fvMeshSubset.
|
explicit |
Inherit constructors from fvMeshSubset.
Definition at line 146 of file fvMeshSubset.C.
fvMeshSubset | ( | const fvMesh & | baseMesh, |
const Foam::zero | |||
) |
Inherit constructors from fvMeshSubset.
Definition at line 149 of file fvMeshSubset.C.
fvMeshSubset | ( | const fvMesh & | baseMesh, |
const bitSet & | selectedCells, | ||
const label | patchID = -1 , |
||
const bool | syncPar = true |
||
) |
Inherit constructors from fvMeshSubset.
Definition at line 153 of file fvMeshSubset.C.
fvMeshSubset | ( | const fvMesh & | baseMesh, |
const labelUList & | selectedCells, | ||
const label | patchID = -1 , |
||
const bool | syncPar = true |
||
) |
Inherit constructors from fvMeshSubset.
Definition at line 163 of file fvMeshSubset.C.
fvMeshSubset | ( | const fvMesh & | baseMesh, |
const labelHashSet & | selectedCells, | ||
const label | patchID = -1 , |
||
const bool | syncPar = true |
||
) |
Inherit constructors from fvMeshSubset.
Definition at line 173 of file fvMeshSubset.C.
References UPstream::nonBlocking.
fvMeshSubset | ( | const fvMesh & | baseMesh, |
const label | regioni, | ||
const labelUList & | regions, | ||
const label | patchID = -1 , |
||
const bool | syncPar = true |
||
) |
Inherit constructors from fvMeshSubset.
Definition at line 183 of file fvMeshSubset.C.
References UList< T >::empty(), and UList< T >::size().
|
inline |
Inherit all one-step subsetting.
Definition at line 294 of file fvMeshSubset.H.
|
inline |
Inherit all one-step subsetting.
Definition at line 305 of file fvMeshSubset.H.
|
inline |
Inherit all one-step subsetting.
Definition at line 316 of file fvMeshSubset.H.
|
inline |
Inherit all one-step subsetting.
Definition at line 327 of file fvMeshSubset.H.