Simulating 2D open-channel flows through an SPH model