44 const twoDPointCorrector* correct2DPtr
49 const vector& normal = correct2DPtr->planeNormal();
79 mesh.time().constant(),
81 IOobject::MUST_READ_IF_MODIFIED,
85 if (motionObj.typeHeaderOk<IOdictionary>(
true))
87 Info<<
"Reading " <<
mesh.time().constant() /
"motionProperties"
90 IOdictionary motionProperties(motionObj);
92 if (motionProperties.get<
bool>(
"twoDMotion"))
96 twoDPointCorrector correct2D(
mesh);
98 normalDir_ = getNormalDir(&correct2D);
105Foam::edgeStats::edgeStats
107 const polyMesh&
mesh,
108 const twoDPointCorrector* correct2DPtr
112 normalDir_(getNormalDir(correct2DPtr))
130 const edgeList& edges = mesh_.edges();
132 for (
const edge&
e : edges)
134 vector eVec(
e.vec(mesh_.points()));
136 scalar eMag =
mag(eVec);
162 os <<
"Mesh bounding box:" << boundBox(mesh_.points()) <<
nl <<
nl
163 <<
"Mesh edge statistics:" <<
nl
164 <<
" x aligned : number:" << nX
165 <<
"\tminLen:" << limitsX.min() <<
"\tmaxLen:" << limitsX.max() <<
nl
166 <<
" y aligned : number:" << nY
167 <<
"\tminLen:" << limitsY.min() <<
"\tmaxLen:" << limitsY.max() <<
nl
168 <<
" z aligned : number:" << nZ
169 <<
"\tminLen:" << limitsZ.min() <<
"\tmaxLen:" << limitsZ.max() <<
nl
170 <<
" other : number:" << nAny
171 <<
"\tminLen:" << limitsAny.min()
172 <<
"\tmaxLen:" << limitsAny.max() <<
nl <<
endl;
static const scalar edgeTol_
scalar minLen(Ostream &os) const
Calculate minimum edge length and print.
Mesh consisting of general polyhedral cells.
OBJstream os(runTime.globalPath()/outputName)
List< edge > edgeList
List of edge.
messageStream Info
Information stream (stdout output on master, null elsewhere).
MinMax< scalar > scalarMinMax
A scalar min/max range.
Ostream & endl(Ostream &os)
Add newline and flush 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).