43 #ifndef meshRefinement_H
44 #define meshRefinement_H
62 class mapDistributePolyMesh;
63 class decompositionMethod;
64 class refinementSurfaces;
67 class featureEdgeMesh;
68 class fvMeshDistribute;
69 class searchableSurface;
110 const scalar mergeDistance_;
113 const bool overwrite_;
116 const word oldInstance_;
142 static void updateList
150 template<
class GeoField>
151 static void addPatchFields(
fvMesh&,
const word& patchFieldType);
154 template<
class GeoField>
166 void calcNeighbourData
173 void updateIntersections(
const labelList& changedFaces);
193 const label exposedPatchI
201 void getCoupledRegionMaster
211 void calcLocalRegions
224 static label getShiftedRegion
229 const label globalRegion
233 static void addUnique(
const label,
labelList&);
236 void calcRegionRegions
250 static bool markForRefine
252 const label markValue,
253 const label nAllowRefine,
260 label markFeatureRefinement
262 const point& keepPoint,
265 const label nAllowRefine,
272 label markInternalRefinement
274 const label nAllowRefine,
287 label markSurfaceRefinement
289 const label nAllowRefine,
301 const scalar curvature,
302 const label nAllowRefine,
303 const label surfaceLevel,
304 const vector& surfaceNormal,
316 label markSurfaceCurvatureRefinement
318 const scalar curvature,
319 const label nAllowRefine,
329 void getBafflePatches
352 const label ownPatch,
353 const label neiPatch,
361 void markBoundaryFace
388 const scalar minFaceArea,
389 const scalar maxNonOrtho,
396 const scalar volFraction,
406 const bool removeEdgeConnectedCells,
431 void findCellZoneGeometric
440 bool calcRegionToZone
442 const label surfZoneI,
443 const label ownRegion,
444 const label neiRegion,
451 void findCellZoneTopo
453 const point& keepPoint,
459 void makeConsistentFaceIndex
507 return mergeDistance_;
543 return surfaceIndex_;
548 return surfaceIndex_;
557 return userFaceData_;
562 return userFaceData_;
590 const bool keepZoneFaces,
591 const bool keepBaffles,
631 const point& keepPoint,
632 const scalar curvature,
637 const bool featureRefinement,
638 const bool internalRefinement,
639 const bool surfaceRefinement,
640 const bool curvatureRefinement,
641 const label maxGlobalCells,
642 const label maxLocalCells
655 const scalar maxLoadUnbalance
665 const scalar maxLoadUnbalance
674 const bool handleSnapProblems,
675 const bool removeEdgeConnectedCells,
677 const bool mergeFreeStanding,
681 const point& keepPoint
688 const label nBufferLayers,
690 const point& keepPoint
718 const point& keepPoint,
719 const bool allowFreeStandingZoneFaces
778 const scalar concaveCos,