Theory of ion flow dynamics