function getLinkVolumes reports wrong units
jorgeps86 opened this issue · 1 comments
jorgeps86 commented
Describe the bug
When calculating the volume of each pipe, function getLinkVolumes divides the pipe diameter by a constant 'unt'. This constant is 100 if obj.Units_SI_Metric is true, 328.08399, otherwise. In the SI Metric system, the pipe diameter is in millimeters. Therefore, 'unt' should be 1000, not 100.
To Reproduce
Call the function getLinkVolumes
Desktop (please complete the following information):
Windows 10 [EPanet 'v2.2.6.1 - Last Update: 12/07/2023']
Mariosmsk commented
Thanks @jorgeps86!