Affine Motion of 2d Incompressible Fluids Surrounded by Vacuum and Flows in $$\mathrm{SL}(2,\mathbb {R})$$