Numerical modeling of transient flows in load pipes with complex geometry