From 055fa134da85375e596cd82c6164949ff3d9dab9 Mon Sep 17 00:00:00 2001 From: henry <Henry Weller h.weller@opencfd.co.uk> Date: Tue, 6 May 2008 22:41:09 +0100 Subject: [PATCH] Correction to the application of rmsCorr --- .../derived/turbulentInlet/turbulentInletFvPatchField.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C index f56c7f21848..71231a58659 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C @@ -181,11 +181,11 @@ void turbulentInletFvPatchField<Type>::updateCoeffs() scalar rmsCorr = sqrt(12*(2*alpha_ - sqr(alpha_)))/alpha_; patchField = - (rmsCorr*(1 - alpha_))*patchField - + (rmsCorr*alpha_)* + (1 - alpha_)*patchField + + alpha_* ( referenceField_ - + cmptMultiply + + rmsCorr*cmptMultiply ( randomField - 0.5*pTraits<Type>::one, fluctuationScale_ -- GitLab