Simple container to keep together refinement specific information. More...
#include <refinementParameters.H>
Public Member Functions | |
| refinementParameters (const dictionary &dict, const bool dryRun=false) | |
| Construct from dictionary - new syntax. | |
| label | maxGlobalCells () const |
| Total number of cells. | |
| label | maxLocalCells () const |
| Per processor max number of cells. | |
| label | minRefineCells () const |
| When to stop refining. | |
| scalar | curvature () const |
| Curvature. | |
| scalar | planarAngle () const |
| Angle when two intersections are considered to be planar. | |
| label | nBufferLayers () const |
| Number of layers between different refinement levels. | |
| const pointField & | locationsInMesh () const |
| Areas to keep. | |
| const wordList & | zonesInMesh () const |
| Per area the zone name. | |
| const pointField & | locationsOutsideMesh () const |
| Optional points which are checked to be outside the mesh. | |
| bool | useLeakClosure () const |
| Whether to attempt to close any 'leak' between. | |
| bool | allowFreeStandingZoneFaces () const |
| Are zone faces allowed only inbetween different cell zones. | |
| bool | useTopologicalSnapDetection () const |
| Use old topology based problem-cell removal. | |
| scalar | maxLoadUnbalance () const |
| Allowed load unbalance. | |
| label | maxCellUnbalance () const |
| Trigger cell count to start balancing. | |
| bool | handleSnapProblems () const |
| bool | interfaceRefine () const |
| Refine cell with opposite faces with different refinement level. | |
| label | nErodeCellZone () const |
| Number of iterations of erosion to get a consistent cellZone. | |
| label | nFilterIter () const |
| Number of iterations of infill/erosion to get a smoother. | |
| scalar | minCellFraction () const |
| When are disconnected regions small. Fraction of overall size. | |
| label | nMinCells () const |
| When are disconnected regions small. Absolute number of cells. | |
| bool | balanceAtEnd () const |
| Force final balancing after castallation. | |
| dictionary | getZoneInfo (const word &fzName, surfaceZonesInfo::faceZoneType &faceType) const |
| Get patchInfo and faceType for faceZone. | |
| labelList | addCellZonesToMesh (polyMesh &) const |
| Add cellZones to mesh. Return indices of cellZones (or -1). | |
Static Public Member Functions | |
| static labelList | findCells (const bool checkInsideMesh, const polyMesh &, const pointField &locations) |
| Checks that cells are in mesh. Returns cells (or -1) they. | |
| static labelList | zonedLocations (const wordList &zonesInMesh) |
| Extract indices of named locations (so excludes 'keepPoints'). | |
| static labelList | unzonedLocations (const wordList &zonesInMesh) |
| Extract indices of unnamed locations ('keepPoints'). | |
| static List< pointField > | zonePoints (const pointField &locationsInMesh, const wordList &zonesInMesh, const pointField &locationsOutsideMesh) |
| Helper: per zone (entry in zonesInMesh) the locations with. | |
Simple container to keep together refinement specific information.
Definition at line 54 of file refinementParameters.H.
| refinementParameters | ( | const dictionary & | dict, |
| const bool | dryRun = false ) |
Construct from dictionary - new syntax.
Definition at line 32 of file refinementParameters.C.
References dict.
|
inline |
Total number of cells.
Definition at line 191 of file refinementParameters.H.
|
inline |
Per processor max number of cells.
Definition at line 199 of file refinementParameters.H.
|
inline |
When to stop refining.
Definition at line 207 of file refinementParameters.H.
|
inline |
Curvature.
Definition at line 215 of file refinementParameters.H.
|
inline |
Angle when two intersections are considered to be planar.
Definition at line 223 of file refinementParameters.H.
|
inline |
Number of layers between different refinement levels.
Definition at line 231 of file refinementParameters.H.
|
inline |
Areas to keep.
Definition at line 239 of file refinementParameters.H.
Referenced by snappyRefineDriver::doRefine(), snappyVoxelMeshDriver::doRefine(), and zonePoints().

|
inline |
Per area the zone name.
Definition at line 247 of file refinementParameters.H.
Referenced by snappyRefineDriver::doRefine(), unzonedLocations(), zonedLocations(), and zonePoints().

