BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / randomProcesses / turbulence / Ek.H
blob72774fba3d8b26ce2d3306242df41158fb832968
1 #ifndef Ek_H
2 #define Ek_H
4 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
6 namespace Foam
9 inline tmp<scalarField> Ek
11     const scalar Ea,
12     const scalar k0,
13     const scalarField& k
16     tmp<scalarField> tEk = Ea*pow(k/k0, 4.0)*exp(-2.0*sqr(k/k0));
18     /*
19     scalarField& Ekf = tEk();
21     label i;
22     forAll(Ekf, i)
23     {
24         if (k[i] < 2 || k[i] > 10)
25         {
26             Ekf[i] = 0.0;
27         }
28     }
29     */
31     return tEk;
35 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 } // End namespace Foam
39 #endif