34 const scalar reportLenSqr,
41 scalar minLenSqr =
sqr(great);
42 scalar maxLenSqr = -
sqr(great);
48 const face&
f = faces[facei];
56 if (magSqrE < reportLenSqr)
62 minLenSqr =
min(minLenSqr, magSqrE);
63 maxLenSqr =
max(maxLenSqr, magSqrE);
82 Info<<
" *Edges too small, min/max edge length = "
83 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr)
84 <<
", number too small: " << nSmall <<
endl;
93 Info<<
" Min/max edge length = "
94 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr)
#define forAll(list, i)
Loop across all elements in list.
bool insert(const Key &key)
Insert a new entry.
void transfer(HashTable< T, Key, Hash > &)
Transfer the contents of the argument table into this table.
label size() const
Return number of elements in table.
A face is a list of labels corresponding to mesh vertices.
Cell-face mesh analysis engine.
virtual const faceList & faces() const =0
Return faces.
virtual const pointField & points() const =0
Return mesh points.
bool checkEdgeLength(const primitiveMesh &mesh, const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr)
Check edge length.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
dimensionedScalar sqrt(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > magSqr(const dimensioned< Type > &)