To integrate environmental control, secondary power and emergency power.
An apparatus comprises of a cooling turbine that is coupled to a first rotor of an electromechanical machine and has an input for receiving compressed air or ram air and an output for discharging cooled air or exhaust air; a compressor that is coupled to a second rotor of the electromechanical machine and has an input for receiving engine bleed air or ambient air and an output for discharging compressed air; a means for magnetically coupling the first and second rotors; a power turbine coupled to the compressor; a heat exchanger connected between the output of the compressor and the input of the cooling turbine; and a first control unit for controlling the magnetic coupling between the first and second rotors.