ENH: externalWallHeatFluxT: moved Kappa out of loop

This commit is contained in:
mattijs
2012-09-07 10:08:37 +01:00
parent 3c183eba6c
commit 5e05e4d494

View File

@ -199,7 +199,8 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
}
scalarField q(size(), 0.0);
scalarField KDelta(kappa(*this)*patch().deltaCoeffs());
scalarField KWall(kappa(*this));
scalarField KDelta(KWall*patch().deltaCoeffs());
if (oldMode_ == fixedHeatFlux)
{
@ -239,7 +240,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
if (debug)
{
scalar Q = gSum(kappa(*this)*patch().magSf()*snGrad());
scalar Q = gSum(KWall*patch().magSf()*snGrad());
Info<< patch().boundaryMesh().mesh().name() << ':'
<< patch().name() << ':'