From 055fa134da85375e596cd82c6164949ff3d9dab9 Mon Sep 17 00:00:00 2001 From: henry 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 f56c7f2184..71231a5865 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::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::one, fluctuationScale_