Extended thermodynamics of dense gases in the presence of dynamic pressure