Putting some numbers on the diesel engine
The ultimate goal of the diesel engine is to convert the potential energy of the diesel fuel into mechanical energy that moves the car forward. It has already been explained that the combustion reaction of the diesel fuel is responsible for this. The reaction is 4 C12H23 +71 O2 –> 48 CO2 + 46H2O. Of course there is more going on. This is for the complete combustion of diesel, which does not actually happen. There are other products that can include CO and unburned fuel. When the reaction is not the complete combustion this results in the reaction yielding less energy. This happens when there is a lack of oxygen so not all of the fuel can combust and can also be seen in a Bunsen burner. For simplicities sake, we will assume the diesel fuel completely combusts.
The combustion of diesel fuel is clearly exothermic, which can be seen from the energy that is released as light and heat. This means the change in enthalpy of the reaction has to be negative. The change in enthalpy of a reaction is equal to the change in enthalpy of the products minus the change in enthalpy of the reactants. With numbers that can easily be found on the internet or in the appendix of a chemistry book you can find the exact change in enthalpy for one mole of diesel fuel. The heat of formation of diesel, oxygen, carbon dioxide, and water respectively are 6,700 kJ/mole (converted from kJ/kg and assuming the a molecular formula of C12H23), 0kJ/mole, -393.5 kJ/mole, and -242 kJ/mole. If you multiply all of those numbers by the moles present and subtract reactants from products you get the change in enthalpy for the combustion of diesel. It is 46 *(-242) + 48 * (-393.5) – 4 * (6,700) you get -56,000 kJ as the heat of formation for the combustion reaction for diesel.