SimPowerSystems

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.

Custom Simscape implementation of a permanent magnet synchronous motor, used as a generator.
Custom Simscape implementation of a permanent magnet synchronous motor, used as a generator. The MATLAB editor shows Simscape language source code of the electrical and mechanical equations, and the scope shows the three-phase AC currents and DC current at the load.
Next: Simulating Models

Try SimPowerSystems

Get trial software

Estimación de parámetros y validación de modelos de sistemas de excitación/generadores

View webinar