Numerical simulation of fluid-structure interaction by SPH