/usr/include/freefoam/randomProcesses/Ek.H is in libfreefoam-dev 0.1.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #ifndef Ek_H
#define Ek_H
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
inline tmp<scalarField> Ek
(
const scalar Ea,
const scalar k0,
const scalarField& k
)
{
tmp<scalarField> tEk = Ea*pow(k/k0, 4.0)*exp(-2.0*sqr(k/k0));
/*
scalarField& Ekf = tEk();
label i;
forAll(Ekf, i)
{
if (k[i] < 2 || k[i] > 10)
{
Ekf[i] = 0.0;
}
}
*/
return tEk;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
#endif
|