Simulation of one dimensional open channel flows using the SPH model