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 &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 ®ions, const label patchID=-1, const bool syncPar=true) | |
const fvMesh & | baseMesh () const noexcept |
const fvMesh & | mesh () const noexcept |
bool | hasSubMesh () const noexcept |
const fvMesh & | subMesh () const |
fvMesh & | subMesh () |
const labelList & | pointMap () const |
const labelList & | faceMap () const |
const labelList & | faceFlipMap () const |
const labelList & | cellMap () const |
const labelList & | patchMap () 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 ®ions, 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 ®ions, 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 ®ions, 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 ®ion, 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 ®ions, 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 |
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
Definition at line 69 of file fvMeshSubset.H.
|
explicit |
Definition at line 467 of file fvMeshSubset.C.
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 | ( | 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 | ( | 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 | ( | 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.
|
inlinenoexcept |
Definition at line 23 of file fvMeshSubsetI.H.
Referenced by zoneSubSet::baseMesh(), vtkWrite::writeVolFields(), and ensightWrite::writeVolFields().
|
inlinenoexcept |
Definition at line 29 of file fvMeshSubsetI.H.
|
inlinenoexcept |
Definition at line 35 of file fvMeshSubsetI.H.
References bool.
Referenced by fvMeshSubsetProxy::interpolate(), and fvMeshSubsetProxy::interpolateInternal().
|
inline |
Definition at line 41 of file fvMeshSubsetI.H.
Referenced by structuredDecomp::decompose(), fvMeshDistribute::distribute(), fvMeshSubsetProxy::mesh(), structuredRenumber::renumber(), and momentumError::write().
|
inline |
|
inline |
Definition at line 57 of file fvMeshSubsetI.H.
Referenced by fvMeshDistribute::distribute().
|
inline |
Definition at line 65 of file fvMeshSubsetI.H.
Referenced by fvMeshDistribute::distribute().
|
inline |
Definition at line 73 of file fvMeshSubsetI.H.
Referenced by fvMeshDistribute::distribute().
|
inline |
Definition at line 84 of file fvMeshSubsetI.H.
Referenced by structuredDecomp::decompose(), fvMeshDistribute::distribute(), and structuredRenumber::renumber().
|
inline |
Definition at line 92 of file fvMeshSubsetI.H.
Referenced by fvMeshDistribute::distribute().
void clear | ( | ) |
Definition at line 538 of file fvMeshSubset.C.
void setCellSubset | ( | const bitSet & | selectedCells, |
const label | patchID = -1 , |
||
const bool | syncPar = true |
||
) |
Definition at line 551 of file fvMeshSubset.C.
References Foam::abort(), polyMesh::boundaryMesh(), primitiveMesh::cells(), clear(), PtrList::clone(), Foam::endl(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), forAll, Pstream::gatherList(), Foam::identity(), primitiveMesh::isInternalFace(), Foam::labelMax, Pstream::listCombineGather(), Pstream::listCombineScatter(), UPstream::myProcNo(), Foam::name(), polyBoundaryMesh::names(), autoPtr::New(), primitiveMesh::nInternalFaces(), IOobject::NO_READ, IOobject::NO_WRITE, UPstream::nProcs(), UPstream::parRun(), patchID, patchNames(), polyMesh::points(), Foam::reduce(), List::resize(), Pstream::scatterList(), List::setSize(), bitSet::sortedToc(), polyPatch::start(), bitSet::test(), timeName, and Foam::Zero.
Referenced by fvMeshSubset::setLargeCellSubset().
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.
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.
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.
Foam::labelList getExposedFaces | ( | const bitSet & | selectedCells, |
const bool | syncCouples = true |
||
) | const |
Definition at line 1238 of file fvMeshSubset.C.
References removeCells::getExposedFaces().
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().
void setCellSubset | ( | const bitSet & | selectedCells, |
const labelList & | exposedFaces, | ||
const labelList & | patchIDs, | ||
const bool | syncCouples = true |
||
) |
Definition at line 1263 of file fvMeshSubset.C.
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.
|
static |
Referenced by momentumError::calcMomentError(), momentumError::divDevRhoReff(), and fvMeshSubsetProxy::interpolate().
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate | ( | const GeometricField< Type, fvPatchField, volMesh > & | , |
const bool | allowUnmapped = false |
||
) | const |
|
static |
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > interpolate | ( | const GeometricField< Type, fvsPatchField, surfaceMesh > & | , |
const bool | allowUnmapped = false |
||
) | const |
|
static |
tmp<GeometricField<Type, pointPatchField, pointMesh> > interpolate | ( | const GeometricField< Type, pointPatchField, pointMesh > & | , |
const bool | allowUnmapped = false |
||
) | const |
|
static |
tmp<DimensionedField<Type, volMesh> > interpolate | ( | const DimensionedField< Type, volMesh > & | , |
const bool | allowUnmapped = false |
||
) | const |
|
inline |
Definition at line 428 of file fvMeshSubset.H.
References Foam::Info, Foam::nl, patchID, and fvMeshSubset::setCellSubset().
|
inline |
Definition at line 451 of file fvMeshSubset.H.
References Foam::Info, Foam::nl, patchID, and fvMeshSubset::setCellSubset().
|
inline |
Definition at line 469 of file fvMeshSubset.H.
References Foam::Info, Foam::nl, and fvMeshSubset::setCellSubset().
|
static |
Definition at line 157 of file fvMeshSubset.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.