1 /*======================================================================*/
3 // This routine evaluates q(k) (McComb, p61) by summing all wavevectors
4 // in a k-shell. Then we divide through by the volume of the box
5 // - to be accurate, by the volume of the ellipsoid enclosing the
6 // box (assume cells even in each direction). Finally, multiply the
7 // q(k) values by k^2 to give the full power spectrum E(k). Integrating
8 // this over the whole range gives the energy in turbulence.
10 /*======================================================================*/
15 #include "kShellIntegration.H"
16 #include "volFields.H"
19 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
24 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
28 const volVectorField& U,
32 return kShellIntegration
36 ReComplexField(U.internalField()),
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 } // End namespace Foam
48 // ************************************************************************* //