Go to the documentation of this file.
26 #include "primitiveMesh.H"
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];
55 if (magSqrE < reportLenSqr)
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.
void transfer(HashTable< T, Key, Hash > &)
Transfer the contents of the argument table into this table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
bool checkEdgeLength(const bool report, const scalar minLenSqr, labelHashSet *setPtr=NULL) const
Check edge length.
label size() const
Return number of elements in table.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
bool insert(const Key &key)
Insert a new entry.
A face is a list of labels corresponding to mesh vertices.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)