A generalized fluid system simulation program to model flow distribution in fluid networks