Creating Custom Components
You can add components from other physical modeling products to your SimPowerSystems model. The
Foundation libraries in Simscape contain blocks in hydraulic, thermal, magnetic, and other physical domains.
Integrating these domains into your SimPowerSystems model using physical connections helps you model other
aspects of your system in a single environment.
The Simscape language is an object-oriented language based on MATLAB that 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.
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.