I'm studying this derivation of the Diesel engine theoretical efficiency:
Here the ideal gas law is used in many occasions. Why is it applicable here? I've been taught that the ideal gas law is a useful approximation only when gas pressures and densities are small. But aren't the pressures of combusting gasses inside cylinders of engines quite high if they are able to provide enough torque to move heavy vehicles? I understand that overall there derivations assume highly ideal conditions are are only idealizations of true engines but why can we apply the ideal gas law to combustion engines?
I've also seen ideal gas approximation used in analysis of jet engines, so I could ask the same question here: Aren't the pressures and temperatures too high so that the ideal gas law is not a very good approximation?