configure, build, and analyze a virtual automotive vehicle -凯发k8网页登录
configure, build, and analyze a virtual automotive vehicle
since r2022a
open the virtual vehicle composer app
matlab® toolstrip: on the apps tab, under automotive, click the virtual vehicle composer icon.
matlab command window: enter
virtualvehiclecomposer
.
examples
parameters
setup
start here to quickly enter your virtual vehicle class, powertrain architecture, model template, and vehicle dynamics.
project path
— project location
c:\users\username
\matlab\projects\examples
(default)
username
\matlab\projects\examplesproject location, specified as a character vector.
note
the combined project path and configuration name must be less than 80 characters.
data types: char
configuration name
— name of vehicle and test configuration
configuredvirtualvehicle
(default)
name of the vehicle and test configuration.
note
the combined project path and configuration name must be less than 80 characters.
data types: char
vehicle class
— type of vehicle
passenger car
(default) | motorcycle
use this parameter to specify the vehicle type.
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | four-wheeled passenger car. |
| ✔ | two-wheeled motorcycle. |
dependencies
if you set vehicle class to
motorcycle
, the app sets the parameter model
template to simscape
.
if you have simscape and these simscape add-ons, you can use the app to configure vehicles with simscape subsystems:
simscape driveline
simscape electrical
simscape fluids
simscape multibody — required for motorcycles
powertrain architecture
— conventional, electric (ev), or hybrid electric (hev) passenger vehicle. conventional or electric motorcycle
conventional vehicle
| electric vehicle 1em
| electric vehicle 2em
| electric vehicle 3em dual front
| electric vehicle 3em dual rear
| electric vehicle 4em
| hybrid electric p0
| hybrid electric p1
| hybrid electric p2
| hybrid electric p3
| hybrid electric p4
| hybrid electric mm
| hybrid electric ips
| conventional motorcycle with chain drive
| electric motorcycle with chain drive
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
note
to refer back to your powertrain architecture diagram, click the setup tab. you will see the configuration of the system, including motor placement.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | vehicle with an si or ci internal combustion engine, transmission, and corresponding control units. may be fwd, rwd, or awd. |
| ✔ | ✔ | vehicle with one electric motor, and battery, driveline, and corresponding control units. may be fwd, rwd, or awd. |
| ✔ | vehicle with one motor driving the front axle and one motor driving the rear axle; battery, driveline, and corresponding control units. | |
| ✔ | vehicle with two independent motors driving the front axle and one motor driving the rear axle; battery, driveline, and corresponding control units. | |
| ✔ | vehicle with one motor driving the front axle and two independent motors driving the rear axle; battery, driveline, and corresponding control units. | |
| ✔ | vehicle with one independent motor driving each wheel; battery, and corresponding control units. | |
hybrid electric p0 | ✔ | vehicle with p0 hybrid-electric propulsion, including an si engine, transmission, motor, battery, and corresponding control units. | |
hybrid electric p1 | ✔ | vehicle with p1 hybrid-electric propulsion, including an si engine, transmission, motor, battery, and corresponding control units. | |
hybrid electric p2 | ✔ | vehicle with p2 hybrid-electric propulsion, including an si engine, transmission, motor, battery, and corresponding control units. | |
hybrid electric p3 | ✔ | vehicle with p3 hybrid-electric propulsion, including an si engine, transmission, motor, battery, and corresponding control units. | |
hybrid electric p4 | ✔ | vehicle with p4 hybrid-electric propulsion, including an si engine, transmission, motor, battery, and corresponding control units. | |
hybrid electric mm | ✔ | vehicle with multi-mode hybrid-electric propulsion, including an si engine, transmission, motor, generator, battery, and corresponding control units. | |
hybrid electric ips | ✔ | vehicle with input power split hybrid-electric propulsion, including an si engine, transmission, motor, generator, battery, and corresponding control units. | |
| ✔ | motorcycle with an si engine, transmission and chain reduction, and corresponding control units. requires simscape. | |
| ✔ | motorcycle with an electric motor, gear and chain reductions, battery, and corresponding control units. requires simscape. |
if you have simscape and simscape add-ons, you can use the app to configure vehicles that incorporate simscape subsystems, including motorcycles.
model template
— vehicle plant model and powertrain architecture template
simulink
(default) | simscape
use this parameter to specify a simulink
or
simscape
vehicle plant model and powertrain architecture.
by default, the virtual vehicle uses a simulink
model
template.
if you have simscape and these simscape add-ons, you can use the app to configure vehicles with simscape subsystems:
simscape driveline
simscape electrical
simscape fluids
simscape multibody — required for motorcycles
dependencies
if you set vehicle class to
motorcycle
, the app sets model
template to simscape
. you cannot configure a
motorcycle and select simulink as model template.
vehicle dynamics
— virtual vehicle longitudinal (3 dof) or combined (6 dof) dynamics
longitudinal vehicle dynamics
(default) | combined longitudinal and lateral vehicle
dynamics
vehicle class setting | vehicle dynamics setting | goal |
---|---|---|
passenger car |
| fuel economy and energy management analysis. |
| vehicle handling, stability, and ride comfort analysis. | |
motorcycle |
| fuel economy and energy management analysis. |
| motorcycle handling, stability, and ride comfort analysis. |
the virtual vehicle uses the z-up coordinate system as defined in sae j670 and iso 8855. for more information, see (vehicle dynamics blockset).
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | three degree-of-freedom (dof) conventional vehicle model suitable for fuel economy and energy management analysis. |
| ✔ | six dof conventional vehicle suitable for vehicle handling, stability, and ride comfort analysis. not available with
| |
| ✔ | three dof motorcycle model suitable for fuel economy and energy management analysis. the model implements a longitudinal in-plane motorcycle body model to calculate longitudinal, vertical, and pitch motion. available if you have simscape and simscape add-ons. | |
out-of-plane motorcycle dynamics | ✔ | six dof motorcycle suitable for vehicle handling, stability, and ride comfort analysis. available if you have simscape and simscape add-ons. |
dependencies
if you set vehicle class to passenger
car
and then set model template to
simscape
, the app sets vehicle
dynamics to longitudinal vehicle
dynamics
.
data and calibration
use the app to quickly set your virtual vehicle parameters, such as chassis and suspension, tires, powertrain, and driver. select one of the options for each parameter. the available options depend on your setup selections.
parameter | description |
---|---|
chassis | select the chassis type. the available options depend on the vehicle class and vehicle dynamics settings. |
tire | select the tire model and tire data. the available options depend on the vehicle class and vehicle dynamics settings. |
brake type | select the brake type. use the brake control unit parameter to specify the brake control. |
powertrain | select the engine, electric motors, transmission, drivetrain, differential system, and electrical system parameters. the available options depend on the powertrain architecture selected. |
driver/rider | if you set vehicle class to if you set vehicle class to
|
environment | use the parameter setting |
steering system | if you set vehicle class to if you set vehicle
class to |
suspension | if you set vehicle class to if you set vehicle
class to |
chassis
— chassis type
vehicle body 1dof longitudinal
| vehicle body 3dof longitudinal
| vehicle body 6dof longitudinal and lateral
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | chassis model for 1dof longitudinal vehicle dynamics. available
when you set vehicle dynamics to
|
| ✔ | ✔ | chassis model for 3dof longitudinal vehicle dynamics. available
when you set vehicle dynamics to
|
vehicle body 6dof longitudinal and
lateral | ✔ | chassis model for 6dof longitudinal and lateral vehicle dynamics.
available when you set vehicle dynamics to
|
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
tire
— model and specifications of tires
mf tires longitudinal
| fiala tires longitudinal and lateral
| mf tires longitudinal and lateral
| longitudinal combined slip tire
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | tire model suitable for longitudinal vehicle dynamics studies, including fuel economy and energy management analysis. |
fiala tires longitudinal and lateral
| ✔ | tire model suitable for lateral vehicle dynamics studies, including vehicle handling, stability, and ride comfort analysis. implements a simplified tire with lateral and longitudinal slip capability. uses a translational friction model to calculate the forces and moments during combined longitudinal and lateral slip. consider this setting if you do not have the tire coefficients needed by the magic formula and are conducting studies that do not involve extensive nonlinear combined lateral slip or lateral dynamics. | |
mf tires longitudinal and lateral | ✔ | tire models suitable for lateral vehicle dynamics studies, including vehicle handling, stability, and ride comfort analysis. tire model implements the longitudinal and lateral behavior of a wheel characterized by the magic formula. you can use tire data parameter to specify fitted tire data sets provided by the global center for automotive performance simulation (gcaps) for tires, including:
| |
| ✔ |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
brake type
— virtual vehicle brakes
disc
| drum
| mapped
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | brake model converts the brake fluid pressure into a braking torque. |
| ✔ | ✔ | brake model converts the brake fluid pressure and brake geometry into a braking torque. |
mapped | ✔ | ✔ | brake torque is a mapped function of the wheel speed and the brake fluid pressure. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
brake control unit
— brake control
open loop
(default) | bang bang abs
| five-state abs and tcs
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | open loop brake control. the controller commands brake pressure as a sole function of the brake command. |
| ✔ | ✔ | anti-lock braking system (abs) feedback controller that switches between two states to regulate wheel slip, to minimize the error between the actual slip and the desired slip. here, the desired slip is the value where the friction coefficient of the tires reaches its maximum. |
five-state abs and tcs | ✔ | ✔ | five-state abs and traction control system (tcs) that uses logic-switching based on wheel deceleration and vehicle acceleration to control the braking pressure at each wheel. consider using five-state abs and tcs control to prevent wheel lock-up, decrease braking distance, or maintain yaw stability during maneuvers. the default abs parameters are set to work on roads that have a constant friction coefficient scaling factor of 0.6. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
engine
— internal combustion engine
simple engine (si)
(default) | simple engine (ci)
| ci engine
| ci mapped engine
| si engine
| si mapped engine
| si deep learning engine
| fmu engine
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description | ||||
---|---|---|---|---|---|---|---|
simple engine (si) | ✔ | ✔ | simplified si engine model using a maximum torque versus engine speed table, two scalar fuel mass properties, and one scalar engine efficiency parameter to estimate engine torque and fuel flow. selecting | ||||
| ✔ | ✔ | simplified ci engine model using a maximum torque versus engine speed table, two scalar fuel mass properties, and one scalar engine efficiency parameter to estimate engine torque and fuel flow. selecting | ||||
| ✔ | compression-ignition (ci) engine modeled from intake to the exhaust port. selecting | |||||
| ✔ | mapped ci engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables. selecting if you have the model-based calibration toolbox™, you can generate a static calibration. select from options on calibrate from data. for more information, see . | |||||
| ✔ | spark-ignition (si) engine modeled from intake to exhaust port. selecting | |||||
| ✔ | ✔ | mapped si engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables. selecting if you have the model-based calibration toolbox, you can generate a static calibration. select from options on calibrate from data. for more information, see . | ||||
| ✔ | deep learning si engine. available if you have the deep learning toolbox™ and statistics and machine learning toolbox™ licenses. use this setting to generate a dynamic deep learning si engine model to use for powertrain control, diagnostic, and estimator algorithm design. selecting | |||||
| ✔ | ✔ | the functional mockup unit (fmu) engine implements an fmu block with these engine inputs and outputs.
to implement the fmu engine model:
|
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
transmission
— virtual vehicle transmission
ideal fixed gear transmission
| automatic transmission with torque converter
| automated manual transmission
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | idealized fixed-gear transmission without a clutch or synchronization. use this setting to model the gear ratios and power loss when you do not need a detailed transmission model. |
| ✔ | automatic transmission with planetary gears and a torque converter. | |
| ✔ | a manual transmission with additional actuators and an electronic control unit (ecu) to regulate clutch and gear selection based on commands from a controller. clutch and synchronizer engagement rates are linear and adjustable. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
passenger car
.set powertrain architecture to any of these options:
conventional vehicle
hybrid electric vehicle p0
hybrid electric vehicle p1
hybrid electric vehicle p2
hybrid electric vehicle p3
hybrid electric vehicle p4
transmission control unit
— virtual vehicle transmission control
prndl controller
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | controller that executes forward, reverse, neutral, park, and n-speed gear shifts according to the selected shift schedule. you can supply multiple schedules and select them using a block input. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
passenger car
.set powertrain architecture to any of these options:
conventional vehicle
hybrid electric vehicle p0
hybrid electric vehicle p1
hybrid electric vehicle p2
hybrid electric vehicle p3
hybrid electric vehicle p4
drivetrain
— virtual vehicle drivetrain
front wheel drive
(default) | rear wheel drive
| all wheel drive
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | drives both wheels on the front axle. |
rear wheel drive | ✔ | ✔ | drives both wheels on the rear axle. |
all wheel drive | ✔ | ✔ | drives all four wheels. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
front differential system
— final drive ratio and differential action
open differential
(default) | active differential
| limited slip differential
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | implements differential action with equal torque to both wheels. |
| ✔ | ✔ | couples active elements to an open differential to achieve the desired axle torque bias. not available if you set
model template to
|
| ✔ | ✔ | couples passive friction elements to an open differential to achieve the desired axle torque bias. |
dependencies
to enable this parameter, set vehicle class to
passenger car
and drivetrain to
front wheel drive
or all wheel
drive
.
rear differential system
— final drive ratio and differential action
open differential
(default) | active differential
| limited slip differential
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | implements differential action with equal torque to both wheels. |
| ✔ | ✔ | couples active elements to an open differential to achieve the desired axle torque bias. not available if you set
model template to
|
| ✔ | ✔ | couples passive friction elements to an open differential to achieve the desired axle torque bias. |
dependencies
to enable this parameter, set vehicle class to
passenger car
and drivetrain to
rear wheel drive
or all wheel
drive
.
axle interconnect
— coupling between front and rear axles
transfer case
(default)
coupling between front and rear axles, specified as a transfer case.
dependencies
to enable this parameter, set vehicle class to
passenger car
and drivetrain to
all wheel drive
.
dc-dc converter
— power electronics device to change voltage of supplied current
dc-dc converter
(default) | no dc-dc converter
dc-to-dc converter that supports bidirectional boost and buck (lower) operations.
dependencies
to enable this parameter, set vehicle class to
passenger car
and powertrain
architecture to one of these options:
electric vehicle
, wherex
emx
is 1, 2, or 4electric vehicle 3em dual front
electric vehicle 3em dual rear
hybrid electric vehicle p
, wherex
x
is 0, 1, 2, 3 or 4hybrid electric vehicle mm
hybrid electric vehicle ips
electric machine x
— virtual vehicle electric motor
electric vehicle 1em
| electric vehicle 2em
| electric vehicle 3em dual front
| electric vehicle 3em dual rear
| electric vehicle 4em
| hybrid electric vehicle p0
| hybrid electric vehicle p1
| hybrid electric vehicle p2
| hybrid electric vehicle p3
| hybrid electric vehicle p4
| hybrid electric vehicle mm
| hybrid electric vehicle ips
x
virtual vehicle electric machine settings for motor in location
x
as seen on the powertrain
architecture diagram on the setup pane.
dependencies
to enable this parameter, set vehicle class to
passenger car
and powertrain
architecture to one of these options:
electric vehicle
, wherex
emx
is 1, 2, or 4electric vehicle 3em dual front
electric vehicle 3em dual rear
hybrid electric vehicle p
, wherex
x
is 0, 1, 2, 3 or 4hybrid electric vehicle mm
hybrid electric vehicle ips
energy storage
— virtual vehicle energy storage type
mapped battery
| ideal voltage source
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | ✔ | open-circuit voltage and internal resistance are mapped functions of the state-of charge (soc) and battery temperature |
| ✔ | ✔ | constant-voltage source with infinite storage capacity |
dependencies
to enable this parameter, set vehicle class to
passenger car
and powertrain
architecture to one of these options:
electric vehicle
, wherex
emx
is 1, 2, or 4electric vehicle 3em dual front
electric vehicle 3em dual rear
hybrid electric vehicle p
, wherex
x
is 0, 1, 2, 3 or 4hybrid electric vehicle mm
hybrid electric vehicle ips
vehicle control unit
— vehicle system to direct the energy flows in electric and hybrid-electric vehicles
ev 1em with bms
| ev 2em
| ev 3em dual front
| ev 3em dual rear
| ev 4em
| hevp0 optimal
| hevp1 optimal
| hevp2 optimal
| hevp3 optimal
| hevp4 optimal
| hevmm rulebased
| hevips rulebased
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | powertrain architecture | description |
---|---|---|---|---|
ev 1em with bms | ✔ | ✔ | electric vehicle 1em | controls the motor with torque arbitration and power management. implements regenerative braking. |
ev 2em | ✔ | electric vehicle 2em | ||
ev 3em dual front | ✔ | electric vehicle 3em dual front | ||
ev 3em dual rear | ✔ | electric vehicle 3em dual rear | ||
ev 4em | ✔ | electric vehicle 4em | ||
| ✔ | hybrid electric vehicle p0 | implements an equivalent consumption minimization strategy (ecms) to control the energy management of hybrid electric vehicles (hevs). the strategy optimizes the torque split between the engine and motor to minimize energy consumption while maintaining the battery state of charge (soc). implements regenerative braking. | |
| ✔ | hybrid electric vehicle p1 | ||
| ✔ |
| ||
| ✔ |
| ||
hevp4 optimal | ✔ |
| ||
hevmm rulebased | ✔ |
| controls the motor, generator, and engine through a set of rules and decision logic implemented in stateflow®. implements regenerative braking. | |
hevips rulebased | ✔ |
|
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
driver
— virtual vehicle driver
longitudinal driver
| predictive driver
| predictive stanley driver
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
longitudinal driver | ✔ | ✔ | implements a longitudinal speed-tracking controller. |
| ✔ | tracks longitudinal velocity and a lateral displacement relative to a reference pose. available when you set vehicle
dynamics to | |
| ✔ | adjusts the steering angle command to match the current pose of a vehicle to a reference pose, given the vehicle's current velocity and direction. available when you set vehicle dynamics to
|
dependencies
to enable this parameter, on the setup pane, set vehicle
class to passenger
car
.
steering system
— virtual vehicle steering
kinematic steering
| mapped steering
| dynamic steering
| steering system
| no steering
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | kinematic model for ideal rack-and-pinion steering. gears convert the steering wheel rotation into linear rack motion. | |
| ✔ | mapped rack-and-pinion steering model. | |
| ✔ | dynamic model for ideal rack-and-pinion steering. gears convert the steering wheel rotation into linear rack motion. | |
| ✔ | steering system for ackerman and rack-and-pinion steering mechanisms. | |
| ✔ | no steering. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
passenger car
.set vehicle dynamics to
combined longitudinal and lateral vehicle dynamics
.
suspension
— virtual vehicle suspension system
kinematics and compliance independent
suspension
| macpherson front suspension solid axle rear
suspension
| kinematics and compliance twist beam
suspension
| no suspension
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | kinematics and compliance (k & c) test suspension characteristics measured from simulated or actual laboratory suspension tests. | |
| ✔ | independent macpherson front suspension and solid rear axle. | |
| ✔ | kinematics and compliance characteristics of:
| |
| ✔ | no suspension. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
passenger car
.set vehicle dynamics to
combined longitudinal and lateral vehicle dynamics
.
front tire
— linear front tire
linear front ssc tire
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | tire with linear force and moment model, using simscape modeling. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
rear tire
— linear rear tire
linear rear ssc tire
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | tire with linear force and moment model, using simscape modeling. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
front brake type
— brake type
disc
(default) | drum
| mapped
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | brake model converts the brake fluid pressure into a braking torque. | |
| ✔ | brake model converts the brake fluid pressure and brake geometry into a braking torque. | |
mapped | ✔ | brake torque is a mapped function of the wheel speed and the brake fluid pressure. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
rear brake type
— brake type
disc
(default) | drum
| mapped
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | brake model converts the brake fluid pressure into a braking torque. | |
| ✔ | brake model converts the brake fluid pressure and brake geometry into a braking torque. | |
mapped | ✔ | brake torque is a mapped function of the wheel speed and the brake fluid pressure. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
brake control unit
— brake control
open loop
(default) | bang bang abs
| five-state abs and tcs
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | open loop brake control. the controller commands brake pressure as a sole function of the brake command. | |
| ✔ | anti-lock braking system (abs) feedback controller that switches between two states to regulate wheel slip, with the aim of minimizing the error between the actual slip and the desired slip. here, the desired slip is the value where the tires' friction coefficient reaches its maximum. | |
five-state abs and tcs | ✔ | five-state abs and traction control system (tcs) that uses logic-switching based on wheel deceleration and vehicle acceleration to control the braking pressure at each wheel. consider using five-state abs and tcs control to prevent wheel lock-up, decrease braking distance, or maintain yaw stability during maneuvers. the default abs parameters are set to work on roads that have a constant friction coefficient scaling factor of 0.60. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
steering system
— steering
steering
(default) | no steering
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | handlebar-steered front fork on a frame-mounted revolute joint. | |
| ✔ | steering angle fixed at zero. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
motorcycle
.set vehicle dynamics to
out-of-plane motorcycle dynamics
.
steering damper
— damper
simple damper
(default) | no damper
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | no damping. | |
| ✔ | torsional damper about steering axis, with linear viscous damping. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
motorcycle
.set vehicle dynamics to
out-of-plane motorcycle dynamics
.
front suspension
— motorcycle suspension
simple spring and damper
suspension
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | telescoping fork with linear spring and damper. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
motorcycle
.set vehicle dynamics to
out-of-plane motorcycle dynamics
.
rear suspension
— motorcycle suspension
simple spring and damper
suspension
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | swing arm with linear spring and damper. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane:
set vehicle class to
motorcycle
.set vehicle dynamics to
out-of-plane motorcycle dynamics
.
propulsion system
— motorcycle propulsion system
simple engine
| mapped engine
| moto electrical system
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | simplified si engine model using a maximum torque versus engine speed table, two scalar fuel mass properties, and one scalar engine efficiency parameter to estimate engine torque and fuel flow. available when you set powertrain
architecture to | |
| ✔ | mapped si engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables. available when you set powertrain
architecture to | |
moto electrical system | ✔ | electric propulsion system. available when you set
powertrain architecture to | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
chain
— motorcycle chain and sprocket drive system
chain drive
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | inextensible chain which meshes with front and rear sprockets. rear sprocket is mounted to wheel with a torsional damper. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
rider
— rider type
rigid
(default) | 6dof and external forces and moments
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | rider implemented as a rigid body so that their relative motion to the motorcycle frame is zero. no crouching, and their lean angle is the same as the motorcycle frame. | |
| ✔ | rider body implemented with six degrees-of-freedom (dof) relative to the motorcycle frame. able to lean and crouch independently of frame. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
rider control
— motorcycle control type
open loop
(default)
the parameter options depend on the available products. this table summarizes the options available with powertrain blockset and vehicle dynamics blockset.
setting | powertrain blockset | vehicle dynamics blockset | description |
---|---|---|---|
| ✔ | steering of front fork as prescribed by test scenario. | |
*motorcycle configuration options require simscape and simscape add-ons. |
dependencies
to enable this parameter, on the setup pane, set vehicle
class to motorcycle
.
environment
— virtual vehicle environment
standard ambient
the parameter setting standard ambient
implements an
ambient environment model.
scenario and test
assemble a test plan for your virtual vehicle.
if you set scenario to drive
cycle
, you can use:
drive cycles from predefined sources. by default, the block includes the
ftp–75
drive cycle. to install additional drive cycles from the support package, see . the support package has drive cycles that include the gear shift schedules, for example,jc08
andcuedc
.workspace variables that define your own drive cycles.
.
mat
, .xls
, .xlsx
, or .txt
files.wide open throttle (wot) parameters, including initial and nominal reference speeds, deceleration start time, and final reference speed.
for a passenger car
, if you have vehicle dynamics blockset and set vehicle dynamics to combined
longitudinal and lateral vehicle dynamics
, you can select maneuvers for
vehicle handling, stability, and ride analysis. maneuvers include:
increasing steer
swept sine
sine with dwell
fishhook
for a motorcycle
, if you set vehicle
dynamics to out-of-plane motorcycle dynamics
, you
can select maneuvers for vehicle handling, stability, and ride analysis. maneuvers include:
steady turning
handle hit
if you want to run your virtual vehicle in the unreal engine 3d simulation environment, set 3d scene selection to
3d scene
. for hardware requirements, see (vehicle dynamics blockset).
logging
on the logging tab, select the signals to log. the app has a default set of signals in the selected signals list. the default list depends on the vehicle configuration. you can add or remove signals. options include energy-related quantities, and vehicle position, velocity, and acceleration.
build
click virtual vehicle to build your vehicle. when you build, the virtual vehicle composer app creates a simulink model that incorporates the vehicle architecture and parameters that you have specified and associates it with the test plan you configured.
the build takes time to complete. view progress in the matlab command window.
operate
to operate the model, on the composer tab in the operate section, click run test plan.
the simulations take time to complete. view progress in the matlab command window.
analyze
click simulation data inspector to view and analyze simulation signals you chose to log during operation.
if your test plan includes more than one test scenario, the simulation data inspector displays the results from the last scenario. to see results from earlier scenarios, load the archived results.
programmatic use
version history
introduced in r2022asee also
topics
- simulation data inspector
- (vehicle dynamics blockset)