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
Branches
Tags
No related merge requests found
...@@ -115,14 +115,15 @@ Foam::functionObjects::turbulenceFields::I ...@@ -115,14 +115,15 @@ Foam::functionObjects::turbulenceFields::I
const Model& model const Model& model
) const ) const
{ {
// Assume k is available // (P:p. 183)
const volScalarField uPrime(sqrt((2.0/3.0)*model.k())); // root-mean-square of velocity fluctuations - isotropic turbulence
const dimensionedScalar U0("U0", dimVelocity, SMALL); tmp<volScalarField> uPrime = sqrt((2.0/3.0)*model.k());
const dimensionedScalar U0(dimVelocity, SMALL);
return tmp<volScalarField>::New return tmp<volScalarField>::New
( (
"I.tmp", "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