From 9f8cf26779085d5a8d751d7baae6184db0e24db5 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Thu, 10 Oct 2013 00:32:41 +0200 Subject: [PATCH] Adapt turbulent BCs to postFixedObjReg --- .../turbulentIntensityKineticEnergyInletFvPatchScalarField.C | 4 ++-- ...bulentMixingLengthDissipationRateInletFvPatchScalarField.C | 4 ++-- .../turbulentMixingLengthFrequencyInletFvPatchScalarField.C | 4 ++-- ...bulentMixingLengthDissipationRateInletFvPatchScalarField.C | 4 ++-- .../turbulentMixingLengthFrequencyInletFvPatchScalarField.C | 4 ++-- .../RWallFunction/RWallFunctionFvPatchSymmTensorField.C | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C index 24768b780..b6c13fbf1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C @@ -140,10 +140,10 @@ updateCoeffs() } const fvPatchVectorField& Up = - patch().lookupPatchField(UName_); + lookupPatchField(UName_); const fvsPatchScalarField& phip = - patch().lookupPatchField(phiName_); + lookupPatchField(phiName_); this->refValue() = SMALL + 1.5*sqr(intensity_)*magSqr(Up); this->valueFraction() = neg(phip); diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C index 5ad07b5e4..aae453a0b 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C @@ -136,10 +136,10 @@ void turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs() const scalar Cmu75 = pow(Cmu, 0.75); const fvPatchScalarField& kp = - patch().lookupPatchField(kName_); + lookupPatchField(kName_); const fvsPatchScalarField& phip = - patch().lookupPatchField(phiName_); + lookupPatchField(phiName_); this->refValue() = Cmu75*kp*sqrt(kp)/mixingLength_; this->valueFraction() = neg(phip); diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C index 1750b104b..af997fe2c 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C @@ -136,10 +136,10 @@ void turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs() const scalar Cmu25 = pow(Cmu, 0.25); const fvPatchScalarField& kp = - patch().lookupPatchField(kName_); + lookupPatchField(kName_); const fvsPatchScalarField& phip = - patch().lookupPatchField(phiName_); + lookupPatchField(phiName_); this->refValue() = sqrt(kp)/(Cmu25*mixingLength_); this->valueFraction() = neg(phip); diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C index a6b064601..410e84027 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C @@ -136,10 +136,10 @@ void turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs() const scalar Cmu75 = pow(Cmu, 0.75); const fvPatchScalarField& kp = - patch().lookupPatchField(kName_); + lookupPatchField(kName_); const fvsPatchScalarField& phip = - patch().lookupPatchField(phiName_); + lookupPatchField(phiName_); this->refValue() = Cmu75*kp*sqrt(kp)/mixingLength_; this->valueFraction() = neg(phip); diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C index e686099e0..89ebf90a3 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C @@ -136,10 +136,10 @@ void turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs() const scalar Cmu25 = pow(Cmu, 0.25); const fvPatchScalarField& kp = - patch().lookupPatchField(kName_); + lookupPatchField(kName_); const fvsPatchScalarField& phip = - patch().lookupPatchField(phiName_); + lookupPatchField(phiName_); this->refValue() = sqrt(kp)/(Cmu25*mixingLength_); this->valueFraction() = neg(phip); diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/RWallFunctions/RWallFunction/RWallFunctionFvPatchSymmTensorField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/RWallFunctions/RWallFunction/RWallFunctionFvPatchSymmTensorField.C index b781b2392..01e723cb3 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/RWallFunctions/RWallFunction/RWallFunctionFvPatchSymmTensorField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/RWallFunctions/RWallFunction/RWallFunctionFvPatchSymmTensorField.C @@ -158,10 +158,10 @@ void RWallFunctionFvPatchSymmTensorField::evaluate ) { const scalarField& nutw = - patch().lookupPatchField(nutName_); + lookupPatchField(nutName_); const fvPatchVectorField& Uw = - patch().lookupPatchField(UName_); + lookupPatchField(UName_); // Old treatment: anisotropy not enforced vectorField snGradU = Uw.snGrad();