An electric power generator comprises: a rotor being rotatable around a longitudinal centre axis (X-X) of rotation and comprising a rotor winding , a stator surrounding the rotor and comprising a stator core with a stator winding and a stator frame surrounding the stator core , a connection space formed within the electric generator , said connection space being formed as a separate box attached to the stator frame or as an integrated part of the stator frame , characterized in that the electric power generator further comprises: a fault ride through circuit comprising a brake resistance and a switch , the switch being configured to by-pass the brake resistance in normal operation and to connect the brake resistance in series with the stator winding in a fault ride through situation in order to consume electric power produced by the electric power generator during a period of at least 250 ms required by grid code requirements so that the electric power generator maintains its synchronism during this period of 250 ms, wherein the fault ride through circuit is positioned within the electric generator between the connection space of the electric generator and the stator winding in a position where cooling air of the electric power generator passes along the fault ride through circuit so that the fault ride through circuit becomes cooled with said cooling air. a rotor being rotatable around a longitudinal centre axis (X-X) of rotation and comprising a rotor winding , a stator surrounding the rotor and comprising a stator core with a stator winding and a stator frame surrounding the stator core , a connection space formed within the electric generator , said connection space being formed as a separate box attached to the stator frame or as an integrated part of the stator frame , characterized in that the electric power generator further comprises: a fault ride through circuit comprising a brake resistance and a switch , the switch being configured to by-pass the brake resistance in normal operation and to connect the brake resistance in series with the stator winding in a fault ride through situation in order to consume electric power produced by the electric power generator during a period of at least 250 ms required by grid code requirements so that the electric power generator maintains its synchronism during this period of 250 ms, wherein the fault ride through circuit is positioned within the electric generator between the connection space of the electric generator and the stator winding in a position where cooling air of the electric power generator passes along the fault ride through circuit so that the fault ride through circuit becomes cooled with said cooling air. a fault ride through circuit comprising a brake resistance and a switch , the switch being configured to by-pass the brake resistance in normal operation and to connect the brake resistance in series with the stator winding in a fault ride through situation in order to consume electric power produced by the electric power generator during a period of at least 250 ms required by grid code requirements so that the electric power generator maintains its synchronism during this period of 250 ms, wherein the fault ride through circuit is positioned within the electric generator between the connection space of the electric generator and the stator winding in a position where cooling air of the electric power generator passes along the fault ride through circuit so that the fault ride through circuit becomes cooled with said cooling air. <EOS>