33 Foam::cv2DControls::cv2DControls
41 motionControl_(
controlDict.subDict(
"motionControl")),
42 conformationControl_(
controlDict.subDict(
"surfaceConformation")),
44 minCellSize_(motionControl_.get<scalar>(
"minCellSize")),
45 minCellSize2_(
Foam::
sqr(minCellSize_)),
47 maxQuadAngle_(conformationControl_.get<scalar>(
"maxQuadAngle")),
51 motionControl_.get<scalar>(
"nearWallAlignedDist") * minCellSize_
53 nearWallAlignedDist2_(
Foam::
sqr(nearWallAlignedDist_)),
55 insertSurfaceNearestPointPairs_
57 conformationControl_.get<Switch>
59 "insertSurfaceNearestPointPairs"
64 conformationControl_.get<Switch>
69 insertSurfaceNearPointPairs_
71 conformationControl_.get<Switch>
73 "insertSurfaceNearPointPairs"
79 motionControl_.getOrDefault<Switch>(
"objOutput", false)
84 motionControl_.getOrDefault<Switch>(
"meshedSurfaceOutput", false)
89 conformationControl_.get<Switch>(
"randomiseInitialGrid")
93 conformationControl_.get<scalar>(
"randomPerturbation")
96 maxBoundaryConformingIter_
98 conformationControl_.get<label>(
"maxBoundaryConformingIter")
110 conformationControl_.get<scalar>(
"minEdgeLenCoeff") * minCellSize_
112 minEdgeLen2_(
Foam::
sqr(minEdgeLen_)),
116 conformationControl_.get<scalar>(
"maxNotchLenCoeff") * minCellSize_
118 maxNotchLen2_(
Foam::
sqr(maxNotchLen_)),
122 conformationControl_.get<scalar>(
"minNearPointDistCoeff")*minCellSize_
124 minNearPointDist2_(
Foam::
sqr(minNearPointDist_)),
128 conformationControl_.get<scalar>(
"pointPairDistanceCoeff")*minCellSize_
137 os.indentLevel() = 1;
141 os <<
nl <<
"Outputting CV2D Mesher controls:" <<
nl
143 <<
indent <<
"minCellSize2_ : " << minCellSize2_ <<
nl
144 <<
indent <<
"span_ / span2_ : " << span_ <<
" / " << span2_ <<
nl
145 <<
indent <<
"maxNotchLen2_ : " << maxNotchLen2_ <<
nl
146 <<
indent <<
"minNearPointDist2_ : " << minNearPointDist2_ <<
nl
147 <<
indent <<
"nearWallAlignedDist2_ : " << nearWallAlignedDist2_ <<
nl
148 <<
indent <<
"ppDist_ : " << ppDist_ <<
nl
149 <<
indent <<
"minEdgeLen2_ : " << minEdgeLen2_ <<
nl