Circulation of exhaust gas in closed or semi-closed circuits