Main Content

Getting Started with Powertrain Blockset

The Powertrain Blockset™ provides reference application projects assembled from blocks and subsystems. Use the reference applications as a starting point to create your own powertrain models.

ObjectiveForSee

Design tradeoff analysis and component sizing, control parameter optimization, or hardware-in-the-loop (HIL) testing.

Full conventional vehicle with spark-ignition (SI) or combustion-ignition (CI)

Explore the Conventional Vehicle Reference Application

Hybrid electric vehicle (HEV) — Multimode

Explore the Hybrid Electric Vehicle Multimode Reference Application

HEV — Input power-split

Explore the Hybrid Electric Vehicle Input Power-Split Reference Application

Full electric vehicle

Explore the Electric Vehicle Reference Application

Engine and controller calibration, validation, and optimization before integration with the vehicle model.

CI engine plant and controller

Explore the CI Engine Dynamometer Reference Application

SI engine plant and controller

Explore the SI Engine Dynamometer Reference Application

This example shows how to run the conventional vehicle reference application and examine the final drive gear ratio impact on fuel economy and tailpipe emissions.

Running this example requires a Stateflow® license. You can install a Stateflow trial license using the Add-On Explorer.

  1. Open the conventional vehicle reference application project. By default, the application has a 1.5–L spark-ignition (SI) engine and a final drive gear ratio of 3.

    Project files open in a writable location.

  2. Enable data logging for the fuel economy and tailpipe emissions signals.

    1. In the Visualization subsystem, select the FuelEconomy signal line and Enable Data Logging.

    2. In the Visualization subsystem, enable data logging on the tailpipe emissions signals.

    3. Save the SiCiPtReferenceApplication model.

  3. Parameterize the final drive gear ratio.

    1. In the Passenger Car subsystem, navigate to the DrivetrainConVeh > Differential and Compliance > Front Wheel Drive subsystem. Open the Open Differential block.

    2. In the Open Differential block mask:

      • Change the Carrier to driveshaft ratio, Ndiff parameter to the variable diffratio. The Carrier to driveshaft ratio, Ndiff parameter represents the final drive gear ratio.

      • Use the available actions to create new data.

      • Use the Create New Data dialog box to create a Model Workspace parameter diffratio equal to a value of 3.

      • In the Open Differential block mask, apply the change.

    3. In the Model Explorer, for the DrivetrainConVeh model, confirm that the diffratio parameter is set to 3.

    4. Save the DrivetrainConVeh and SiCiPtReferenceApplication models.

  4. Run a baseline conventional vehicle simulation with a final drive gear ratio of 3. Import the results to the Simulation Data Inspector.

    1. In the SiCiPtReferenceApplication model, run the simulation for the default run time. The simulation can take time to run. View progress in the Simulink® window.

    2. On the Simulink Editor toolbar, click the Data Inspector button to open the Simulation Data Inspector.

      1. In the Simulation Data Inspector, select Import. In the Import dialog box, accept the defaults and select Import.

      2. In the results field for the run, right-click to rename the run diffratio=3.

  5. Run a conventional vehicle simulation with a final drive gear ratio of 2.5. Import the results to the Simulation Data Inspector.

    1. In the Model Explorer, for the DrivetrainConVeh model, set the Model Workspace diffratio parameter to 2.5.

    2. Save the DrivetrainConVeh model.

    3. In the SiCiPtReferenceApplication model, run the simulation for the default run time.

    4. To import the results, on the toolbar, select the Simulation Data Inspector.

      1. In the Simulation Data Inspector, select Import. In the Import dialog box, accept the defaults and select Import.

      2. In the Simulation Data Inspector, in the results field for the run, right-click to rename the run diffratio=2.5.

  6. Use the Simulation Data Inspector to explore the results. To assess the impact of the final drive gear ratio on the fuel economy and tailpipe emissions, view the plots of the simulation results. For example, these simulation results indicate a better powertrain match when the final drive gear ratio is 2.5:

    • Fuel economy increases when the final drive gear ratio changes from 3 to 2.5.

    • Tailpipe emissions (HC, NOx, CO2) decrease when the final drive gear ratio changes from 3 to 2.5.

Next Steps

Assess the impact of the final drive gear ratio on vehicle performance. Although the fuel economy and tailpipe emissions indicate a better powertrain match when the final drive gear ratio is 2.5, the ratio also impacts performance.

To assess the vehicle performance, examine 0 to 100 km/hr acceleration times for each axle setting. You can use the Drive Cycle Source block to output a constant velocity of (100/3.6) m/s.

Related Examples

More About