Skip to content

Commit

Permalink
expm1 on FluidCoolers
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Dec 25, 2024
1 parent aa39f9f commit c5fe4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnergyPlus/FluidCoolers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,7 @@ void CalcFluidCoolerOutlet(
Real64 NumTransferUnits = UAdesign / CapacityRatioMin;
Real64 ETA = std::pow(NumTransferUnits, 0.22);
Real64 A = CapacityRatio * NumTransferUnits / ETA;
Real64 effectiveness = 1.0 - std::exp((std::exp(-A) - 1.0) / (CapacityRatio / ETA));
Real64 effectiveness = 1.0 - std::exp(std::expm1(-A) / (CapacityRatio / ETA));

// calculate water to air heat transfer
_Qactual = effectiveness * CapacityRatioMin * (_InletWaterTemp - InletAirTemp);
Expand Down

3 comments on commit c5fe4ab

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-expm-FluidCoolers (rraustad) - x86_64-Linux-Ubuntu-24.04-gcc-13.3: OK (2918 of 2918 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-expm-FluidCoolers (rraustad) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-UnitTestsCoverage-RelWithDebInfo: OK (2100 of 2100 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-expm-FluidCoolers (rraustad) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-IntegrationCoverage-RelWithDebInfo: OK (801 of 801 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.