37 motionControl_(controlDict.subDict(
"motionControl")),
38 conformationControl_(controlDict.subDict(
"surfaceConformation")),
40 minCellSize_(motionControl_.
lookup<scalar>(
"minCellSize")),
41 minCellSize2_(
Foam::
sqr(minCellSize_)),
43 maxQuadAngle_(conformationControl_.
lookup<scalar>(
"maxQuadAngle")),
47 motionControl_.
lookup<scalar>(
"nearWallAlignedDist")*minCellSize_
49 nearWallAlignedDist2_(
Foam::
sqr(nearWallAlignedDist_)),
51 insertSurfaceNearestPointPairs_
53 conformationControl_.
lookup(
"insertSurfaceNearestPointPairs")
55 mirrorPoints_(conformationControl_.
lookup(
"mirrorPoints")),
56 insertSurfaceNearPointPairs_
58 conformationControl_.
lookup(
"insertSurfaceNearPointPairs")
61 objOutput_(motionControl_.lookupOrDefault<Switch>(
"objOutput", false)),
65 motionControl_.lookupOrDefault<Switch>(
"meshedSurfaceOutput", false)
68 randomiseInitialGrid_(conformationControl_.
lookup(
"randomiseInitialGrid")),
71 conformationControl_.
lookup<scalar>(
"randomPerturbation")
74 maxBoundaryConformingIter_
76 conformationControl_.
lookup<
label>(
"maxBoundaryConformingIter")
88 conformationControl_.
lookup<scalar>(
"minEdgeLenCoeff")
91 minEdgeLen2_(
Foam::
sqr(minEdgeLen_)),
95 conformationControl_.
lookup<scalar>(
"maxNotchLenCoeff")
98 maxNotchLen2_(
Foam::
sqr(maxNotchLen_)),
102 conformationControl_.
lookup<scalar>(
"minNearPointDistCoeff")
105 minNearPointDist2_(
Foam::
sqr(minNearPointDist_)),
109 conformationControl_.
lookup<scalar>(
"pointPairDistanceCoeff")
125 os.indentLevel() = 1;
129 os <<
nl <<
"Outputting CV2D Mesher controls:" <<
nl 131 <<
indent <<
"minCellSize2_ : " << minCellSize2_ <<
nl 132 <<
indent <<
"span_ / span2_ : " << span_ <<
" / " << span2_ <<
nl 133 <<
indent <<
"maxNotchLen2_ : " << maxNotchLen2_ <<
nl 134 <<
indent <<
"minNearPointDist2_ : " << minNearPointDist2_ <<
nl 135 <<
indent <<
"nearWallAlignedDist2_ : " << nearWallAlignedDist2_ <<
nl 136 <<
indent <<
"ppDist_ : " << ppDist_ <<
nl 137 <<
indent <<
"minEdgeLen2_ : " << minEdgeLen2_ <<
nl
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & indent(Ostream &os)
Indent stream.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
~cv2DControls()
Destructor.
stressControl lookup("compactNormalStress") >> compactNormalStress
void write(Ostream &os) const
Write controls to output stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
cv2DControls(const dictionary &controlDict, const boundBox &bb)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & operator<<(Ostream &, const ensightPart &)
dimensioned< scalar > mag(const dimensioned< Type > &)
IOstream & scientific(IOstream &io)