mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Correct formatting
This commit is contained in:
@ -82,9 +82,9 @@ Foam::nonUniformField::nonUniformField
|
||||
Info<< decrIndent;
|
||||
|
||||
Info<< indent << "Cell size field statistics:" << nl
|
||||
<< indent << " Minimum: " << min(surfaceCellSize_).value() << nl
|
||||
<< indent << " Average: " << average(surfaceCellSize_).value() << nl
|
||||
<< indent << " Maximum: " << max(surfaceCellSize_).value() << endl;
|
||||
<< indent << " Minimum: " << min(surfaceCellSize_).value() << nl
|
||||
<< indent << " Average: " << average(surfaceCellSize_).value() << nl
|
||||
<< indent << " Maximum: " << max(surfaceCellSize_).value() << endl;
|
||||
|
||||
Info<< decrIndent;
|
||||
}
|
||||
|
||||
@ -719,12 +719,15 @@ bool Foam::conformalVoronoiMesh::dualCellSurfaceAllIntersections
|
||||
|
||||
const Foam::point& p = infoList[hitI].hitPoint();
|
||||
|
||||
const scalar separationDistance
|
||||
= mag(p - info.hitPoint());
|
||||
const scalar separationDistance =
|
||||
mag(p - info.hitPoint());
|
||||
|
||||
const scalar minSepDist
|
||||
= sqr(cvMeshControls().removalDistCoeff()
|
||||
*targetCellSize(p));
|
||||
const scalar minSepDist =
|
||||
sqr
|
||||
(
|
||||
cvMeshControls().removalDistCoeff()
|
||||
*targetCellSize(p)
|
||||
);
|
||||
|
||||
// Reject the point if it is too close to another
|
||||
// surface point.
|
||||
|
||||
@ -157,12 +157,12 @@ scalarField calcCurvature(const triSurface& surf)
|
||||
// << monge_fit.condition_number() << nl << std::endl;
|
||||
|
||||
// Use the maximum curvature to give smaller cell sizes later.
|
||||
k[vertI++]
|
||||
= max
|
||||
(
|
||||
mag(monge_form.principal_curvatures(0)),
|
||||
mag(monge_form.principal_curvatures(1))
|
||||
);
|
||||
k[vertI++] =
|
||||
max
|
||||
(
|
||||
mag(monge_form.principal_curvatures(0)),
|
||||
mag(monge_form.principal_curvatures(1))
|
||||
);
|
||||
}
|
||||
|
||||
return k;
|
||||
@ -174,8 +174,10 @@ bool edgesConnected(const edge& e1, const edge& e2)
|
||||
{
|
||||
if
|
||||
(
|
||||
e1.start() == e2.start() || e1.start() == e2.end()
|
||||
|| e1.end() == e2.start() || e1.end() == e2.end()
|
||||
e1.start() == e2.start()
|
||||
|| e1.start() == e2.end()
|
||||
|| e1.end() == e2.start()
|
||||
|| e1.end() == e2.end()
|
||||
)
|
||||
{
|
||||
return true;
|
||||
@ -265,8 +267,8 @@ scalar calcProximityOfFeatureEdges
|
||||
// Don't refine if the edges are connected to each other
|
||||
if (!edgesConnected(e1, e2))
|
||||
{
|
||||
scalar curDist
|
||||
= mag(pHit1.hitPoint() - pHit2.hitPoint());
|
||||
scalar curDist =
|
||||
mag(pHit1.hitPoint() - pHit2.hitPoint());
|
||||
|
||||
minDist = min(curDist, minDist);
|
||||
}
|
||||
@ -897,8 +899,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
scalar span = searchSurf.bounds().mag();
|
||||
|
||||
//args.optionReadIfPresent("closeness", span);
|
||||
|
||||
scalar externalAngleTolerance = 10;
|
||||
scalar externalToleranceCosAngle =
|
||||
Foam::cos
|
||||
|
||||
Reference in New Issue
Block a user