Public Types | |
enum | areaSelectionAlgo { INSIDE , OUTSIDE , INSIDEPOINT , NONE } |
Types of selection of area. More... | |
enum | faceZoneNaming { NOZONE , SINGLE , REGION } |
How to generate faceZone name. More... | |
enum | faceZoneType { INTERNAL , BAFFLE , BOUNDARY } |
What to do with faceZone faces. More... | |
Public Member Functions | |
surfaceZonesInfo (const searchableSurface &surface, const dictionary &surfacesDict, const wordList ®ionNames) | |
Construct from surfaces and dictionary and fully resolved. More... | |
surfaceZonesInfo (const wordList &faceZoneNames, const word &cellZoneNames, const areaSelectionAlgo &zoneInside, const point &zoneInsidePoints, const faceZoneType &faceType) | |
Construct from components. More... | |
surfaceZonesInfo (const surfaceZonesInfo &) | |
Copy constructor. More... | |
autoPtr< surfaceZonesInfo > | clone () const |
Return clone. More... | |
const wordList & | faceZoneNames () const |
Per 'interface' surface : empty or names of faceZones to put. More... | |
const word & | cellZoneName () const |
Per 'interface' surface : empty or name of cellZone to put. More... | |
const areaSelectionAlgo & | zoneInside () const |
const point & | zoneInsidePoint () const |
Get specified inside locations for surfaces with a cellZone. More... | |
const faceZoneType & | faceType () const |
How to handle face of surfaces with a faceZone. More... | |
Static Public Member Functions | |
static labelList | getUnnamedSurfaces (const PtrList< surfaceZonesInfo > &surfList) |
Get indices of unnamed surfaces (surfaces without faceZoneName) More... | |
static labelList | getNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList) |
Get indices of named surfaces (surfaces with faceZoneName) More... | |
static labelList | getStandaloneNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList) |
Get indices of named surfaces without a cellZone. More... | |
static labelList | getClosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces) |
Get indices of surfaces with a cellZone that are closed and. More... | |
static labelList | getUnclosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces) |
Get indices of surfaces with a cellZone that are unclosed. More... | |
static labelList | getAllClosedNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList, const searchableSurfaces &allGeometry, const labelList &surfaces) |
Get indices of surfaces with a cellZone that are closed. More... | |
static labelList | getInsidePointNamedSurfaces (const PtrList< surfaceZonesInfo > &surfList) |
Get indices of surfaces with a cellZone that have 'insidePoint'. More... | |
static label | addCellZone (const word &name, const labelList &addressing, polyMesh &mesh) |
static labelList | addCellZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh) |
static label | addFaceZone (const word &name, const labelList &addressing, const boolList &flipMap, polyMesh &mesh) |
static labelListList | addFaceZonesToMesh (const PtrList< surfaceZonesInfo > &surfList, const labelList &namedSurfaces, polyMesh &mesh) |
Static Public Attributes | |
static const Enum< areaSelectionAlgo > | areaSelectionAlgoNames |
static const Enum< faceZoneNaming > | faceZoneNamingNames |
static const Enum< faceZoneType > | faceZoneTypeNames |
Definition at line 60 of file surfaceZonesInfo.H.
enum areaSelectionAlgo |
Types of selection of area.
Enumerator | |
---|---|
INSIDE | |
OUTSIDE | |
INSIDEPOINT | |
NONE |
Definition at line 65 of file surfaceZonesInfo.H.
enum faceZoneNaming |
How to generate faceZone name.
Enumerator | |
---|---|
NOZONE | |
SINGLE | |
REGION |
Definition at line 76 of file surfaceZonesInfo.H.
enum faceZoneType |
What to do with faceZone faces.
Enumerator | |
---|---|
INTERNAL | |
BAFFLE | |
BOUNDARY |
Definition at line 86 of file surfaceZonesInfo.H.
surfaceZonesInfo | ( | const searchableSurface & | surface, |
const dictionary & | surfacesDict, | ||
const wordList & | regionNames | ||
) |
Construct from surfaces and dictionary and fully resolved.
region names (for optional automatic faceZone naming)
Definition at line 76 of file surfaceZonesInfo.C.
References surfaceZonesInfo::areaSelectionAlgoNames, Foam::endl(), Foam::exit(), surfaceZonesInfo::faceZoneNamingNames, surfaceZonesInfo::faceZoneTypeNames, Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), dictionary::get(), surfaceZonesInfo::INSIDE, surfaceZonesInfo::INSIDEPOINT, IOWarningInFunction, Foam::min(), surfaceZonesInfo::NOZONE, surfaceZonesInfo::OUTSIDE, dictionary::readEntry(), dictionary::readIfPresent(), surfaceZonesInfo::REGION, regionNames, List< T >::setSize(), surfaceZonesInfo::SINGLE, and UList< T >::size().
surfaceZonesInfo | ( | const wordList & | faceZoneNames, |
const word & | cellZoneNames, | ||
const areaSelectionAlgo & | zoneInside, | ||
const point & | zoneInsidePoints, | ||
const faceZoneType & | faceType | ||
) |
Construct from components.
Definition at line 214 of file surfaceZonesInfo.C.
surfaceZonesInfo | ( | const surfaceZonesInfo & | surfZone | ) |
Copy constructor.
Definition at line 231 of file surfaceZonesInfo.C.
|
inline |
Return clone.
Definition at line 152 of file surfaceZonesInfo.H.
References Time::New().
|
inline |
Per 'interface' surface : empty or names of faceZones to put.
faces into (according to region)
Definition at line 164 of file surfaceZonesInfo.H.
|
inline |
Per 'interface' surface : empty or name of cellZone to put.
cells into
Definition at line 171 of file surfaceZonesInfo.H.
|
inline |
Definition at line 176 of file surfaceZonesInfo.H.
|
inline |
Get specified inside locations for surfaces with a cellZone.
Definition at line 182 of file surfaceZonesInfo.H.
|
inline |
How to handle face of surfaces with a faceZone.
Definition at line 188 of file surfaceZonesInfo.H.
|
static |
Get indices of unnamed surfaces (surfaces without faceZoneName)
Definition at line 241 of file surfaceZonesInfo.C.
References forAll, List< T >::setSize(), and UPtrList< T >::size().
Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), snappyRefineDriver::doRefine(), meshRefinement::removeGapCells(), and snappySnapDriver::repatchToSurface().
|
static |
Get indices of named surfaces (surfaces with faceZoneName)
Definition at line 262 of file surfaceZonesInfo.C.
References forAll, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::repatchToSurface(), and meshRefinement::zonify().
|
static |
Get indices of named surfaces without a cellZone.
Definition at line 287 of file surfaceZonesInfo.C.
References forAll, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
|
static |
Get indices of surfaces with a cellZone that are closed and.
have 'inside' or 'outside' selection.
Definition at line 313 of file surfaceZonesInfo.C.
References forAll, surfaceZonesInfo::INSIDE, surfaceZonesInfo::OUTSIDE, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
|
static |
Get indices of surfaces with a cellZone that are unclosed.
Definition at line 345 of file surfaceZonesInfo.C.
References forAll, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
|
static |
Get indices of surfaces with a cellZone that are closed.
Definition at line 372 of file surfaceZonesInfo.C.
References forAll, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
|
static |
Get indices of surfaces with a cellZone that have 'insidePoint'.
section.
Definition at line 400 of file surfaceZonesInfo.C.
References forAll, surfaceZonesInfo::INSIDEPOINT, PtrList< T >::set(), List< T >::setSize(), and UPtrList< T >::size().
Definition at line 426 of file surfaceZonesInfo.C.
References polyMesh::cellZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), mesh, Foam::name(), PtrList< T >::set(), PtrList< T >::setSize(), and UPtrList< T >::size().
Referenced by refinementParameters::addCellZonesToMesh().
|
static |
Definition at line 457 of file surfaceZonesInfo.C.
References Pstream::allGatherList(), polyMesh::cellZones(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, mesh, processorFaPatch::myProcNo(), ZoneMesh< ZoneType, MeshType >::names(), Foam::nl, PstreamBuffers::nProcs(), UPtrList< T >::size(), and UList< T >::size().
Referenced by meshRefinement::zonify().
|
static |
Definition at line 508 of file surfaceZonesInfo.C.
References polyMesh::faceZones(), ZoneMesh< ZoneType, MeshType >::findZoneID(), mesh, Foam::name(), PtrList< T >::set(), PtrList< T >::setSize(), and UPtrList< T >::size().
Referenced by meshRefinement::addFaceZone(), meshRefinement::blockLeakFaces(), and meshRefinement::zonify().
|
static |
Definition at line 611 of file surfaceZonesInfo.C.
References Pstream::allGatherList(), Foam::exit(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, forAll, mesh, processorFaPatch::myProcNo(), ZoneMesh< ZoneType, MeshType >::names(), Foam::nl, PstreamBuffers::nProcs(), List< T >::setSize(), UPtrList< T >::size(), and UList< T >::size().
Referenced by meshRefinement::zonify().
|
static |
Definition at line 73 of file surfaceZonesInfo.H.
Referenced by refinementSurfaces::findInside(), and surfaceZonesInfo::surfaceZonesInfo().
|
static |
Definition at line 83 of file surfaceZonesInfo.H.
Referenced by surfaceZonesInfo::surfaceZonesInfo().
|
static |
Definition at line 93 of file surfaceZonesInfo.H.
Referenced by snappyRefineDriver::addFaceZones(), meshRefinement::createZoneBaffles(), meshRefinement::dupNonManifoldBoundaryPoints(), refinementParameters::getZoneInfo(), and surfaceZonesInfo::surfaceZonesInfo().