mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
mathematicalConstant -> constant::math
This commit is contained in:
@ -177,8 +177,8 @@ Foam::tensor Foam::conformalVoronoiMesh::requiredAlignment
|
||||
{
|
||||
vector spoke
|
||||
(
|
||||
Foam::cos(i*mathematicalConstant::twoPi/s),
|
||||
Foam::sin(i*mathematicalConstant::twoPi/s),
|
||||
Foam::cos(i*constant::math::twoPi/s),
|
||||
Foam::sin(i*constant::math::twoPi/s),
|
||||
0
|
||||
);
|
||||
|
||||
@ -471,8 +471,8 @@ void Foam::conformalVoronoiMesh::insertInternalEdgePointGroup
|
||||
point reflectedB = reflMasterPt - 2*ppDist*nB;
|
||||
|
||||
scalar totalAngle =
|
||||
180*(mathematicalConstant::pi + acos(mag(nA & nB)))
|
||||
/mathematicalConstant::pi;
|
||||
180*(constant::math::pi + acos(mag(nA & nB)))
|
||||
/constant::math::pi;
|
||||
|
||||
// Number of quadrants the angle should be split into
|
||||
int nQuads = int(totalAngle/cvMeshControls().maxQuadAngle()) + 1;
|
||||
|
||||
@ -57,7 +57,7 @@ SourceFiles
|
||||
#include "triSurfaceTools.H"
|
||||
#include "indexedOctree.H"
|
||||
#include "treeDataPoint.H"
|
||||
#include "mathematicalConstants.H"
|
||||
#include "mathConstants.H"
|
||||
#include "transform.H"
|
||||
#include "volFields.H"
|
||||
#include "fvMesh.H"
|
||||
|
||||
@ -107,7 +107,7 @@ Foam::cvControls::cvControls
|
||||
cosAlignmentAcceptanceAngle_ = cos
|
||||
(
|
||||
readScalar(motionDict.lookup("alignmentAcceptanceAngle"))
|
||||
*mathematicalConstant::pi/180
|
||||
*constant::math::pi/180
|
||||
);
|
||||
|
||||
// Point removal criteria
|
||||
@ -130,7 +130,7 @@ Foam::cvControls::cvControls
|
||||
cosInsertionAcceptanceAngle_ = cos
|
||||
(
|
||||
readScalar(insertionDict.lookup("acceptanceAngle"))
|
||||
*mathematicalConstant::pi/180
|
||||
*constant::math::pi/180
|
||||
);
|
||||
|
||||
// Point removal criteria
|
||||
|
||||
@ -47,7 +47,7 @@ defineTypeNameAndDebug(featureEdgeMesh, 0);
|
||||
|
||||
Foam::scalar Foam::featureEdgeMesh::cosNormalAngleTol_ = Foam::cos
|
||||
(
|
||||
0.1*mathematicalConstant::pi/180.0
|
||||
0.1*constant::math::pi/180.0
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user