Modeling a Vehicle Powertrain
Model a vehicle powertrain, including gears, tires, engine, and longitudinal vehicle dynamics.
You can use SimDriveline to optimize system-level performance and to create plant models for control design. The models you create support your entire development process, including hardware-in-the-loop simulations.
SimDriveline provides libraries of one-dimensional mechanical components. You can connect components, such as planetary gears, clutches, and brakes, to model your mechanical system. The models you create can be grouped into subsystems, making them easier to read and reuse.
Modeling a Ratchet Mechanism with Leadscrew
Model a ratchet mechanism driving a leadscrew. The screw turns in one direction and the leadscrew cannot be back-driven by the mechanical load.
In addition to the traditional input-output or signal flow connections used in Simulink®, SimDriveline uses physical connections that permit the flow of power in any direction. Models built using physical connections (also referred to as acausal models) closely resemble the physical system they represent, and are easier to understand and share with others.
Many of the component models in SimDriveline let you adjust the level of fidelity. You can choose to include or neglect certain effects, such as meshing and viscous losses, and as a result, balance the tradeoff between model fidelity and simulation speed.
You can add components from other physical modeling products to your SimDriveline model. The foundation library in Simscape™ contains blocks in other physical domains, such as electrical, hydraulic, and thermal. Integrating these domains into your SimDriveline model using physical connections helps expand your model's range of effects.
Simscape Language: Mechanical Example
Model custom mechanical components using the Simscape™ language. A nonlinear translational spring is defined using implicit equations.
The Simscape language, an object-oriented language that is based on MATLAB®, enables you to create your own physical modeling components and libraries. You can define custom components, complete with parameterization, physical connections, and equations represented as acausal implicit differential algebraic equations (DAEs). Within your component’s Simscape language file you can use MATLAB to analyze parameter values, perform preliminary computations, and initialize system variables. The Simulink block and dialog box for your custom component are automatically created from the file.
You can combine SimDriveline models with Simulink control system models for dynamic simulation. The simulations can be run on your desktop (variable step) or in a real-time environment (fixed step). Every aspect of your simulation can be automated using scripts in MATLAB, including configuring the model, entering simulation settings, and arranging sets of simulations.
Maximizing Fuel Economy
Speed up the process of tuning shift schedule calibrations using optimization algorithms and parallel computing.
You can use optimization algorithms to automatically tune parameters in simulation. This approach enables you, for example, to find designs that minimize weight or minimize fuel consumption. To accelerate optimization tasks and other design studies that require many simulations, you can use Parallel Computing Toolbox™ to distribute your SimDriveline simulations across multiple cores or a cluster of computers.
Shorten Parameter Sweeps with Parallel Computing
Run simulations in parallel on a multicore desktop. Various shift schedules for a dual-clutch transmission are tested in multiple simulations executed simultaneously.
All of the data from your SimDriveline model can be saved automatically to the MATLAB workspace. Using MATLAB, the results of your simulation can be analyzed, plotted, animated, and saved into many different file formats. You can perform tasks such as analyzing the frequency response of the powertrain, comparing simulation runs to improve fuel economy, and verifying the timing of clutch events during the simulation. When combined with Simulink Report Generator™, the results of SimDriveline simulations can be automatically saved in a report, along with screenshots of the model, plots, and other information.
Analyzing and Documenting Results
Automatically run tests and generate a report documenting simulation results.
SimDriveline models can be configured specifically for real-time simulation and converted to C code, enabling you to perform HIL tests. Many components in SimDriveline can be configured to use abstracted behavioral models, ideal for real-time simulation. Using Simscape local solvers, you can speed up your simulation by using a fixed-step solver for your physical system and independently choosing a different solver for the rest of your model.
You can generate C code from your SimDriveline models using Simulink Coder. The generated code can be used to run HIL simulations on real-time processors that interface directly with hardware. This enables you to test your control algorithms without relying on hardware prototypes.
Simulating In Real Time: Hybrid Electric Vehicle
Configure multiple, independent solvers to enable real-time simulation. The model of a hybrid-electric vehicle (HEV) is simulated on a real-time target.
You can deploy SimDriveline models using code generated with Simulink Coder. The generated code lets you:
You can share SimDriveline models with Simscape users who have not purchased SimDriveline. Simscape users can view, simulate, and change parameter values in SimDriveline models by leveraging the Simscape Editing Mode. As a result, your team can share SimDriveline models with a larger group of engineers who use Simscape.
Sharing Models Using Simscape Editing Mode
Share models without requiring licenses for Simscape™ add-on libraries. Open models in Restricted Mode and perform tasks such as simulation, parameter tests, and code generation.
|Working with SimDriveline Models|
(Purchases Simscape and SimDriveline)
|Log data or change visualization|
|Change numerical parameters|
|Generate code with Simulink Coder|
|Change block parameterization options|
|Make or break physical connections|