Numerical analysis of debris-flow interaction with open barriers