From c5fe4abd5bebb515d33fb9a7588f8d579de55971 Mon Sep 17 00:00:00 2001 From: rraustad Date: Wed, 25 Dec 2024 11:45:29 -0500 Subject: [PATCH] expm1 on FluidCoolers --- src/EnergyPlus/FluidCoolers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EnergyPlus/FluidCoolers.cc b/src/EnergyPlus/FluidCoolers.cc index 0d2e0fcf4f1..a2993e07ba0 100644 --- a/src/EnergyPlus/FluidCoolers.cc +++ b/src/EnergyPlus/FluidCoolers.cc @@ -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);