Smoothed-particle hydrodynamics in CAS maxima