BUG: Correcting calculation of Q
This commit is contained in:
parent
946a4f8a23
commit
1b3c804761
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -269,7 +269,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
|
|||
}
|
||||
}
|
||||
}
|
||||
q = (Ta_ - Tp)*(1.0/h_ + totalSolidRes);
|
||||
q = (Ta_ - Tp)/(1.0/h_ + totalSolidRes);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
@ -287,7 +287,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
|
|||
{
|
||||
if (q[i] > 0) //in
|
||||
{
|
||||
this->refGrad()[i] = q[i]/KWall[i];
|
||||
this->refGrad()[i] = q[i]/KWall[i];
|
||||
this->refValue()[i] = 0.0;
|
||||
this->valueFraction()[i] = 0.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue