main content

configure, build, and analyze a virtual automotive vehicle -凯发k8网页登录

configure, build, and analyze a virtual automotive vehicle

since r2022a

description

the virtual vehicle composer app enables you to quickly configure and build a virtual vehicle that you can use for system-level performance testing and analysis, including component sizing, fuel economy, drive cycle tracking, vehicle handling maneuvers, software integration testing, and hardware-in-the-loop (hil) testing. use the app to enter your vehicle parameter data, build a virtual vehicle model, run test scenarios, and analyze the results.

the virtual vehicle model utilizes sets of blocks and reference application subsystems available with powertrain blockset™, vehicle dynamics blockset™, and simscape™ add-ons. virtual vehicle composer simplifies the task of configuring the architecture and entering parameter data.

if you have powertrain blockset, use the app to:

  • configure conventional vehicle, electric vehicle (ev), and hybrid-electric vehicle (hev) architectures.

  • operate the vehicle in test conditions such as ftp cycles.

  • analyze design tradeoffs and size components.

if you have vehicle dynamics blockset, use the app to:

  • configure passenger cars and analyze their ride-and-handling characteristics by running standard test maneuvers.

  • configure and test a motorcycle. requires a simscape license.

  • visualize your virtual vehicle in the unreal engine® simulation environment.

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

to build, operate, and analyze your virtual vehicle, use the composer tab. the options and settings depend on the available products.

step

section

button

description

1

configure

virtual vehicle data icon

setup

specify:

  • project path and configuration name

  • vehicle class

  • powertrain architecture

  • model template

  • vehicle dynamics

click configure.

2

virtual vehicle data icon

data and calibration

specify the chassis, tire, brake type, powertrain, driver, and environment. for each selection, enter the parameter data.

3

virtual vehicle scenario icon

scenario and test

construct a test plan including one or more virtual vehicle test scenarios. options include drive cycles for fuel economy and energy management analysis and vehicle handling maneuvers.

4

virtual vehicle data logging icon

logging

select the model signal data to log while testing your virtual vehicle. options include energy-related quantities and vehicle position, velocity, and acceleration.

you can also set the default signals for further tests.

5

build

virtual vehicle build icon

virtual vehicle

build your virtual vehicle. when you build, the virtual vehicle composer creates a simulink® model that contains the vehicle and powertrain architectures and parameters you specify and associates it with the test plan.

6

operate

virtual vehicle operate icon

run test plan

simulate your model according to your test plan and log the resulting output data.

note

to operate the model, on the composer tab, in the operate section, click run test plan.

7

analyze

virtual vehicle analyze icon

simulation data inspector

use the simulation data inspector to view and inspect the data signals that you log.

you can store your data for further processing.

required products

the virtual vehicle composer requires either of these products:

if you have simscape and these simscape add-ons, you can use the app to configure vehicles with simscape subsystems.

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.

parameters

setup

start here to quickly enter your virtual vehicle class, powertrain architecture, model template, and vehicle dynamics.

project location, specified as a character vector.

note

the combined project path and configuration name must be less than 80 characters.

data types: char

name of the vehicle and test configuration.

note

the combined project path and configuration name must be less than 80 characters.

data types: char

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

passenger car iconpassenger car

four-wheeled passenger car.

motorcycle iconmotorcycle

 

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 multibodyrequired for motorcycles

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

conventional vehicle

vehicle with an si or ci internal combustion engine, transmission, and corresponding control units. may be fwd, rwd, or awd.

electric vehicle 1em

vehicle with one electric motor, and battery, driveline, and corresponding control units. may be fwd, rwd, or awd.

electric vehicle 2em

 

vehicle with one motor driving the front axle and one motor driving the rear axle; battery, driveline, and corresponding control units.

electric vehicle 3em dual front

 

vehicle with two independent motors driving the front axle and one motor driving the rear axle; battery, driveline, and corresponding control units.

electric vehicle 3em dual rear

 

vehicle with one motor driving the front axle and two independent motors driving the rear axle; battery, driveline, and corresponding control units.

electric vehicle 4em

 

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.

conventional motorcycle with chain drive

 

motorcycle with an si engine, transmission and chain reduction, and corresponding control units.

requires simscape.

electric motorcycle with chain drive

 

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.

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 multibodyrequired 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 class settingvehicle dynamics settinggoal
passenger car

longitudinal vehicle dynamics icon longitudinal vehicle dynamics

fuel economy and energy management analysis.

combined longitudinal and lateral vehicle dynamics icon combined longitudinal and lateral vehicle dynamics

vehicle handling, stability, and ride comfort analysis.

motorcycle

in-plane motorcycle dynamics icon in-plane motorcycle dynamics

fuel economy and energy management analysis.

