Simple container to keep together refinement specific information. More...
Public Member Functions | |
| refinementParameters (const dictionary &dict, const bool dryRun=false) | |
| Construct from dictionary - new syntax. More... | |
| label | maxGlobalCells () const |
| Total number of cells. More... | |
| label | maxLocalCells () const |
| Per processor max number of cells. More... | |
| label | minRefineCells () const |
| When to stop refining. More... | |
| scalar | curvature () const |
| Curvature. More... | |
| scalar | planarAngle () const |
| Angle when two intersections are considered to be planar. More... | |
| label | nBufferLayers () const |
| Number of layers between different refinement levels. More... | |
| const pointField & | locationsInMesh () const |
| Areas to keep. More... | |
| const wordList & | zonesInMesh () const |
| Per area the zone name. More... | |
| const pointField & | locationsOutsideMesh () const |
| Optional points which are checked to be outside the mesh. More... | |
| bool | allowFreeStandingZoneFaces () const |
| Are zone faces allowed only inbetween different cell zones. More... | |
| bool | useTopologicalSnapDetection () const |
| Use old topology based problem-cell removal. More... | |
| scalar | maxLoadUnbalance () const |
| Allowed load unbalance. More... | |
| bool | handleSnapProblems () const |
| bool | interfaceRefine () const |
| Refine cell with opposite faces with different refinement level. More... | |
| label | nErodeCellZone () const |
| Number of iterations of erosion to get a consistent cellZone. More... | |
| label | nFilterIter () const |
| Number of iterations of infill/erosion to get a smoother. More... | |
| dictionary | getZoneInfo (const word &fzName, surfaceZonesInfo::faceZoneType &faceType) const |
| Get patchInfo and faceType for faceZone. More... | |
| labelList | addCellZonesToMesh (polyMesh &) const |
| Add cellZones to mesh. Return indices of cellZones (or -1) More... | |
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. More... | |
| static labelList | zonedLocations (const wordList &zonesInMesh) |
| Extract indices of named locations (so excludes 'keepPoints') More... | |
| static labelList | unzonedLocations (const wordList &zonesInMesh) |
| Extract indices of unnamed locations ('keepPoints') More... | |
Simple container to keep together refinement specific information.
Definition at line 58 of file refinementParameters.H.
| refinementParameters | ( | const dictionary & | dict, |
| const bool | dryRun = false |
||
| ) |
Construct from dictionary - new syntax.
Definition at line 40 of file refinementParameters.C.
References List< T >::append(), Foam::cos(), Foam::degToRad(), dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, IOWarningInFunction, and nZones.
|
inline |
Total number of cells.
Definition at line 140 of file refinementParameters.H.
|
inline |
Per processor max number of cells.
Definition at line 146 of file refinementParameters.H.
|
inline |
When to stop refining.
Definition at line 152 of file refinementParameters.H.
|
inline |
Curvature.
Definition at line 158 of file refinementParameters.H.
|
inline |
Angle when two intersections are considered to be planar.
Definition at line 164 of file refinementParameters.H.
|
inline |
Number of layers between different refinement levels.
Definition at line 170 of file refinementParameters.H.
|
inline |
Areas to keep.
Definition at line 176 of file refinementParameters.H.
Referenced by snappyVoxelMeshDriver::doRefine(), and snappyRefineDriver::doRefine().
|
inline |
Per area the zone name.
Definition at line 182 of file refinementParameters.H.
|
inline |
Optional points which are checked to be outside the mesh.
Definition at line 188 of file refinementParameters.H.
Referenced by snappyVoxelMeshDriver::doRefine(), and snappyRefineDriver::doRefine().
|
inline |
Are zone faces allowed only inbetween different cell zones.
or also just free standing?
Definition at line 195 of file refinementParameters.H.
|
inline |
Use old topology based problem-cell removal.
(cells with 8 points on surface)
Definition at line 202 of file refinementParameters.H.
|
inline |
Allowed load unbalance.
Definition at line 208 of file refinementParameters.H.
|
inline |
Definition at line 213 of file refinementParameters.H.
|
inline |
Refine cell with opposite faces with different refinement level.
Definition at line 219 of file refinementParameters.H.
|
inline |
Number of iterations of erosion to get a consistent cellZone.
Definition at line 225 of file refinementParameters.H.
|
inline |
Number of iterations of infill/erosion to get a smoother.
blockage
Definition at line 232 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(), dictionary::found(), 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.
|
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(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, mesh, Foam::nl, and reduce().
Referenced by snappyRefineDriver::doRefine().
|
static |
Extract indices of named locations (so excludes 'keepPoints')
Definition at line 269 of file refinementParameters.C.
References forAll.
|
static |
Extract indices of unnamed locations ('keepPoints')
Definition at line 291 of file refinementParameters.C.
References DynamicList< T, SizeMin >::append(), and forAll.