Thermodynamic based prediction Model for NOx and CO