Energy Equation at a Branch
By applying the energy equation at a branch i, we loop over all connecting pipes and get
where hij is the enthalpy at the connection point of pipe and junction.