The Simscape language enables you to add new physical domains and to create your own physical modeling components and libraries. It is based on the MATLAB programming language, well-known by engineers. Using this object-oriented modeling language, you can define custom components, complete with parameterization, physical connections, and equations represented as acausal implicit DAEs. You can also use MATLAB to analyze the parameter values, perform preliminary computations, and initialize system variables. The Simulink block and dialog box for the component are automatically created from the Simscape file.
Modeling custom mechanical components using the Simscape language 7:29
A model of a nonlinear rotational spring is built using this MATLAB based physical modeling language.
The components you create can reuse the physical domain definitions provided with Simscape to ensure that your components are compatible with the standard Simscape components. You can also add your own physical domains. You can automatically build and manage Simulink libraries of your Simscape components and domains, enabling you to share these models across your organization. You can also generate C code from Simulink models that contain your custom components.
Modeling custom hydraulic components using the Simscape language 5:26
A model of a fixed hydraulic orifice is built using this MATLAB based physical modeling language.
Using the Simscape language, you can control exactly which effects are captured in the models of your physical components. This approach enables you to balance the tradeoff between model fidelity and simulation speed.

Using the Simscape language to create a custom model of an ultracapacitor with losses. The equation shown (bottom) is implemented in the Simscape language (left). The Simulink block (top right) and dialog box (middle) are created automatically from the Simscape file.
Try Simscape
Get free trial softwarePhysical Modeling with the Simscape Language
View webinar