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_
137 os.
flags(ios_base::scientific);
139 os <<
nl <<
"Outputting CV2D Mesher controls:" <<
nl
virtual int precision() const
Get precision of output field.
virtual ios_base::fmtflags flags() const
Get stream flags.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
unsigned short indentLevel() const noexcept
Return the indent level.
Controls for the 2D CV mesh generator.
scalar minEdgeLen2_
Square of minEdgeLen.
scalar minCellSize2_
Square of minCellSize.
scalar maxNotchLen2_
Square of maxNotchLen.
scalar span_
Maximum cartesian span of the geometry.
scalar span2_
Square of span.
scalar minNearPointDist2_
Square of minNearPoint.
scalar nearWallAlignedDist2_
Square of nearWallAlignedDist.
scalar ppDist_
Distance between boundary conforming point-pairs.
virtual bool write()
Write the output fields.
@ BEGIN_BLOCK
Begin block [isseparator].
@ END_BLOCK
End block [isseparator].
runTime controlDict().readEntry("adjustTimeStep"
OBJstream os(runTime.globalPath()/outputName)
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))
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
constexpr char nl
The newline '\n' character (0x0a)