주요 콘텐츠

Virtual Vehicle Solver Configuration Settings

The virtual vehicle template uses a data dictionary, VehicleConfig.sldd, to store the solver configuration settings for data objects. To view the solver configuration settings, in the Model Explorer, navigate to Simulink Root > ConfiguredVirtualVehicleModel > External Data > VirtualVehicleTemplate > Configurations.

Configuration setting options for VirtualVehicleTemplate data dictionary solver settings.

By default, the Virtual Vehicle Composer app uses the VehicleConfig.sldd data dictionary to configure the virtual vehicle model elements with these data objects. The data objects contain these solver parameter settings.

Virtual Vehicle Model Element

Default VehicleConfig.sldd Data Object

Solver Parameter Settings
TypeSolverFixed-step size

All Simulink® plant models

VehicleVariable

Variable-step

ode23tb

N/A

All Simscape™ plant models

VehicleVariableDae

Variable-step

daessc

N/A

All powertrain system controllers, including electric vehicles (EVs) and hybrid-electric vehicles (HEVs)

VehicleFixed10ms

Fixed-step

ode4

.01

All brake system controllers

VehicleFixed1ms

Fixed-step

ode4

.001

Thermal system

VehicleFixed100ms

Fixed-step

ode4

0.1

Engine dynamometer plant models

EngDynoVariable

Variable-step

ode23tb

N/A

Engine dynamometer controllers

EngFixed10ms

Fixed-step

ode4

0.01

None

VehicleFixed05ms

Fixed-step

ode4

.0005

None

VehicleFixed5s

Fixed-step

ode4

5.0

Change Solver Configuration Settings

During simulation, if your virtual vehicle model fails to converge, you might want to change the solver configuration settings for data objects in the VehicleConfig.sldd data dictionary. For help choosing a solver, see Choose a Solver.

To change the solver settings for a data object:

  1. In the Model Explorer, navigate to the VehicleConfig.sldd data object configuration setting that you want to change. For example, navigate to Simulink Root > ConfiguredVirtualVehicleModel > External Data > VirtualVehicleTemplate > Configurations. Select the data object VehicleVariable.

  2. In the right pane of the Model Explorer, click Open.

  3. In the Configuration Parameters left pane, select Solver. Specify new solver parameter settings for the data object. For example, for VehicleVariable, change Solver from ode23tb to odeN.

    Configuration parameters for solver setting options for VirtualVehicle data object.

  4. Click OK. The data dictionary contains the modified solver settings for the data object.

See Also

Topics