Inviscid and viscous aerodynamics of dense gases