diff --git a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H index 8bfa031882b1cdb9c1834f7ed15ac56483b69780..93dd91ad3ccb65850346c35153bbc2bdb6572385 100644 --- a/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H +++ b/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H @@ -233,8 +233,7 @@ public: //- Return the effective turbulent temperature diffusivity for a patch virtual tmp<scalarField> kappaEff(const label patchI) const { - return - thermo().kappaEff(alphat()().boundaryField()[patchI], patchI); + return thermo().kappaEff(alphat(patchI), patchI); } //- Return the effective turbulent thermal diffusivity @@ -246,8 +245,7 @@ public: //- Return the effective turbulent thermal diffusivity for a patch virtual tmp<scalarField> alphaEff(const label patchI) const { - return - thermo().alphaEff(alphat()().boundaryField()[patchI], patchI); + return thermo().alphaEff(alphat(patchI), patchI); } //- Solve the turbulence equations and correct the turbulence viscosity diff --git a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H index 87d283b29ab8d318cb625269052367e219f5a3a2..d48b898887c6be72e36fe04b82d854190d6fccb8 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H +++ b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H @@ -212,6 +212,12 @@ public: //- Return the turbulence thermal diffusivity virtual tmp<volScalarField> alphat() const = 0; + //- Return the turbulence thermal diffusivity for a patch + virtual tmp<scalarField> alphat(const label patchI) const + { + return alphat()().boundaryField()[patchI]; + } + //- Return the effective turbulence temperature diffusivity virtual tmp<volScalarField> kappaEff() const = 0;