Configure Simscape Model with Mapped Engine Variants
R2026bThis example shows the steps for configuring a conventional or hybrid electric vehicle (HEV) in the Virtual Vehicle Composer app using the Simscape™ template with a mapped spark-ignition (SI) or compression-ignition (CI) engine and controller. The example also shows how to optionally resize the engine before generating the vehicle model. The mapped engine provides more options to adjust calibration settings and analyze the effects of engine size and calibration on vehicle performance.

Note
If you want to resize the engine, you edit a block mask callback in Step 2 and then run the resize operation from the engine dynamometer model. This step is optional.
| Step | Link | Description |
|---|---|---|
| 1 | Set Up Workspace and Start Virtual Vehicle Composer | Initialize the environment, launch the Virtual Vehicle Composer, and confirm the setup of a Simscape model. |
| 2 | Resize Engine | Optionally, open the engine dynamometer model and update the engine resize callback to resize engine. |
| 3 | Create Virtual Vehicle | Build the virtual vehicle. |
| 4 | Enable Mapped Engine Variant | Edit the engine block parameters in the Simulink® Variant Manager™. |
| 5 | Enable Engine Control Unit Variant | Edit the Engine Control Unit block parameters in the Simulink Variant Manager. |