33 const scalar reportLenSqr,
38 const faceList& faces = this->faces();
40 scalar minLenSqr =
sqr(great);
41 scalar maxLenSqr = -
sqr(great);
47 const face&
f = faces[facei];
53 scalar magSqrE =
magSqr(points[f[fp]] - points[f[fp1]]);
55 if (magSqrE < reportLenSqr)
57 smallEdgeSet.
insert(f[fp]);
58 smallEdgeSet.
insert(f[fp1]);
61 minLenSqr =
min(minLenSqr, magSqrE);
62 maxLenSqr =
max(maxLenSqr, magSqrE);
81 Info<<
" *Edges too small, min/max edge length = " 82 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr)
83 <<
", number too small: " << nSmall <<
endl;
92 Info<<
" Min/max edge length = " 93 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr)
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
A face is a list of labels corresponding to mesh vertices.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
label fcIndex(const label i) const
Return the forward circular index, i.e. the next index.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void transfer(HashTable< T, Key, Hash > &)
Transfer the contents of the argument table into this table.
bool insert(const Key &key)
Insert a new entry.
label size() const
Return number of elements in table.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual bool checkEdgeLength(const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const
Check edge length.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)