mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrected laminar clause in kappt wall function
This commit is contained in:
@ -231,19 +231,17 @@ void kappatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
scalar P = Psmooth(Prat);
|
scalar P = Psmooth(Prat);
|
||||||
scalar yPlusTherm = this->yPlusTherm(P, Prat);
|
scalar yPlusTherm = this->yPlusTherm(P, Prat);
|
||||||
|
|
||||||
// Evaluate new effective thermal diffusivity
|
// Update turbulent thermal conductivity
|
||||||
scalar kappaEff = 0.0;
|
if (yPlus > yPlusTherm)
|
||||||
if (yPlus < yPlusTherm)
|
|
||||||
{
|
{
|
||||||
kappaEff = Pr*yPlus;
|
scalar nu = nuw[faceI];
|
||||||
|
scalar kt = nu*(yPlus/(Prt_/kappa_*log(E_*yPlusTherm) + P) - 1/Pr);
|
||||||
|
kappatw[faceI] = max(0.0, kt);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
kappaEff = nuw[faceI]*yPlus/(Prt_/kappa_*log(E_*yPlusTherm) + P);
|
kappatw[faceI] = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update turbulent thermal diffusivity
|
|
||||||
kappatw[faceI] = max(0.0, kappaEff - nuw[faceI]/Pr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedValueFvPatchField<scalar>::updateCoeffs();
|
fixedValueFvPatchField<scalar>::updateCoeffs();
|
||||||
|
|||||||
Reference in New Issue
Block a user