Commit 821ef1e2 authored by laurence's avatar laurence
Browse files

ENH: cvMesh: Better debugging info

parent b125db9e
......@@ -484,16 +484,45 @@ Foam::polyMeshFilter::polyMeshFilter(const fvMesh& mesh)
minEdgeLen_(),
faceFilterFactor_()
{
Info<< "Merging:" << nl
<< " edges with length less than " << minLen_ << " meters" << nl
<< " edges split by a point with edges in line to within "
<< radToDeg(::acos(maxCos_)) << " degrees" << nl
<< " Minimum edge length reduction factor = "
<< edgeReductionFactor_ << nl
<< endl;
Info<< "Edge Collapser will merge:" << nl
<< " edges with length less than " << minLen_ << " meters" << nl
<< " edges split by a point with edges in line to within "
<< radToDeg(::acos(maxCos_)) << " degrees" << nl
<< " Minimum edge length reduction factor = "
<< edgeReductionFactor_ << nl
<< endl;
Info<< "Collapse faces with reduction factor = " << faceReductionFactor_
<< endl;
if (collapseFacesCoeffDict_.empty())
{
Info<< "Face collapsing is off" << endl;
}
else
{
Info<< "Face collapsing is on" << endl;
Info<< " Initial face length factor = "<< initialFaceLengthFactor_
<< endl;
}
Info<< "Control mesh quality = " << controlMeshQuality_.asText() << endl;
if (controlMeshQuality_)
{
Info<< " Minimum edge length reduction factor = "
<< edgeReductionFactor_ << nl
<< " Minimum face area reduction factor = "
<< faceReductionFactor_ << endl;
Info<< " Maximum number of collapse iterations = " << maxIterations_
<< endl;
Info<< " Maximum number of edge/face reduction factor smoothing "
<< "iterations = " << maxSmoothIters_ << endl;
Info<< " Maximum number of times a point can contribute to bad "
<< "faces across " << nl
<< " collapse iterations = " << maxPointErrorCount_
<< endl;
}
Info<< "Selectively disabling wanted collapses until resulting quality"
<< " satisfies constraints in system/meshQualityDict" << nl
......
......@@ -1242,7 +1242,19 @@ Foam::edgeCollapser::edgeCollapser
(
dict.lookupOrDefault<scalar>("allowEarlyCollapseCoeff", 0)
)
{}
{
if (debug)
{
Info<< "Edge Collapser Settings:" << nl
<< " Guard Fraction = " << guardFraction_ << nl
<< " Max collapse face to point side length = "
<< maxCollapseFaceToPointSideLengthCoeff_ << nl
<< " " << (allowEarlyCollapseToPoint_ ? "Allow" : "Do not allow")
<< " early collapse to point" << nl
<< " Early collapse coeff = " << allowEarlyCollapseCoeff_
<< endl;
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment