Dynamics of inviscid fluids