oemof / DHNx

District heating system optimisation and simulation models
MIT License
27 stars 12 forks source link

Add pre-calc hydraulic module #82

Closed joroeder closed 2 years ago

joroeder commented 2 years ago

This PR adds a module with functions for the for pre-calculation of hydraulic parameters for the district heating network optimisation.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2333061720


Changes Missing Coverage Covered Lines Changed/Added Lines %
dhnx/optimization/precalc_hydraulic.py 112 116 96.55%
<!-- Total: 114 118 96.61% -->
Totals Coverage Status
Change from base Build 2332306241: 2.2%
Covered Lines: 1144
Relevant Lines: 1916

💛 - Coveralls
joroeder commented 2 years ago

The new module of this PR requires CoolProp. However, CoolProp does not work at the moment with python 3.9+. When the next release of CoolProp is out, this should be fixed (https://github.com/CoolProp/CoolProp/pull/2097), and python 3.9 can be added to the CI again.