The smoothed particle method for hydrodynamics (SPH) is extended to describ
e the process of ultra-relativistic heavy ion collisions. Equations of moti
on have been derived from the variational principle. In order to treat the
baryon free matter, entropy is taken as the basis of the SPH representation
. This approach is very suitable for the event by event analysis of the hyd
rodynamical evolution of the collision.