Setup Virtual Vehicle
Use the Virtual Vehicle Composer app to configure your virtual vehicle. First, specify the project and model name, powertrain architecture, model template, and vehicle dynamics.
In the Virtual Vehicle Composer app, on the Composer tab, click New. The app opens a default virtual vehicle template and creates virtual vehicle project files.
For this example, configure an electric vehicle (EV) that uses a Simulink® model template with longitudinal vehicle dynamics. Set:
Project name to
VVProj
.Project folder to
C:\Users\
.<user_name>
\MATLAB\Projects\examplesModel name to
ConfiguredVirtualVehicleModel
.Powertrain Architecture to
Electric Vehicle 1EM
.Model template to
Simulink
.Vehicle dynamics to
Longitudinal vehicle dynamics
.
Click Create.
After completing this step, see Configure Virtual Vehicle Data.
More About
Powertrain Architecture
Use the Powertrain
Architecture parameter to specify the powertrain architecture. By
default, the parameter is set to Conventional Vehicle
.
The conventional vehicle architecture has a spark-ignition (SI) or
compression-ignition (CI) internal combustion engine, transmission, chassis, and
associated powertrain control algorithms. You can also select Electric
Vehicle 1EM
to specify an electric vehicle (EV) powertrain
architecture.
If you have Powertrain Blockset™, you can specify model architectures for hybrid electric vehicles (HEVs).
The HEV and EV model architectures include an internal combustion engine, chassis, transmission, battery, motor, generator, and associated powertrain control algorithms.
Model Template
Use the Model
template parameter to specify a Simulink
or Simscape
vehicle plant and powertrain architecture. By
default, the virtual vehicle uses a Simulink
model
template. If you have Simscape™
Driveline™, you can configure the vehicle plant and powertrain architecture with
Simscape subsystems that model a conventional vehicle.
If you have Simscape Driveline and Simscape Electrical™, you can configure the vehicle plant and powertrain architecture with Simscape subsystems that model EVs and HEVs.
Vehicle Dynamics
Use the Vehicle Dynamics parameter to configure the virtual vehicle dynamics.
Longitudinal vehicle dynamics
— Suitable for fuel economy and energy management analysis.Combined longitudinal and lateral vehicle dynamics
— If you have Vehicle Dynamics Blockset™, you can specify dynamics suitable for vehicle handling, stability, and ride comfort analysis.
Note
The virtual vehicle uses the Z-up coordinate system as defined in SAE J670 and ISO 8855.
See Also
Related Topics
- Coordinate Systems in Vehicle Dynamics Blockset (Vehicle Dynamics Blockset)
- Create Projects
- Get Started with the Virtual Vehicle Composer