36 dict_.lookupOrDefault<
Switch>(
"controlMeshQuality", false)
38 collapseEdgesCoeffDict_(dict_.subDict(
"collapseEdgesCoeffs")),
39 collapseFacesCoeffDict_(dict_.subOrEmptyDict(
"collapseFacesCoeffs")),
40 meshQualityCoeffDict_(dict_.subOrEmptyDict(
"controlMeshQualityCoeffs")),
41 minLen_(collapseEdgesCoeffDict_.
lookup<scalar>(
"minimumEdgeLength")),
48 collapseEdgesCoeffDict_.
lookup<scalar>(
"maximumMergeAngle")
54 meshQualityCoeffDict_.lookupOrDefault<scalar>(
"edgeReductionFactor", -1)
58 meshQualityCoeffDict_.lookupOrAddDefault<
label>(
"maximumIterations", 1)
62 meshQualityCoeffDict_.lookupOrAddDefault<
label>
64 "maximumSmoothingIterations",
68 initialFaceLengthFactor_
70 collapseFacesCoeffDict_.lookupOrAddDefault<scalar>
72 "initialFaceLengthFactor",
78 meshQualityCoeffDict_.lookupOrAddDefault<scalar>
80 "faceReductionFactor",
86 meshQualityCoeffDict_.lookupOrAddDefault<
label>(
"maxPointErrorCount", 0)
95 os <<
"Merging:" <<
nl 96 <<
" edges with length less than " <<
minLen() <<
" meters" <<
nl 97 <<
" edges split by a point with edges in line to within " 99 <<
" Minimum edge length reduction factor = " 105 os <<
"Face collapsing is off" <<
endl;
109 os <<
"Face collapsing is on" <<
endl;
118 os <<
" Minimum edge length reduction factor = " 120 <<
" Minimum face area reduction factor = " 123 os <<
" Maximum number of collapse iterations = " <<
maxIterations()
126 os <<
" Maximum number of edge/face reduction factor smoothing " 129 os <<
" Maximum number of times a point can contribute to bad " 130 <<
"faces across " <<
nl 135 os <<
"Selectively disabling wanted collapses until resulting quality" 136 <<
" satisfies constraints in system/meshQualityDict" <<
nl const scalar & minLen() const
const dictionary & collapseFacesCoeffDict() const
dimensionedScalar acos(const dimensionedScalar &ds)
const scalar & initialFaceLengthFactor() const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar radToDeg(const scalar rad)
Conversion from radians to degrees.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Unit conversion functions.
const label & maxPointErrorCount() const
const scalar & faceReductionFactor() const
const label & maxIterations() const
const scalar & edgeReductionFactor() const
polyMeshFilterSettings(const dictionary &dict)
Construct from dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
stressControl lookup("compactNormalStress") >> compactNormalStress
dimensionedScalar cos(const dimensionedScalar &ds)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const char * asText() const
Return a text representation of the Switch.
const label & maxSmoothIters() const
void writeSettings(Ostream &os) const
Write the settings to a stream.
const Switch & controlMeshQuality() const
const scalar & maxCos() const