A pipe flow network model with incorporation of a junction pressure loss model