A method for determining airflow to a cylinder of an internal combustion
engine, such airflow passing to the cylinder through an intake manifold.
The method includes providing a model of the intake manifold, such model
providing a relationship between expected output airflow from the intake
manifold in response to airflow into the intake manifold; determining
from the model the expected output airflow from the intake manifold from
a previous commanded airflow into the intake manifold; determining a
compensation airflow required for the input airflow to the intake
manifold to drive the expected output from the intake manifold towards
the desired cylinder airflow; and providing such compensation airflow to
the intake manifold.