thumb|right|300px|Otto cycle pressure–volume diagram. The idealized diagrams of a four-stroke Otto cycle [[Pressure volume diagram|Both diagrams: the intake (0-1 and colored green) stroke is performed by an isobaric expansion, followed by an adiabatic compression (1-2 and colored orange) stroke. Through the combustion of fuel, heat is added in a constant volume (isochoric process) process (2-3), followed by an adiabatic expansion process power (3-4 and colored red) stroke. The cycle is closed by the exhaust (4-0 and colored blue) stroke, characterized by isochoric cooling and isobaric compression processes. ]]
thumb|right|300px|Temperature–entropy diagram
An Otto cycle (named after Nicolaus Otto) is an idealized thermodynamic cycle that describes the functioning of a typical spark ignition piston engine. It is the thermodynamic cycle most commonly found in automobile engines.
The Otto cycle is a description of what happens to a gas as it is subjected to changes of pressure, temperature, volume, addition of heat, and removal of heat. The gas that is subjected to those changes is called the system. The system, in this case, is defined to be the fluid (gas) within the cylinder. Conversely, by describing the changes that take place within the system it also describes the system's effect on the environment. The purpose of the Otto cycle is to study the production of net work from the system that can propel a vehicle and its occupants in the environment.
The Otto cycle is constructed from:
:Top and bottom of the loop: a pair of quasi-parallel and isentropic processes (frictionless, adiabatic reversible).
:Left and right sides of the loop: a pair of parallel isochoric processes (constant volume).
The isentropic process of compression or expansion implies that there will be no inefficiency (loss of mechanical energy), and there be no transfer of heat into or out of the system during that process. The cylinder and piston are assumed to be impermeable to heat during that time. Work is performed on the system during the lower isentropic compression process. Heat flows into the Otto cycle through the left pressurizing process and some of it flows back out through the right depressurizing process. The summation of the work added to the system plus the heat added minus the heat removed yields the net mechanical work generated by the system.
Processes
The processes are described by: Before, in about 1854–57, two Italians (Eugenio Barsanti and Felice Matteucci) invented an engine that was rumored to be very similar, but the patent was lost.
The first person to build a working four-stroke engine, a stationary engine using a coal gas-air mixture for fuel (a gas engine), was German engineer Nicolaus Otto. This is why the four-stroke principle today is commonly known as the Otto cycle and four-stroke engines using spark plugs often are called Otto engines.
Processes
The cycle has four parts: a mass containing a mixture of fuel and oxygen is drawn into the cylinder by the descending piston, it is compressed by the piston rising, the mass is ignited by a spark releasing energy in the form of heat, the resulting gas is allowed to expand as it pushes the piston down, and finally the mass is exhausted as the piston rises a second time. As the piston is capable of moving along the cylinder, the volume of the gas changes with its position in the cylinder. The compression and expansion processes induced on the gas by the movement of the piston are idealized as reversible, i.e., no useful work is lost through turbulence or friction and no heat is transferred to or from the gas during those two processes. After the expansion is completed in the cylinder, the remaining heat is extracted and finally the gas is exhausted to the environment. Mechanical work is produced during the expansion process and some of that used to compress the air mass of the next cycle. The mechanical work produced minus that used for the compression process is the net work gained and that can be used for propulsion or for driving other machines. Alternatively the net work gained is the difference between the heat produced and the heat removed.
Process 0–1 intake stroke (blue shade)
A mass of air (working fluid) is drawn into the cylinder, from 0 to 1, at atmospheric pressure (constant pressure) through the open intake valve, while the exhaust valve is closed during this process. The intake valve closes at point 1.
Process 1–2 compression stroke (B on diagrams)
Piston moves from crank end (BDC, bottom dead centre and maximum volume) to cylinder head end (TDC, top dead centre and minimum volume) as the working gas with initial state 1 is compressed isentropically to state point 2, through compression ratio . Mechanically this is the isentropic compression of the air/fuel mixture in the cylinder, also known as the compression stroke. This isentropic process assumes that no mechanical energy is lost due to friction and no heat is transferred to or from the gas, hence the process is reversible. The compression process requires that mechanical work be added to the working gas. Generally the compression ratio is around 9–10:1 for a typical engine.
Process 2–3 ignition phase (C on diagrams)
The piston is momentarily at rest at TDC. During this instant, which is known as the ignition phase, the air/fuel mixture remains in a small volume at the top of the compression stroke. Heat is added to the working fluid by the combustion of the injected fuel, with the volume essentially being held constant. The pressure rises and the ratio <math>(P_3/P_2)</math> is called the "explosion ratio".
Process 3–4 expansion stroke (D on diagrams)
right|349x349px|Otto CycleThe increased high pressure exerts a force on the piston and pushes it towards the BDC. Expansion of working fluid takes place isentropically and work is done by the system on the piston. The volume ratio <math>V_4/V_3</math> is called the "isentropic expansion ratio". (For the Otto cycle is the same as the compression ratio <math>V_1/V_2</math>). Mechanically this is the expansion of the hot gaseous mixture in the cylinder known as expansion (power) stroke.
Process 4–1 idealized heat rejection (A on diagrams)
The piston is momentarily at rest at BDC. The working gas pressure drops instantaneously from point 4 to point 1 during a constant volume process as heat is removed to an idealized external sink that is brought into contact with the cylinder head. In modern internal combustion engines, the heat-sink may be surrounding air (for low powered engines), or a circulating fluid, such as coolant. The gas has returned to state 1.
Process 1–0 exhaust stroke
The exhaust valve opens at point 1. As the piston moves from "BDC" (point 1) to "TDC" (point 0) with the exhaust valve opened, the gaseous mixture is vented to the atmosphere and the process starts anew.
Cycle analysis
In this process 1–2 the piston does work on the gas and in process 3–4 the gas does work on the piston during those isentropic compression and expansion processes, respectively. Processes 2–3 and 4–1 are isochoric processes; heat is transferred into the system from 2—3 and out of the system from 4–1 but no work is done on the system or extracted from the system during those processes. No work is done during an isochoric (constant volume) process because addition or removal of work from a system requires the movement of the boundaries of the system; hence, as the cylinder volume does not change, no shaft work is added to or removed from the system.
Four different equations are used to describe those four processes. A simplification is made by assuming changes of the kinetic and potential energy that take place in the system (mass of gas) can be neglected and then applying the first law of thermodynamics (energy conservation) to the mass of gas as it changes state as characterized by the gas's temperature, pressure, and volume.
During a complete cycle, the gas returns to its original state of temperature, pressure and volume, hence the net internal energy change of the system (gas) is zero. As a result, the energy (heat or work) added to the system must be offset by energy (heat or work) that leaves the system. In the analysis of thermodynamic systems, the convention is to account energy that enters the system as positive and energy that leaves the system is accounted as negative.
Equation 1a.
During a complete cycle, the net change of energy of the system is zero:
:<math>\Delta E = E_\text{in} - E_\text{out} = 0</math>
The above states that the system (the mass of gas) returns to the original thermodynamic state it was in at the start of the cycle.
Where <math>E_\text{in}</math> is energy added to the system from 1–2–3 and <math>E_\text{out}</math> is energy removed from the system from 3–4–1. In terms of work and heat added to the system
Equation 1b:
:<math>W_{1-2} + Q_{2-3} + W_{3-4} + Q_{4-1} = 0</math>
Each term of the equation can be expressed in terms of the internal energy of the gas at each point in the process:
<math display=block>\begin{align}
W_{1-2} &= U_2 - U_1 \\
Q_{2-3} &= U_3 - U_2 \\
W_{3-4} &= U_4 - U_3 \\
Q_{4-1} &= U_1 - U_4
\end{align}</math>
The energy balance Equation 1b becomes
:<math>W_{1-2} + Q_{2-3} + W_{3-4} + Q_{4-1} = \left(U_2 - U_1\right) + \left(U_3 - U_2\right) + \left(U_4 - U_3\right) + \left(U_1 - U_4\right) = 0</math>
To illustrate the example we choose some values to the points in the illustration:
<math display=block>\begin{align}
U_1 &= 1 \\
U_2 &= 5 \\
U_3 &= 9 \\
U_4 &= 4
\end{align}</math>
These values are arbitrarily but rationally selected. The work and heat terms can then be calculated.
The energy added to the system as work during the compression from 1 to 2 is
:<math>\left(U_2 - U_1\right) = \left(5 - 1\right) = 4</math>
The energy added to the system as heat from point 2 to 3 is
:<math>\left({U_3 - U_2}\right) = \left(9 - 5\right) = 4</math>
The energy removed from the system as work during the expansion from 3 to 4 is
:<math>\left(U_4 - U_3\right) = \left(4 - 9\right) = -5</math>
The energy removed from the system as heat from point 4 to 1 is
:<math>\left(U_1 - U_4\right) = \left(1 - 4\right) = -3</math>
The energy balance is
:<math>\Delta E = + 4 + 4 - 5 - 3 = 0</math>
Note that energy added to the system is counted as positive and energy leaving the system is counted as negative and the summation is zero as expected for a complete cycle that returns the system to its original state.
From the energy balance the work out of the system is:
:<math>\sum \text{Work} = W_{1-2} + W_{3-4} = \left(U_2 - U_1\right) + \left(U_4 - U_3\right) = 4 - 5 = -1</math>
The net energy out of the system as work is -1, meaning the system has produced one net unit of energy that leaves the system in the form of work.
The net heat out of the system is:
:<math>\sum \text{Heat} = Q_{2-3} + Q_{4-1} = \left(U_3 - U_2\right) + \left(U_1 - U_4\right) = 4 -3 = 1</math>
As energy added to the system as heat is positive. From the above it appears as if the system gained one unit of heat. This matches the energy produced by the system as work out of the system.
Thermal efficiency is the quotient of the net work from the system, to the heat added to system.
Equation 2:
<math display=block>\begin{align}
\eta &= \frac{- \left(W_{1-2} + W_{3-4}\right) }{Q_{2-3 = \frac{\left(U_1 - U_2\right) + \left(U_3 - U_4\right)}{ \left(U_3 - U_2\right)} \\
&=1+\frac{U_1 - U_4 }{ \left(U_3 - U_2\right)} = 1+\frac{(1-4)}{ (9-5)} = 0.25
\end{align}</math>
Alternatively, thermal efficiency can be derived by strictly heat added and heat rejected.
:<math>\eta=\frac{Q_{2-3} + Q_{4-1{Q_{2-3
=1+\frac{\left(U_1-U_4\right) }{ \left(U_3-U_2\right)} </math>
Supplying the fictitious values
<math>\eta=1+\frac{1-4}{9-5}=1+\frac{-3}{4}=0.25</math>
In the Otto cycle, there is no heat transfer during the process 1–2 and 3–4 as they are isentropic processes. Heat is supplied only during the constant volume processes 2–3 and heat is rejected only during the constant volume processes 4–1.
The above values are absolute values that might, for instance , have units of joules (assuming the MKS system of units are to be used) and would be of use for a particular engine with particular dimensions. In the study of thermodynamic systems the extensive quantities such as energy, volume, or entropy (versus intensive quantities of temperature and pressure) are placed on a unit mass basis, and so too are the calculations, making those more general and therefore of more general use. Hence, each term involving an extensive quantity could be divided by the mass, giving the terms units of joules/kg (specific energy), meters<sup>3</sup>/kg (specific volume), or joules/(kelvin·kg) (specific entropy, heat capacity) etc. and would be represented using lower case letters, u, v, s, etc.
Equation 1 can now be related to the specific heat equation for constant volume. The specific heats are particularly useful for thermodynamic calculations involving the ideal gas model.
:<math>C_\text{v} = \left(\frac{\delta u}{\delta T}\right)_\text{v}</math>
Rearranging yields:
:<math>\delta u = (C_\text{v})(\delta T)</math>
Inserting the specific heat equation into the thermal efficiency equation (Equation 2) yields.
:<math>\eta = 1-\left(\frac{C_\text{v}(T_4 - T_1)}{ C_\text{v}(T_3 - T_2)}\right)</math>
Upon rearrangement:
:<math>\eta = 1-\left(\frac{T_1}{T_2}\right)\left(\frac{T_4/T_1-1}{T_3/T_2-1}\right)</math>
Next, noting from the diagrams <math>T_4/T_1 = T_3/T_2</math> (see isentropic relations for an ideal gas), thus both of these can be omitted. The equation then reduces to:
Equation 2:
:<math>\eta = 1-\left(\frac{T_1}{T_2}\right)</math>
Since the Otto cycle uses isentropic processes during the compression (process 1 to 2) and expansion (process 3 to 4) the isentropic equations of ideal gases and the constant pressure/volume relations can be used to yield Equations 3 & 4.
Equation 3:
:<math>\left(\frac{T_2}{T_1}\right)=\left(\frac{p_2}{p_1}\right)^{(\gamma-1)/{\gamma</math>
Equation 4:
:<math>\left(\frac{T_2}{T_1}\right)=\left(\frac{V_1}{V_2}\right)^{(\gamma-1)}</math>
::where
::<math>{\gamma} = \left(\frac{C_\text{p{C_\text{v\right)</math>
::<math>{\gamma}</math> is the specific heat ratio
::::The derivation of the previous equations are found by solving these four equations respectively (where <math>R</math> is the specific gas constant):
::::<math>C_\text{p} \ln\left(\frac{V_1}{V_2}\right) - R \ln \left(\frac{p_2}{p_1}\right) = 0</math>
::::<math>C_\text{v} \ln\left(\frac{T_2}{T_1}\right) - R \ln \left(\frac{V_2}{V_1}\right) = 0</math>
::::<math>C_\text{p} = \left(\frac{\gamma R}{\gamma-1}\right)</math>
::::<math>C_\text{v} = \left(\frac{R}{\gamma-1}\right)</math>
Further simplifying Equation 4, where <math>r</math> is the compression ratio <math>(V_1/V_2)</math>:
Equation 5:
:<math>\left(\frac{T_2}{T_1}\right) = \left(\frac{V_1}{V_2}\right)^{(\gamma-1)} = r^{(\gamma-1)}</math>
From inverting Equation 4 and inserting it into Equation 2 the final thermal efficiency can be expressed as:
