nocad.datasets.make_heat_exchanger_network#
- nocad.datasets.make_heat_exchanger_network(hot_streams, cold_streams, coolers=(), heaters=(), names=None)[source]#
Network of the state variables of a heat exchanger network (HEN).
Every heat exchanger cell is a lumped unit with two state variables, the hot and the cold outlet temperatures,
\[\dot T_{ho}=\frac{v_h}{V_h}(T_{hi}-T_{ho})+\frac{UA}{c_{ph}\rho_hV_h}(T_{co}-T_{ho}),\qquad \dot T_{co}=\frac{v_c}{V_c}(T_{ci}-T_{co})+\frac{UA}{c_{pc}\rho_cV_c}(T_{ho}-T_{co}),\]so both states have a self-loop and influence each other (connection type g). A utility cooler (heater) has one state, the outlet temperature of its process stream. Along every stream the outlet temperature of a unit is the inlet temperature of the next unit on that stream: an edge from the upstream state to the downstream state of the same side.
- Parameters:
- Returns:
- data
Bunchwithadj,labels(e.g."E1.h","E1.c","C1"),units, side("hot"/"cold"per state) andn_exchangers.
- data
Examples
>>> hen = make_heat_exchanger_network([["E1", "C1"]], [["E1"]], coolers=["C1"]) >>> hen.labels, int(hen.adj.nnz) (['E1.h', 'E1.c', 'C1'], 6)