From 8df363cf97826b03f2923c9b0bf91a378853bb7c Mon Sep 17 00:00:00 2001 From: danielque Date: Thu, 24 Aug 2017 17:06:23 +0200 Subject: [PATCH] add some mathematical constants cf. OpenFOAM mathematicalConstants.H --- .../cfdemParticle/cfdTools/mathExtra.H | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/lagrangian/cfdemParticle/cfdTools/mathExtra.H b/src/lagrangian/cfdemParticle/cfdTools/mathExtra.H index fb45ecfd..a48893ef 100644 --- a/src/lagrangian/cfdemParticle/cfdTools/mathExtra.H +++ b/src/lagrangian/cfdemParticle/cfdTools/mathExtra.H @@ -44,6 +44,28 @@ Description #define TOLERANCE_ORTHO 1e-10 +namespace Foam +{ +namespace constant +{ +namespace mathematical +{ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + const scalar piByFour(0.25*pi); + const scalar fourPiByThree(4.0*pi/3.0); + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace mathematical +} // End namespace constant + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + + namespace MathExtra {