This internal combustion engine model includes mechanical, gas-flow and thermal subsystems to model the four strokes in the engine cycle. Time-based modeling allows for high fidelity without the need for crank-angle-based equation derivations. This multidomain model can be easily customized to meet individual requirements.