SimElectronics

Creating Custom Components

You can add components from other physical modeling products to your SimElectronics model. The foundation library in Simscape contains blocks in hydraulic, thermal, magnetic, and other physical domains. Integrating these domains into your SimElectronics model using physical connections helps you model other aspects of your system in a single environment.

Simscape 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.

Simscape Language: Electronic Example 3:18
Model custom electronic components using the Simscape™ language. Define a resistor whose behavior varies with temperature.

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.
Using the Simscape language to create a custom model of an ultracapacitor with losses. The equation shown (bottom left) is implemented in the Simscape language (top left), and the Simulink block (top right) and dialog box (bottom right) are created automatically from the Simscape file.
Next: Simulating Models

Try SimElectronics

Get trial software

Modélisation de Panneaux Solaires et Raccordement au Réseau Electrique

View webinar