SimDriveline

Creating Custom Components

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 3:42
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.

Simscape language file used to create a custom gear box. The file automatically generates a Simulink Gear Box block and dialog box.
Simscape language file (left) used to create a custom gear box. The file automatically generates a Simulink Gear Box block and dialog box.
Next: Simulating Drivetrain Systems

Try SimDriveline

Get trial software

为工程车辆开发多物理域的系统级模型

View webinar