Thermal optimisation of the stator vent design for a synchronous generator