MATLAB Examples

Four Cylinder IC Engine with Virtual Reality Scene

This example shows how to model a four-cylinder internal combustion engine. Major functions are organized into subsystems. Simscape™ Multibody™ First Generation blocks simulate the motion of the crank, connecting rods, and pistons. MATLAB® Function block controls the ignition timing of the cylinders. Simulink® blocks model the idealized gas dynamics. The Control subsystem provides user-adjustable fuel rate control.