Skip to content
Snippets Groups Projects
Commit 84a552b9 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

ENH: turbulenceFields: update turbulence-intensity expression

parent 903e68a9
No related merge requests found
......@@ -115,14 +115,15 @@ Foam::functionObjects::turbulenceFields::I
const Model& model
) const
{
// Assume k is available
const volScalarField uPrime(sqrt((2.0/3.0)*model.k()));
const dimensionedScalar U0("U0", dimVelocity, SMALL);
// (P:p. 183)
// root-mean-square of velocity fluctuations - isotropic turbulence
tmp<volScalarField> uPrime = sqrt((2.0/3.0)*model.k());
const dimensionedScalar U0(dimVelocity, SMALL);
return tmp<volScalarField>::New
(
"I.tmp",
uPrime/max(max(uPrime, mag(model.U())), U0)
uPrime/max(mag(model.U()), U0)
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment