Go to the documentation of this file.
38 #ifndef refinementParameters_H
39 #define refinementParameters_H
64 const label maxGlobalCells_;
67 const label maxLocalCells_;
70 const label minRefineCells_;
76 const scalar planarAngle_;
79 const label nBufferLayers_;
99 const Switch allowFreeStandingZoneFaces_;
103 const Switch useTopologicalSnapDetection_;
106 const scalar maxLoadUnbalance_;
108 const Switch handleSnapProblems_;
110 const Switch interfaceRefine_;
112 const label nErodeCellZone_;
114 const label nFilterIter_;
143 return maxGlobalCells_;
149 return maxLocalCells_;
155 return minRefineCells_;
173 return nBufferLayers_;
179 return locationsInMesh_;
191 return locationsOutsideMesh_;
198 return allowFreeStandingZoneFaces_;
205 return useTopologicalSnapDetection_;
211 return maxLoadUnbalance_;
216 return handleSnapProblems_;
222 return interfaceRefine_;
228 return nErodeCellZone_;
255 const bool checkInsideMesh,
bool allowFreeStandingZoneFaces() const
Are zone faces allowed only inbetween different cell zones.
static labelList zonedLocations(const wordList &zonesInMesh)
Extract indices of named locations (so excludes 'keepPoints')
const wordList & zonesInMesh() const
Per area the zone name.
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
bool useTopologicalSnapDetection() const
Use old topology based problem-cell removal.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
label maxGlobalCells() const
Total number of cells.
scalar maxLoadUnbalance() const
Allowed load unbalance.
faceZoneType
What to do with faceZone faces.
A class for handling words, derived from Foam::string.
scalar planarAngle() const
Angle when two intersections are considered to be planar.
label nFilterIter() const
Number of iterations of infill/erosion to get a smoother.
static labelList findCells(const bool checkInsideMesh, const polyMesh &, const pointField &locations)
Checks that cells are in mesh. Returns cells (or -1) they.
Mesh consisting of general polyhedral cells.
List< word > wordList
A List of words.
Generic templated field type.
label maxLocalCells() const
Per processor max number of cells.
label nBufferLayers() const
Number of layers between different refinement levels.
static labelList unzonedLocations(const wordList &zonesInMesh)
Extract indices of unnamed locations ('keepPoints')
Simple container to keep together refinement specific information.
scalar curvature() const
Curvature.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const pointField & locationsOutsideMesh() const
Optional points which are checked to be outside the mesh.
bool interfaceRefine() const
Refine cell with opposite faces with different refinement level.
bool handleSnapProblems() const
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)
label nErodeCellZone() const
Number of iterations of erosion to get a consistent cellZone.
const pointField & locationsInMesh() const
Areas to keep.
label minRefineCells() const
When to stop refining.