31 Foam::cv2DControls::cv2DControls
39 motionControl_(controlDict.subDict(
"motionControl")),
40 conformationControl_(controlDict.subDict(
"surfaceConformation")),
43 minCellSize2_(
Foam::
sqr(minCellSize_)),
51 nearWallAlignedDist2_(
Foam::
sqr(nearWallAlignedDist_)),
53 insertSurfaceNearestPointPairs_
55 conformationControl_.
lookup(
"insertSurfaceNearestPointPairs")
57 mirrorPoints_(conformationControl_.
lookup(
"mirrorPoints")),
58 insertSurfaceNearPointPairs_
60 conformationControl_.
lookup(
"insertSurfaceNearPointPairs")
63 objOutput_(motionControl_.lookupOrDefault<Switch>(
"objOutput", false)),
67 motionControl_.lookupOrDefault<Switch>(
"meshedSurfaceOutput", false)
70 randomiseInitialGrid_(conformationControl_.
lookup(
"randomiseInitialGrid")),
76 maxBoundaryConformingIter_
93 minEdgeLen2_(
Foam::
sqr(minEdgeLen_)),
100 maxNotchLen2_(
Foam::
sqr(maxNotchLen_)),
107 minNearPointDist2_(
Foam::
sqr(minNearPointDist_)),
127 os.indentLevel() = 1;
131 os <<
nl <<
"Outputting CV2D Mesher controls:" <<
nl 133 <<
indent <<
"minCellSize2_ : " << minCellSize2_ <<
nl 134 <<
indent <<
"span_ / span2_ : " << span_ <<
" / " << span2_ <<
nl 135 <<
indent <<
"maxNotchLen2_ : " << maxNotchLen2_ <<
nl 136 <<
indent <<
"minNearPointDist2_ : " << minNearPointDist2_ <<
nl 137 <<
indent <<
"nearWallAlignedDist2_ : " << nearWallAlignedDist2_ <<
nl 138 <<
indent <<
"ppDist_ : " << ppDist_ <<
nl 139 <<
indent <<
"minEdgeLen2_ : " << minEdgeLen2_ <<
nl
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
label readLabel(Istream &is)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & operator<<(Ostream &, const ensightPart &)
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual Ostream & write(const token &)=0
Write next token to stream.
void write(Ostream &os) const
Write controls to output stream.
IOstream & scientific(IOstream &io)