out-of-plane motorcycle dynamics icon out-of-plane motorcycle dynamics

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 .

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 vehicle dynamics

three degree-of-freedom (dof) conventional vehicle model suitable for fuel economy and energy management analysis.

combined longitudinal and lateral vehicle dynamics

 

six dof conventional vehicle suitable for vehicle handling, stability, and ride comfort analysis.

not available with passenger car when model template is set to simscape.

in-plane motorcycle dynamics

 

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.

parameterdescription
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 passenger car, select the driver. the parameter setting longitudinal driver implements a longitudinal speed-tracking controller. if you have vehicle dynamics blockset, you can set driver to predictive driver or predictive stanley driver to track longitudinal velocity and a lateral displacement relative to a reference pose.

if you set vehicle class to motorcycle, select the rider. you can set rider to rigid or to 6dof and external forces and moments.

environment

use the parameter setting standard ambient to specify the ambient environment.

steering system

if you set vehicle class to passenger car, and you have vehicle dynamics blockset and set vehicle dynamics to combined longitudinal and lateral vehicle dynamics, you can specify the steering system.

if you set vehicle class to motorcycle and set vehicle dynamics to out-of-plane motorcycle dynamics, you can specify the steering system.

suspension

if you set vehicle class to passenger car, and you have vehicle dynamics blockset and set vehicle dynamics to combined longitudinal and lateral vehicle dynamics, you can specify the suspension.

if you set vehicle class to motorcycle and set vehicle dynamics to out-of-plane motorcycle dynamics, you can specify the suspension.

passenger car chassis

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

vehicle body 1dof longitudinal

chassis model for 1dof longitudinal vehicle dynamics. available when you set vehicle dynamics to longitudinal vehicle dynamics.

vehicle body 3dof longitudinal

chassis model for 3dof longitudinal vehicle dynamics. available when you set vehicle dynamics to longitudinal vehicle dynamics.

vehicle body 6dof longitudinal and lateral 

chassis model for 6dof longitudinal and lateral vehicle dynamics. available when you set vehicle dynamics to combined longitudinal and lateral vehicle dynamics.

dependencies

to enable this parameter, on the setup pane, set vehicle class to passenger car.

passenger car 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

mf tires longitudinal

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:

  • light passenger car 205/60r15

  • mid-size passenger car 235/45r18

  • performance car 225/40r19

  • suv 265/50r20

  • light truck 275/65r18

  • commercial truck 295/75r22.5

combined slip tires longitudinal

 

dependencies

to enable this parameter, on the setup pane, set vehicle class to passenger car.

passenger car brake 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

disc

brake model converts the brake fluid pressure into a braking torque.

drum

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.

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

open loop brake control. the controller commands brake pressure as a sole function of the brake command.

bang bang abs

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.

passenger car powertrain

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 simple engine si sets the engine control unit parameter to simple ecu.

simple engine (ci)

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 simple engine ci sets the engine control unit parameter to simple ecu.

ci engine

 

compression-ignition (ci) engine modeled from intake to the exhaust port.

selecting ci engine sets the engine control unit parameter to ci engine controller.

ci mapped engine

 

mapped ci engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables.

selecting ci mapped engine sets the engine control unit parameter to ci engine controller.

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 (powertrain blockset).

si engine

 

spark-ignition (si) engine modeled from intake to exhaust port.

selecting si engine sets the engine control unit parameter to si engine controller.

si mapped engine

mapped si engine model using power, air mass flow, fuel flow, exhaust temperature, efficiency, and emission performance lookup tables.

selecting si mapped engine sets the engine control unit parameter to si engine controller.

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 (powertrain blockset).

si deep learning engine

 

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 si deep learning engine sets the engine control unit parameter to si engine controller.

fmu engine

the functional mockup unit (fmu) engine implements an fmu block with these engine inputs and outputs.

inputsoutputs

torque command

engine rpm

brake torque

fuel flow

air flow

exhaust gas temperature

exhaust gas temperature

air fuel ratio

brake-specific fuel consumption (bsfc)

crank angle

to implement the fmu engine model:

  1. set engine to fmu engine.

  2. use browse to select the fmu file.

  3. select read to verify the fmu inputs and outputs.

    • if verification passes, the number of fmu inputs and outputs matches the signals in the fmu import subsystem.

    • if verification warns, the number of fmu inputs and outputs does not match the signals in the fmu import subsystem. however, you can still import the fmu file and manually connect the signals.

  4. select import to integrate the fmu in the virtual vehicle fmu import subsystem.

dependencies

to enable this parameter, on the setup pane, set vehicle class to passenger car.

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

ideal fixed gear transmission

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 torque converter

 

automatic transmission with planetary gears and a torque converter.

