oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.
https://tespy.readthedocs.io
MIT License
272 stars 85 forks source link

Negative exergy flow is not displayed by plotly sankey #266

Closed fwitte closed 3 years ago

fwitte commented 3 years ago

Flows with negative exergy (p < p0 -> E_M < 0) are not displayed in exergy sankey, e.g. in the examples in the oemof user meeting tutorial notebook. Possible solution is to consider absolute values for displaying.

fwitte commented 3 years ago

The only solution that one could think of is changing the direction of exergy flow for negative values, i.e. instead of source component -> target component, this will be target component -> source component. However, the Grassmann diagram will not reflect the flow directions of the actual plant in this case. Therefore the modification will at least be postponed.