BUG: effectivenessTable: fix the sign for secondary outlet temperature (fixes #2772)
This commit is contained in:
parent
3e382aadea
commit
fd1a70f933
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2022 OpenCFD Ltd.
|
Copyright (C) 2022-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -321,7 +321,7 @@ void Foam::heatExchangerModels::effectivenessTable::write
|
|||||||
// Secondary Cp as a function of the starting secondary temperature
|
// Secondary Cp as a function of the starting secondary temperature
|
||||||
const scalar secondaryCp = secondaryCpPtr_->value(secondaryInletT_);
|
const scalar secondaryCp = secondaryCpPtr_->value(secondaryInletT_);
|
||||||
const scalar secondaryOutletT =
|
const scalar secondaryOutletT =
|
||||||
Qt_/(secondaryMassFlowRate_*secondaryCp) + secondaryInletT_;
|
secondaryInletT_ - Qt_/(secondaryMassFlowRate_*secondaryCp);
|
||||||
|
|
||||||
if (log)
|
if (log)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user