A residual ratio factor characterizing the amount of residual exhaust gas
left in a selected cylinder at the end of a piston intake stroke is
determined from tabular and surface models based on previously gathered
dynamometer data from a test vehicle at various engine speeds. The
residual ratio factor is then used to calculate the mole fractions of air
and residual exhaust gas in the selected cylinder, which, in turn, are
used to determine mass airflow at an engine intake port at the end of the
intake stroke. The mass airflow can then be used to derive further models
for determining an engine operating parameter, such as fuel/air ratio,
required for achieving at preselected vehicle operating condition.