The hydrodynamic limit for dense nitrogen and argon gases