Multi-Energy-Systems-Optimization / mesido

GNU Lesser General Public License v3.0
1 stars 2 forks source link

Pipe connected to a demand #152

Closed KobusVanRooyen closed 2 weeks ago

KobusVanRooyen commented 2 months ago

Sometimes a pipe connected to a heat demand is way oversized which is results in unnecessary many pipe options being available in the optimization and sometimes the heat demand is so small that the smallest available pipe DN would be sufficient. To improve this the following is suggested:

  1. check the pipe connect to a demand, check the max flow rate required by a demand based on the peak profile value, then x4 (to allow for heat losses etc), then calculate the required pipe, add a message for each one of these pipes to a potential error list and inform the user to fix these pipes, error exit run (potential to force the user to update the esdl)
  2. when the smallest DN pipe (for instance DN150) would be sufficient and the optional DN pipe is specified by the user as DN900 for instance: change all these pipes to enabled and then change the pipe DN to the smallest sufficient pipe DN. The objective would be to reduce the number of constraints