Internal combustion engine

An internal combustion engine is an engine in which combustion, or the burning of fuel, occurs on the inside. This differs from external combustion engines where the fire is outside the engine, such as a steam engine. 
There are many kinds of internal combustion engine but the term often means the machine that Niklaus Otto invented. In this kind, fire makes pressure increase inside a sealed box (cylinder). The pressure pushes a rod which is attached to a wheel. The rod pushes the wheel and makes it spin around. The spinning wheel is attached to other wheels, such as four car wheels, with a belt or a chain. The engine is very strong and can make all the wheels move. 
Engine layouts.
There can be many configurations of internal combustion engines such as the single piston engine, the inline engine, the flat engine, the V engine, the VR engine, the W engine, the X engine, the U engine, the H engine, the horizontal K engine, the opposed piston engine, the delta engine, the Wankel or rotary engine and the radial engine which is commonly used in planes. 
Common layouts.
The most common layouts among these engines are the V layout, and the inline layout. In the V engine, the pistons are aligned in a V shape if you look at them from the front. There can be V twin engines, with 2 pistons, V3 engines, V4 engines, V6 engines, V8 engines, V10 engine, V12 engines, V14 engines, V16 engines, V18 engine, V20 engine and V24 engines. The VR layout is the same as a V layout except the angle between the V shape is smaller making the overall drive smoother. In inline engines, the pistons are aligned in a straight line. There can be inline 1 engines, also called a singular piston engine, all the way up to a straight 14 which was mainly used in older models of cars. Flat engines are the same as inline engines but are aligned horizontally. 
W, X, U, H, Horizontal K, Delta and opposed piston engines all have different configurations. In the W engine, the pistons are aligned in a W shape if looked at from the front. The Bugatti Chiron, one of the fastest cars in the world, features a W engine. The pistons in a X are aligned to look like an X from the front. In the U engine, there a 2 inline engine with separate crankshafts and a shared output shaft. When looked at from the front of the engine block, it resembles a U shape. H engines are U engines except there are 2 more inline engines attached to the bottom of the existing inline engines from the U engine. The H and the U layout can be configured vertically or horizontally. In delta engines, the pistons are aligned in a triangle shape. However, there are 2 pistons per cylinder/combustion chamber, and therefore the minimum amount of pistons in a delta engine is 6. Horizontal K engines persist of 2 flat pistons facing opposite each other at the bottom and a V engine above them, making them look like a horizontal K. The Opposed piston engines also have 2 pistons per cylinder. They can be aligned Vertically or Horizontally. When there are only 2 pistons in the engine, they can also be called boxer engine. 
Radial engines.
Radial engines are commonly used in planes but can be rarely used in cars. An example of this is the Porsche 356 and the 1939 Plymouth Pickup. The pistons in are radial engine are aligned in a star shape. When having multiple sets of pistons, the engines can be stacked beside each other. 
Rotary/Wankel engines work the same as a piston engine except it doesn't have a piston but instead has a rotor that also cycles through the 4 main stages of engines (intake, compression, combustion and exhaust). 
Initial startup.
As well as there are many engine layouts, there are many different parts to an engine. Some of these include pistons, camshafts, crankshafts, timing belts, valves and more. All parts of an engine need to be fully functional for it to work and all parts have a separate role. An engine works by first sending power from the car battery to the ignition coil which then causes an engine spark. The spark then ignites combustion in the cylinders and the combustion starts the engine. 
There can be petrol or diesel engines in a car. In petrol or gasoline engines, it is required to have an ignition system to burn the fuel and air mixture. However, in diesel engines, the an ignition system is not required to burn the fuel but instead, they use a different type of fuel called diesel, similar to heating oil, and the fuel is burnt through extreme compression. 
Mechanics.
The car is started using a powerful electric motor, called a starter motor. The car is started using a key which is connected to the starter solenoid (a device that converts electrical energy into mechanical energy or movement) and when the key is turned into the start position, the ignition switch verifies the key belongs to the car normally using an immobilizer system and then connects a circuit, sending power to the starter relay. It then sends 2 jolts of electricity into the solenoid, the larger burst being directly from the battery pack in the car and the other being from the ignition. The magnetic field created from the solenoid connects two metal (metal being a conductor to electricity) contact points, one being the solenoid plunger, together which then relays the electricity into the starter motor. The plunger also engages a fork which pushes the pinion gear (connected to the starter motor) to engage the flywheel automatically, starting the engine. 
Forced induction and cooling.
For extra power, more air is needed to increase the energy evolved per unit of fuel. This is where forced induction must take place. There are some ways of creating forced induction such as turbochargers and superchargers. Turbochargers rely on the volume and velocity of the exhaust to spin the turbine wheel in the middle of the turbocharger. Turbochargers should consume less power from the engine than superchargers and therefore suffer bad throttle response. This delay can also be referred to as turbo lag. Smaller turbochargers spool quickly and deliver more boost pressure at lower engine speeds but suffers at higher RPMs. On the contrary, bigger turbochargers can deliver more power at higher revs but suffers low throttle response. There can be many turbochargers in a car, but the most common amount being 1 and 2. Superchargers on the other hand, have close to no lag time as the compressor is constantly spinning proportionally to the engine speed. However, they require torque from the engine to operate. Some common types of superchargers are the Roots-type supercharger, a Screw-type supercharger, and a Centrifugal-type supercharger. In a Roots-type supercharger there are paddles on two drums that are continuously rotating, that forces air into the intake. The Roots-type supercharger is a positive displacement device and therefore has the advantage of producing the same pressure ratio at any engine speed. A Screw-type supercharger, like the Roots-type supercharger, is a positive displacement device. They consist of 2 screws that compresses the air and are more efficient than roots type as they create a cooler air output than a roots supercharger but are more difficult to manufacture. A centrifugal-type supercharger, is not a positive displacement device. Although it looks like a turbocharger, they are very different as the power source of the centrifugal supercharger is horsepower from the engines crankshaft whereas a turbocharger uses the exhaust gas to spin the compressor. 
When using forced induction, the air temperature rises dramatically. To cool the air at higher temperatures, an intercooler is needed. An intercooler cools the air before it enters the cylinder (combustion chamber) using air or water. When hot air enters the combustion chamber, it decreases the fuel efficiency as warm air holds less oxygen than cool air. An air to air intercooler uses the cool air from outside to cool the existing hot air as it enters the intercooler. The more surface area the intercooler has the cooler the air can get. There are 2 types of air to air intercooler, the bar and plate intercooler and the tube and fin intercooler. Bar and plate intercoolers can cool the air to lower temperature but a tube and fin intercooler can cost less and also weight less. In air to water intercoolers, instead of using air from outside, it uses a cool liquid to cool the air as it passes though and then uses a radiator to cool the cooling liquid. Air to water intercooler are more complex, heavier and more expensive than air to water intercoolers but can be more efficient than them. 
Electrical accessories.
The car battery is used to power important electrical components such as components used to start the car and stabilize the voltage that keeps the engine running by converting chemical energy into electrical energy. 
All the electrical accessories in a car are controlled and powered by an alternator which converts some of the engines mechanical energy into electrical energy. The alternator also charges the internal battery of the car. However the alternator is powered by the timing belt which only moves once the car is started and therefore it cannot be used to start the car and that is why a battery is needed. The alternator works with a timing belt that rests on a pulley attached to the alternator that moves once the car is started. When the timing belt spins the pulley, it turns a rotator shaft attached to the pulley which spins magnets around a coil. The spinning magnets are responsible for creating a current known as alternating current (AC) around the coil and is then directed to the alternators rectifier which changes the AC into another current called direct current (DC). The DC current is used to power the car and its electrical systems. 
The cars internal computer, also know as the Electric Control Unit (ECU) decides many things some of which include the fuel injection, exhaust system requirements and throttle response and for petrol engines it also can control the spark plug timing to ignite the mixture of air and fuel in the cylinder. It is primarily powered by the alternator but before the car is started, it must be powered by the battery as it decides the fuel injection and spark timing which are one of the key factors in getting a car started. The internal battery of the car also works as a surge protector (protecting the ECU from from AC voltage spikes that typically last from 1 to 30 microseconds and can reach over 1,000 volts) for the ECU. 
Transmission.
Cars can also have gears. The gears all controlled by the transmission. They can either be manual, automatic or Continuously Variable Transmission (CVT). Gear ratios 
Intake and exhaust.
The intake manifold is where the car gets the oxygen to burn the fuel 
Exhaust in a car is the fumes that come out of the pipe or pipes (normally in back of the car but can be on the sides) 
Other information.
Engines need oil to make them slippery or the moving parts would grind together and stick. Parts of a car engine are measured to 0.01 of a millimetre and some engine parts fit together very tightly. 
Most road vehicles use the internal combustion engine today, and most of those use the four-stroke engine.
Gas turbines are internal combustion engines that work continuously, not by strokes. Rocket engines and guns are internal combustion engines but they do not turn wheels.