Diesel engines have an internal combustion process in which air is packed into the cylinder and the air is compressed…