A thermodynamic cycle consists of a linked sequence of thermodynamic processes that involve transfer of heat (Q) and work (W) into and out of the system, while varying pressure, volume, temperature, and other state variables within the system, and that eventually returns the system to its initial state (closed loop).
Two primary classes of thermodynamic cycles are:
(1) Power cycles are cycles which convert some heat input (+Q) into a mechanical work output (-W).
(2) Heat pump cycles transfer heat from low to high temperatures (-Q) by using mechanical work (+W) as the input.
Power cycles
Thermodynamic power cycles are the basis for the operation of heat engines, which supply most of the world's electric power and run the vast majority of motor vehicles. Power cycles can be organized into two categories: real cycles and ideal cycles.
Real vs. Ideal cycles
Cycles encountered in real world devices (real cycles) are difficult to analyze because of the presence of complicating effects (friction), and the absence of sufficient time for the establishment of equilibrium conditions. For the purpose of analysis and design, idealized models (ideal cycles) are created to study the effects of major parameters that dominate the cycle without having to spend significant time working out intricate details present in the real cycle model.
4 stroke internal combustion engine
1) Intake
2) Compression
3) Power
4) Exhaust
PV Diagrams, How To Calculate The Work Done By a Gas
This video explains how to calculate the work done by a gas for an isobaric process, isochoric process, isothermal process, and an adiabatic process. It also explains how to calculate work done for a cyclic process.