automated manual transmission

 

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

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

prndl controller

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

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

front wheel drive

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.

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 differential

implements differential action with equal torque to both wheels.

active differential

couples active elements to an open differential to achieve the desired axle torque bias.

not available if you set model template to simscape.

limited slip differential

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.

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 differential

implements differential action with equal torque to both wheels.

active differential

couples active elements to an open differential to achieve the desired axle torque bias.

not available if you set model template to simscape.

limited slip differential

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.

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-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 xem, where x is 1, 2, or 4

  • electric vehicle 3em dual front

  • electric vehicle 3em dual rear

  • hybrid electric vehicle px, where x is 0, 1, 2, 3 or 4

  • hybrid electric vehicle mm

  • hybrid electric vehicle ips

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 xem, where x is 1, 2, or 4

  • electric vehicle 3em dual front

  • electric vehicle 3em dual rear

  • hybrid electric vehicle px, where x is 0, 1, 2, 3 or 4

  • hybrid electric vehicle mm

  • hybrid electric vehicle ips

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

mapped battery

open-circuit voltage and internal resistance are mapped functions of the state-of charge (soc) and battery temperature

ideal voltage source

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 xem, where x is 1, 2, or 4

  • electric vehicle 3em dual front

  • electric vehicle 3em dual rear

  • hybrid electric vehicle px, where x is 0, 1, 2, 3 or 4

  • hybrid electric vehicle mm

  • hybrid electric vehicle ips

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 1emcontrols 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

hevp0 optimal

 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.

hevp1 optimal

 hybrid electric vehicle p1

hevp2 optimal

 

hybrid electric vehicle p2

hevp3 optimal

 

hybrid electric vehicle p3

hevp4 optimal

 

hybrid electric vehicle p4

hevmm rulebased

 

hybrid electric vehicle mm

controls the motor, generator, and engine through a set of rules and decision logic implemented in stateflow®. implements regenerative braking.

hevips rulebased

 

hybrid electric vehicle ips

dependencies

to enable this parameter, on the setup pane, set vehicle class to passenger car.

passenger car 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.

predictive driver

 

tracks longitudinal velocity and a lateral displacement relative to a reference pose.

available when you set vehicle dynamics to combined longitudinal and lateral vehicle dynamics.

predictive stanley driver

 

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 combined longitudinal and lateral vehicle dynamics.

dependencies

to enable this parameter, on the setup pane, set vehicle class to passenger car.

passenger car steering 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

kinematic steering

 

kinematic model for ideal rack-and-pinion steering. gears convert the steering wheel rotation into linear rack motion.

mapped steering

 

mapped rack-and-pinion steering model.

dynamic steering

 

dynamic model for ideal rack-and-pinion steering. gears convert the steering wheel rotation into linear rack motion.

steering system

 

steering system for ackerman and rack-and-pinion steering mechanisms.

no steering

 

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.

passenger car 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 independent suspension

 

kinematics and compliance (k & c) test suspension characteristics measured from simulated or actual laboratory suspension tests.

macpherson front suspension solid axle rear suspension

 

independent macpherson front suspension and solid rear axle.

kinematics and compliance twist beam suspension

 

kinematics and compliance characteristics of:

  • independent suspension on front axle.

  • twist-beam suspension on rear axle.

no suspension

 

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.

motorcycle chassis

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

linear front ssc tire

 

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.

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

linear rear ssc tire

 

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.

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

disc

 

brake model converts the brake fluid pressure into a braking torque.

drum

 

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.

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

disc

 

brake model converts the brake fluid pressure into a braking torque.

drum

 

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.

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

 

open loop brake control. the controller commands brake pressure as a sole function of the brake command.

bang bang abs

 

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.

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

 

handlebar-steered front fork on a frame-mounted revolute joint.

no steering

 

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.

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 damper

 

no damping.

simple damper

 

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.

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 spring and damper suspension

 

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.

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 spring and damper suspension

 

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.

motorcycle powertrain

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

 

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 conventional motorcycle with chain drive.

si mapped engine

 

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 conventional motorcycle with chain drive.

moto electrical system 

electric propulsion system.

available when you set powertrain architecture to electric motorcycle with chain drive.

*motorcycle configuration options require simscape and simscape add-ons.

dependencies

to enable this parameter, on the setup pane, set vehicle class to motorcycle.

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

chain drive

 

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.

motorcycle rider

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

rigid

 

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.

6 dof and external forces and moments

 

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.

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

 

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

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 and cuedc.

  • 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 .

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 planvirtual vehicle operate icon.

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

entering the command virtualvehiclecomposer opens a new session of the app, enabling you to configure, build, and analyze your virtual vehicle.

version history

introduced in r2022a
网站地图