mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
using new constant definitions
This commit is contained in:
@ -27,6 +27,7 @@ License
|
||||
#include "polyMeshGeometry.H"
|
||||
#include "pyramidPointFaceRef.H"
|
||||
#include "syncTools.H"
|
||||
#include "mathConstants.H"
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
@ -247,7 +248,7 @@ Foam::scalar Foam::polyMeshGeometry::checkNonOrtho
|
||||
<< " between cells " << mesh.faceOwner()[faceI]
|
||||
<< " and " << nei
|
||||
<< ": Angle = "
|
||||
<< ::acos(dDotS)/mathematicalConstant::pi*180.0
|
||||
<< ::acos(dDotS)/constant::math::pi*180.0
|
||||
<< " deg." << endl;
|
||||
}
|
||||
|
||||
@ -268,7 +269,7 @@ Foam::scalar Foam::polyMeshGeometry::checkNonOrtho
|
||||
<< " between cells " << mesh.faceOwner()[faceI]
|
||||
<< " and " << nei
|
||||
<< ": Angle = "
|
||||
<< ::acos(dDotS)/mathematicalConstant::pi*180.0
|
||||
<< ::acos(dDotS)/constant::math::pi*180.0
|
||||
<< " deg." << endl;
|
||||
}
|
||||
|
||||
@ -368,7 +369,7 @@ bool Foam::polyMeshGeometry::checkFaceDotProduct
|
||||
|
||||
// Severe nonorthogonality threshold
|
||||
const scalar severeNonorthogonalityThreshold =
|
||||
::cos(orthWarn/180.0*mathematicalConstant::pi);
|
||||
::cos(orthWarn/180.0*constant::math::pi);
|
||||
|
||||
|
||||
// Calculate coupled cell centre
|
||||
@ -503,9 +504,9 @@ bool Foam::polyMeshGeometry::checkFaceDotProduct
|
||||
if (nDDotS > 0)
|
||||
{
|
||||
Info<< "Mesh non-orthogonality Max: "
|
||||
<< ::acos(minDDotS)/mathematicalConstant::pi*180.0
|
||||
<< ::acos(minDDotS)/constant::math::pi*180.0
|
||||
<< " average: " <<
|
||||
::acos(sumDDotS/nDDotS)/mathematicalConstant::pi*180.0
|
||||
::acos(sumDDotS/nDDotS)/constant::math::pi*180.0
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
@ -1170,7 +1171,7 @@ bool Foam::polyMeshGeometry::checkVolRatio
|
||||
{
|
||||
label face0 = baffles[i].first();
|
||||
label face1 = baffles[i].second();
|
||||
|
||||
|
||||
scalar ownVol = mag(cellVolumes[own[face0]]);
|
||||
|
||||
scalar neiVol = mag(cellVolumes[own[face1]]);
|
||||
@ -1257,7 +1258,7 @@ bool Foam::polyMeshGeometry::checkFaceAngles
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
const scalar maxSin = Foam::sin(maxDeg/180.0*mathematicalConstant::pi);
|
||||
const scalar maxSin = Foam::sin(maxDeg/180.0*constant::math::pi);
|
||||
|
||||
const faceList& fcs = mesh.faces();
|
||||
|
||||
@ -1338,7 +1339,7 @@ bool Foam::polyMeshGeometry::checkFaceAngles
|
||||
{
|
||||
scalar maxConcaveDegr =
|
||||
Foam::asin(Foam::min(1.0, maxEdgeSin))
|
||||
* 180.0/mathematicalConstant::pi;
|
||||
*180.0/constant::math::pi;
|
||||
|
||||
Info<< "There are " << nConcave
|
||||
<< " faces with concave angles between consecutive"
|
||||
@ -1823,7 +1824,7 @@ bool Foam::polyMeshGeometry::checkCellDeterminant
|
||||
forAll(cFaces, cFaceI)
|
||||
{
|
||||
label faceI = cFaces[cFaceI];
|
||||
|
||||
|
||||
scalar magArea = mag(faceAreas[faceI]);
|
||||
|
||||
magAreaSum += magArea;
|
||||
@ -1850,7 +1851,7 @@ bool Foam::polyMeshGeometry::checkCellDeterminant
|
||||
nWarnDet++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
reduce(minDet, minOp<scalar>());
|
||||
reduce(sumDet, sumOp<scalar>());
|
||||
reduce(nSumDet, sumOp<label>());
|
||||
|
||||
Reference in New Issue
Block a user