Application of particle splitting method for both hydrostatic and hydrodynamic cases in SPH