2D implementation of SPH methods