mathematicalConstant -> constant::math

This commit is contained in:
graham
2009-09-21 12:06:14 +01:00
parent 52468771d5
commit 34fe78dcc4
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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
);