kShellIntegration: Corrected the namespace of pi.

This commit is contained in:
henry
2010-02-03 14:52:57 +00:00
parent d0f2aeb010
commit 7952f8f2fe

View File

@ -29,12 +29,7 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam Foam::graph Foam::kShellIntegration
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
graph kShellIntegration
( (
const complexVectorField& Ek, const complexVectorField& Ek,
const Kmesh& K const Kmesh& K
@ -56,7 +51,7 @@ graph kShellIntegration
// now scale this to get the energy in a box of side l0 // now scale this to get the energy in a box of side l0
scalar l0(K.sizeOfBox()[0]*(scalar(K.nn()[0])/(scalar(K.nn()[0])-1.0))); scalar l0(K.sizeOfBox()[0]*(scalar(K.nn()[0])/(scalar(K.nn()[0])-1.0)));
scalar factor = pow3(l0/constant::mathematical::twoPi); scalar factor = pow((l0/(2.0*constant::mathematical::pi)),3.0);
y *= factor; y *= factor;
@ -72,7 +67,7 @@ graph kShellIntegration
// kShellMean : average over the points in a k-shell to evaluate the // kShellMean : average over the points in a k-shell to evaluate the
// radial part of the energy spectrum. // radial part of the energy spectrum.
graph kShellMean Foam::graph Foam::kShellMean
( (
const complexVectorField& Ek, const complexVectorField& Ek,
const Kmesh& K const Kmesh& K
@ -136,13 +131,8 @@ graph kShellMean
} }
} }
return graph("E(k)", "k", "E(k)", Ek1D, k1D); return graph("E(k)", "k", "E(k)", k1D, Ek1D);
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //