Thermochemistry study of internal combustion engine