Skip to content
Snippets Groups Projects
Commit 5e05e4d4 authored by mattijs's avatar mattijs
Browse files

ENH: externalWallHeatFluxT: moved Kappa out of loop

parent 3c183eba
Branches
Tags
No related merge requests found
......@@ -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() << ':'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment