How a Rotary Engine Works.

Since a rotary engine is an internal combustion engine, its operation , like that of a piston engine, consists of four strokes. The engine's space is divided into four parts, and a particular stroke takes place in a particular part. So in one turn of the rotor the engine goes through all 4 strokes. The rotary engine (originally conceived and developed by Dr. Felix Wankel) is sometimes also called the Wankel engine or the Wankel rotary engine.
Operating principle.
Like a piston engine, a rotary engine uses the energy released when the air-fuel mixture burns. In a piston engine, the pressure created by burning fuel pushes the piston, which is connected via a connecting rod to the crankshaft, so linear motion is converted into the rotary motion needed to turn the car's wheels. In a rotary engine, combustion takes place in a chamber formed by part of the housing and a triangular rotor. It moves along a path that can be traced with a spirograph. The rotor divides the housing into three chambers. As the rotor moves around, the volume of each of the three chambers alternately increases and decreases. When one of the chambers expands, the air-fuel mixture is drawn into the engine; then comes compression, the mixture ignites and, expanding, pushes the rotor, and finally the exhaust gases are pushed out by the rotor's inertia.
Let's look at a modern car with a rotary engine.
Mazda pioneered the development of production cars that use rotary engines. The RX-7, which went on sale in 1978, was the most successful rotary-engined car. But it was preceded by a series of rotary-engined passenger cars, trucks and even buses, starting with the 1967 Cosmo Sport. The Mazda RX-8 is a new car from Mazda fitted with a new rotary engine, the RENESIS.
This naturally aspirated twin-rotor engine appeared in 2003 and produces about 250 horsepower.
Parts of a rotary engine.
A rotary engine's ignition system and fuel system are similar to those of a piston engine.

The rotor has three convex faces, each of which acts as a piston. Each face of the rotor has a recess that increases the amount of mixture that can be ignited. The apex of each face is a metal blade that forms a seal with the inner surface of the combustion chamber. Inside the rotor there is a gear ring cut into the center of one side.

The housing is roughly oval in shape. The shape of the housing is designed so that the three tips of the rotor always touch the walls of the housing, forming three sealed volumes of gas. Only one process takes place in each part of the housing: intake, compression, combustion or exhaust. The intake and exhaust ports are located in the housing and aren't closed by valves as in a piston engine. The exhaust port is connected directly to the exhaust pipe, and the intake port to the throttle.

The shaft has four lobes positioned eccentrically, that is, offset from the shaft's axis. Each rotor fits onto one of these lobes. This is the counterpart of the crankshaft in a piston engine. Since the lobes are eccentric, the rotor, as it turns, pushes the lobes. During operation the rotary engine heats up, and coolant circulates through the entire housing, carrying heat away from the engine.
How a rotary engine works.
The operating cycle of a rotary engine consists of four strokes. Let's look at each stroke in more detail.
Intake stroke.
The intake stroke begins when a tip of the rotor passes the intake port. As it rotates, the volume of the intake chamber increases and the air-fuel mixture is drawn in. When the next tip of the rotor passes the intake port, the mixture is sealed in and the compression stroke begins.

Compression stroke.
The stator is shaped so that the air-fuel mixture is compressed as rotation continues. By the time the mixture is in contact with the spark plugs, the combustion chamber volume is at its minimum.
Combustion stroke.
Most rotary engines have two spark plugs. The combustion chamber is elongated, and with one plug the mixture burns very slowly. The pressure created by combustion drives the rotor in the same direction until one of the rotor tips reaches the exhaust port.
Exhaust stroke.
After the rotor tip passes the exhaust port, the combustion products are expelled into the exhaust system. The stator is shaped so that the chamber holding the exhaust gases contracts, pushing out all the exhaust gases. This completes the cycle.
So one working cycle takes place per turn of the rotor.
Some characteristics that distinguish a rotary engine from a typical piston engine.
Fewer moving parts.
A rotary engine has far fewer moving parts than a piston engine. A twin-rotor engine has only 3 moving parts: two rotors and the output shaft. Even the simplest four-cylinder piston engine has at least 40 moving parts: pistons, connecting rods, camshaft, valves, valve springs, rocker arms, timing belt, gears and crankshaft. This minimization of moving parts can provide higher reliability. That's why some aircraft manufacturers use rotary engines instead of piston engines.
All the parts of a rotary engine rotate continuously in one direction and don't abruptly change direction like the piston in a piston engine.
Designing a rotary engine is more complicated than a piston engine, and the cost of producing one is very high because they aren't mass-produced. As a rule, rotary engines consume more fuel than piston engines; this is due to lower thermodynamic efficiency caused by the elongated combustion chamber and the low compression ratio.