mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
find/replace pi/180.0 -> degToRad() and 180.0/pi -> radToDeg()
- note left utilities/mesh/advanced/collapseEdges/collapseEdges.C as-is. It looks suspicious, but the change was recent, so maybe it means something
This commit is contained in:
@ -248,7 +248,7 @@ Foam::scalar Foam::polyMeshGeometry::checkNonOrtho
|
||||
<< " between cells " << mesh.faceOwner()[faceI]
|
||||
<< " and " << nei
|
||||
<< ": Angle = "
|
||||
<< ::acos(dDotS)/constant::mathematical::pi*180.0
|
||||
<< radToDeg(::acos(dDotS))
|
||||
<< " deg." << endl;
|
||||
}
|
||||
|
||||
@ -269,7 +269,7 @@ Foam::scalar Foam::polyMeshGeometry::checkNonOrtho
|
||||
<< " between cells " << mesh.faceOwner()[faceI]
|
||||
<< " and " << nei
|
||||
<< ": Angle = "
|
||||
<< ::acos(dDotS)/constant::mathematical::pi*180.0
|
||||
<< radToDeg(::acos(dDotS))
|
||||
<< " deg." << endl;
|
||||
}
|
||||
|
||||
@ -368,8 +368,7 @@ bool Foam::polyMeshGeometry::checkFaceDotProduct
|
||||
const polyBoundaryMesh& patches = mesh.boundaryMesh();
|
||||
|
||||
// Severe nonorthogonality threshold
|
||||
const scalar severeNonorthogonalityThreshold =
|
||||
::cos(orthWarn/180.0*constant::mathematical::pi);
|
||||
const scalar severeNonorthogonalityThreshold = ::cos(degToRad(orthWarn));
|
||||
|
||||
|
||||
// Calculate coupled cell centre
|
||||
@ -504,9 +503,8 @@ bool Foam::polyMeshGeometry::checkFaceDotProduct
|
||||
if (nDDotS > 0)
|
||||
{
|
||||
Info<< "Mesh non-orthogonality Max: "
|
||||
<< ::acos(minDDotS)/constant::mathematical::pi*180.0
|
||||
<< " average: " <<
|
||||
::acos(sumDDotS/nDDotS)/constant::mathematical::pi*180.0
|
||||
<< radToDeg(::acos(minDDotS))
|
||||
<< " average: " << radToDeg(::acos(sumDDotS/nDDotS))
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
@ -1258,7 +1256,7 @@ bool Foam::polyMeshGeometry::checkFaceAngles
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
const scalar maxSin = Foam::sin(maxDeg/180.0*constant::mathematical::pi);
|
||||
const scalar maxSin = Foam::sin(degToRad(maxDeg));
|
||||
|
||||
const faceList& fcs = mesh.faces();
|
||||
|
||||
@ -1338,8 +1336,7 @@ bool Foam::polyMeshGeometry::checkFaceAngles
|
||||
if (maxEdgeSin > SMALL)
|
||||
{
|
||||
scalar maxConcaveDegr =
|
||||
Foam::asin(Foam::min(1.0, maxEdgeSin))
|
||||
*180.0/constant::mathematical::pi;
|
||||
radToDeg(Foam::asin(Foam::min(1.0, maxEdgeSin)));
|
||||
|
||||
Info<< "There are " << nConcave
|
||||
<< " faces with concave angles between consecutive"
|
||||
|
||||
Reference in New Issue
Block a user