NOVELTY - The system comprises a generator (3) producing electrical energy, an electrolyzer (7) for producing oxygen and hydrogen from electricity and water, and an engine (1) that generates a rotational power and is configured such that the generator is coupled to the rotation of the engine. The engine is supplied with hydrogen, the oxygen and fuel. The electrolyzer comprises electrodes having a thickness of 0.1-3 mm, and a unit for separating each electrode by a distance of 0.5-20 mm. The system further comprises a unit for cooling the generator for lowering the operating temperature.    USE - The system is useful for generating energy in a motor vehicle and a generator (all claimed), where the vehicle is car.    ADVANTAGE - The system enhances the creation of hydrogen and oxygen to reduce the fuel consumption of the combustion engine, while reducing the risks of storage hydrogen and oxygen.    DETAILED DESCRIPTION - The system comprises a generator (3) producing electrical energy, an electrolyzer (7) for producing oxygen and hydrogen from electricity and water, and an engine (1) that generates a rotational power and is configured such that the generator is coupled to the rotation of the engine. The engine is supplied with hydrogen, the oxygen and fuel. The electrolyzer comprises electrodes having a thickness of 0.1-3 mm, and a unit for separating each electrode by a distance of 0.5-20 mm. The system further comprises a unit for cooling the generator for lowering the operating temperature, a unit for cooling the electrolyzer for lowering the operating temperature, a unit for measuring voltage of electrodes, a unit for regulating the voltage of each electrode, a unit for controlling the injection time of the fuel in the engine, and a unit for filtering a gas. The generator comprises a rotor consisting of a set of magnets and a permanent magnet device for maintaining good posture position of the magnets. The cooling unit comprises a fluid circuit through the generator and a heat exchanger for cooling the fluid. The gas filtering unit is disposed within a reservoir (9) for supplying an electrolytic liquid into the electrolyzer. The rotor and a stator are arranged at a distance of 0.1-2 mm.    DESCRIPTION OF DRAWING(S) - The figure shows a schematic perspective view of a system for generating energy in a car engine.    Engine (1)    Belt (2)    Generator (3)    Electrolyzer (7)    Reservoir. (9)