33 Foam::cv2DControls::cv2DControls
39 motionControl_(
controlDict.subDict(
"motionControl")),
40 conformationControl_(
controlDict.subDict(
"surfaceConformation")),
42 minCellSize_(motionControl_.
get<scalar>(
"minCellSize")),
43 minCellSize2_(
Foam::
sqr(minCellSize_)),
45 maxQuadAngle_(conformationControl_.
get<scalar>(
"maxQuadAngle")),
49 motionControl_.
get<scalar>(
"nearWallAlignedDist") * minCellSize_
51 nearWallAlignedDist2_(
Foam::
sqr(nearWallAlignedDist_)),
53 insertSurfaceNearestPointPairs_
55 conformationControl_.
get<Switch>
57 "insertSurfaceNearestPointPairs" 62 conformationControl_.
get<Switch>
67 insertSurfaceNearPointPairs_
69 conformationControl_.
get<Switch>
71 "insertSurfaceNearPointPairs" 77 motionControl_.getOrDefault<Switch>(
"objOutput", false)
82 motionControl_.getOrDefault<Switch>(
"meshedSurfaceOutput", false)
87 conformationControl_.
get<Switch>(
"randomiseInitialGrid")
91 conformationControl_.
get<scalar>(
"randomPerturbation")
94 maxBoundaryConformingIter_
96 conformationControl_.
get<label>(
"maxBoundaryConformingIter")
108 conformationControl_.
get<scalar>(
"minEdgeLenCoeff") * minCellSize_
110 minEdgeLen2_(
Foam::
sqr(minEdgeLen_)),
114 conformationControl_.
get<scalar>(
"maxNotchLenCoeff") * minCellSize_
116 maxNotchLen2_(
Foam::
sqr(maxNotchLen_)),
120 conformationControl_.
get<scalar>(
"minNearPointDistCoeff")*minCellSize_
122 minNearPointDist2_(
Foam::
sqr(minNearPointDist_)),
126 conformationControl_.
get<scalar>(
"pointPairDistanceCoeff")*minCellSize_
139 os <<
nl <<
"Outputting CV2D Mesher controls:" <<
nl 141 <<
indent <<
"minCellSize2_ : " << minCellSize2_ <<
nl 142 <<
indent <<
"span_ / span2_ : " << span_ <<
" / " << span2_ <<
nl 143 <<
indent <<
"maxNotchLen2_ : " << maxNotchLen2_ <<
nl 144 <<
indent <<
"minNearPointDist2_ : " << minNearPointDist2_ <<
nl 145 <<
indent <<
"nearWallAlignedDist2_ : " << nearWallAlignedDist2_ <<
nl 146 <<
indent <<
"ppDist_ : " << ppDist_ <<
nl 147 <<
indent <<
"minEdgeLen2_ : " << minEdgeLen2_ <<
nl List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
virtual ios_base::fmtflags flags() const override
Get stream flags.
Begin block [isseparator].
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual int precision() const override
Get precision of output field.
void write(Ostream &os) const
Write controls to output stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
runTime controlDict().readEntry("adjustTimeStep"
The central control dictionary, the contents of which are either taken directly from the FOAM_CONTROL...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
unsigned short indentLevel() const noexcept
Return the indent level.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
IOstream & scientific(IOstream &io)