-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase "Design Water Flow Rate [m3/s]" for CT to 6 digits
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10889_CoolingTower_ReportWBT (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3: OK (2921 of 2921 tests passed, 0 test warnings)
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10889_CoolingTower_ReportWBT (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-UnitTestsCoverage-RelWithDebInfo: OK (2103 of 2103 tests passed, 0 test warnings)
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10889_CoolingTower_ReportWBT (jmarrec) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-IntegrationCoverage-RelWithDebInfo: OK (801 of 801 tests passed, 0 test warnings)
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are six digits necessary? Maybe two is not sufficient, but why six?
There is actually a bigger question behind this one which is that I believe that we should move to 32-bit floating-point for performance reasons and I am wondering how to inoculate our outputs and testing against that eventual move. FWIW 32-bit floating-point is good to 7 decimal places, 64-bit is good to 16 decimal places which in my opinion is an overkill for BEM, where only Pi is known to that level of precision.
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cause I found this.
EnergyPlus/src/EnergyPlus/Pumps.cc
Line 2270 in 31e3c33
6 sig digits gives a precision of 0.01 GPM (gal/min)
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnergyPlus/src/EnergyPlus/ReportCoilSelection.cc
Lines 216 to 217 in 31e3c33
EnergyPlus/src/EnergyPlus/ReportCoilSelection.cc
Lines 380 to 381 in 31e3c33
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine changing it to 4, or whatever you say though.
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, any thoughts about the larger issue? Maybe we can take that offline.
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure that the precision corresponds to digits after the decimal point, not in the number as a whole.
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
EnergyPlus/src/EnergyPlus/OutputReportPredefined.cc
Lines 1613 to 1634 in 31e3c33
c2fee76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean std::float32_t from C++23 here? or just "float"? https://en.cppreference.com/w/cpp/types/floating-point
Have you already tried changing the typedef and measuring performance? Is there really a performance gain?
EnergyPlus/src/EnergyPlus/api/TypeDefs.h
Lines 51 to 52 in 31e3c33