Modeling and simulation of non-ideal combustion