alphatWallBoilingWallFunctionFvPatchScalarField: Evaluate alphatConv_ outside loop to improve speed

Patch contributed by Juho Peltola
This commit is contained in:
Henry Weller
2016-10-04 16:37:32 +01:00
parent 213e131d0f
commit f06f20662e

View File

@ -411,6 +411,9 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs()
const scalarField fLiquid(partitioningModel_->fLiquid(liquidw));
// Convective thermal diffusivity
alphatConv_ = calcAlphat(alphatConv_);
for (label i=0; i<10; i++)
{
// Liquid temperature at y+=250 is estimated from logarithmic
@ -494,9 +497,6 @@ void alphatWallBoilingWallFunctionFvPatchScalarField::updateCoeffs()
// Quenching heat flux
const scalarField Qq(A2*hQ*max(Tw - Tl, scalar(0)));
// Convective heat flux
alphatConv_ = calcAlphat(alphatConv_);
// Effective thermal diffusivity that corresponds to the
// calculated convective, quenching and evaporative heat fluxes