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_;
116 const scalar minCellFraction_;
145 return maxGlobalCells_;
151 return maxLocalCells_;
157 return minRefineCells_;
175 return nBufferLayers_;
181 return locationsInMesh_;
193 return locationsOutsideMesh_;
200 return allowFreeStandingZoneFaces_;
207 return useTopologicalSnapDetection_;
213 return maxLoadUnbalance_;
218 return handleSnapProblems_;
224 return interfaceRefine_;
230 return nErodeCellZone_;
244 return minCellFraction_;
264 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)
scalar minCellFraction() const
When are disconnected regions small. Fraction of overall size.
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.