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:
hot_streams, cold_streamslist of list of str

For every stream the units it passes, in flow order. A unit name used in a hot and a cold stream is a heat exchanger cell; a name used only in a hot stream must be listed in coolers and only in a cold stream in heaters.

coolers, heatersiterable of str
Returns:
dataBunch with adj, labels (e.g. "E1.h", "E1.c", "C1"), units,

side ("hot"/"cold" per state) and n_exchangers.

Examples

>>> hen = make_heat_exchanger_network([["E1", "C1"]], [["E1"]], coolers=["C1"])
>>> hen.labels, int(hen.adj.nnz)
(['E1.h', 'E1.c', 'C1'], 6)

Examples using nocad.datasets.make_heat_exchanger_network#

Heat exchanger networks

Heat exchanger networks