diff --git a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C index adc76f9f4f..d9dffce684 100644 --- a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C @@ -115,7 +115,9 @@ alphaSgsJayatillekeWallFunctionFvPatchScalarField fixedValueFvPatchScalarField(p, iF), Prt_(0.85), kappa_(0.41), - E_(9.8) + E_(9.8), + hsName_("hs") + { checkType(); } @@ -133,7 +135,9 @@ alphaSgsJayatillekeWallFunctionFvPatchScalarField fixedValueFvPatchScalarField(ptf, p, iF, mapper), Prt_(ptf.Prt_), kappa_(ptf.kappa_), - E_(ptf.E_) + E_(ptf.E_), + hsName_(ptf.hsName_) + {} @@ -148,7 +152,8 @@ alphaSgsJayatillekeWallFunctionFvPatchScalarField fixedValueFvPatchScalarField(p, iF, dict), Prt_(dict.lookupOrDefault("Prt", 0.85)), kappa_(dict.lookupOrDefault("kappa", 0.41)), - E_(dict.lookupOrDefault("E", 9.8)) + E_(dict.lookupOrDefault("E", 9.8)), + hsName_(dict.lookupOrDefault("hs", "hs")) { checkType(); } @@ -163,7 +168,8 @@ alphaSgsJayatillekeWallFunctionFvPatchScalarField fixedValueFvPatchScalarField(awfpsf), Prt_(awfpsf.Prt_), kappa_(awfpsf.kappa_), - E_(awfpsf.E_) + E_(awfpsf.E_), + hsName_(awfpsf.hsName_) { checkType(); } @@ -179,7 +185,8 @@ alphaSgsJayatillekeWallFunctionFvPatchScalarField fixedValueFvPatchScalarField(awfpsf, iF), Prt_(awfpsf.Prt_), kappa_(awfpsf.kappa_), - E_(awfpsf.E_) + E_(awfpsf.E_), + hsName_(awfpsf.hsName_) { checkType(); } @@ -209,7 +216,7 @@ void alphaSgsJayatillekeWallFunctionFvPatchScalarField::evaluate const scalarField& rhow = lesModel.rho().boundaryField()[patchI]; const fvPatchScalarField& hw = - patch().lookupPatchField("h"); + patch().lookupPatchField(hsName_); const scalarField& ry = patch().deltaCoeffs(); @@ -312,6 +319,7 @@ void alphaSgsJayatillekeWallFunctionFvPatchScalarField::write(Ostream& os) const os.writeKeyword("Prt") << Prt_ << token::END_STATEMENT << nl; os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl; os.writeKeyword("E") << E_ << token::END_STATEMENT << nl; + os.writeKeyword("hs") << hsName_ << token::END_STATEMENT << nl; writeEntry("value", os); } diff --git a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.H b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.H index b06ba8c1c2..940d5fa263 100644 --- a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.H +++ b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.H @@ -66,6 +66,9 @@ class alphaSgsJayatillekeWallFunctionFvPatchScalarField //- E coefficient scalar E_; + //- Name of (sensible/total) enthalpy field + word hsName_; + // Solution parameters