Two-stroke cycle engines, Performance, Computer simulation, Gas flow