I would urge readers to arm themselves with patience, if they want to understand this thermodynamic - mechanical puzzle.
Naturally, pumps, compressors and valves at -well to electrically with electronic control. Dynamo driven by the engine shaft will produce the necessary electricity for their work.
I described the method with mechanical ones to have a classic view of the method.
P.S. My English is not very good. I hope the meaning is understood.