|
inline |
Optional points which are checked to be outside the mesh.
Definition at line 255 of file refinementParameters.H.
Referenced by snappyRefineDriver::doRefine(), snappyVoxelMeshDriver::doRefine(), and zonePoints().

|
inline |
Whether to attempt to close any 'leak' between.
locationsInsideMesh and locationsOutsideMesh. Default is false (dump path and exit with error) (see also refinementSurfaces::leakLevel to force surfaces to be checked for leaks early-on in the refinement)
Definition at line 268 of file refinementParameters.H.
|
inline |
Are zone faces allowed only inbetween different cell zones.
or also just free standing?
Definition at line 278 of file refinementParameters.H.
|
inline |
Use old topology based problem-cell removal.
(cells with 8 points on surface)
Definition at line 288 of file refinementParameters.H.
|
inline |
Allowed load unbalance.
Definition at line 296 of file refinementParameters.H.
|
inline |
Trigger cell count to start balancing.
Definition at line 304 of file refinementParameters.H.
|
inline |
Definition at line 309 of file refinementParameters.H.
|
inline |
Refine cell with opposite faces with different refinement level.
Definition at line 317 of file refinementParameters.H.
|
inline |
Number of iterations of erosion to get a consistent cellZone.
Definition at line 325 of file refinementParameters.H.
|
inline |
Number of iterations of infill/erosion to get a smoother.
blockage
Definition at line 335 of file refinementParameters.H.
|
inline |
When are disconnected regions small. Fraction of overall size.
of a zone or background. Default 0.
Definition at line 345 of file refinementParameters.H.
Referenced by snappyRefineDriver::doRefine().

|
inline |
When are disconnected regions small. Absolute number of cells.
in a zone or background. Default 0.
Definition at line 355 of file refinementParameters.H.
Referenced by snappyRefineDriver::doRefine().

|
inline |
Force final balancing after castallation.
Definition at line 363 of file refinementParameters.H.
| Foam::dictionary getZoneInfo | ( | const word & | fzName, |
| surfaceZonesInfo::faceZoneType & | faceType ) const |
Get patchInfo and faceType for faceZone.
Definition at line 158 of file refinementParameters.C.
References dictionary::add(), surfaceZonesInfo::faceZoneTypeNames, dictionary::found(), surfaceZonesInfo::INTERNAL, dictionary::readIfPresent(), and dictionary::subDict().
Referenced by snappyRefineDriver::addFaceZones().


| Foam::labelList addCellZonesToMesh | ( | polyMesh & | mesh | ) | const |
Add cellZones to mesh. Return indices of cellZones (or -1).
Definition at line 187 of file refinementParameters.C.
References surfaceZonesInfo::addCellZone(), forAll, mesh, and zoneIDs.

|
static |
Checks that cells are in mesh. Returns cells (or -1) they.
are in.
Definition at line 209 of file refinementParameters.C.
References Foam::endl(), Foam::exit(), polyMesh::FACE_DIAG_TRIS, Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, globalIndex::isLocal(), mesh, Foam::nl, Foam::reduce(), UList< T >::size(), globalIndex::toGlobal(), globalIndex::toLocal(), and globalIndex::whichProcID().
Referenced by snappyRefineDriver::doRefine().


|
static |
Extract indices of named locations (so excludes 'keepPoints').
Definition at line 269 of file refinementParameters.C.
References DynamicList< T, SizeMin >::append(), forAll, and zonesInMesh().

|
static |
Extract indices of unnamed locations ('keepPoints').
Definition at line 287 of file refinementParameters.C.
References DynamicList< T, SizeMin >::append(), forAll, and zonesInMesh().

|
static |
Helper: per zone (entry in zonesInMesh) the locations with.
additionally locationsOutsideMesh as last. Used in hole filling
Definition at line 305 of file refinementParameters.C.
References DynamicList< T, SizeMin >::append(), UList< T >::find(), forAll, locationsInMesh(), locationsOutsideMesh(), Foam::name(), name, UList< T >::size(), and zonesInMesh().
Referenced by meshRefinement::blockLeakFaces().

