Smoothed-particle hydrodynamics