University of M’hamed BOUGARA of Boumerdes
Institute of Electrical and Electronics Engineering
(IGEE ex-INELEC)
Department of Power and Control engineering
EE421 – Computation and Simulation using
MATLAB /Simulink
Chapter 4: Introduction to SIMULINK (Part2)
Simscape/Power system
Dr. A. AMMAR
01/20/2025 EE421 Dr. AMMAR 1
6. Simscape library
Simscape Electrical™ (formerly SimPowerSystems™ and SimElectronics®) provides
component libraries for modeling and simulating electronic, mechatronic, and
electrical power systems. It includes models of semiconductors, motors, and
components for applications such as electromechanical actuation, smart grids. sys
You can use these components to evaluate analog circuit architectures, develop
mechatronic systems with electric drives, and analyze the generation, conversion,
transmission, and consumption of electrical power at the grid level.
01/20/2025 EE421 Dr. AMMAR 2
We distinguish two libraries Electronics and Power system. In this module we
focus on Power system library (it called SimPowerSystems in previous versions)
01/20/2025 EE421 Dr. AMMAR 3
Power system sub-library
The are two different generations of power system library Simscape components
and Specialized technology. Both of libraries can be used for simulation, however
we prefer to use Specialized technology (The name can be different from MATLAB
Version to another.
01/20/2025 EE421 Dr. AMMAR 4
The sub-libraries in Specialized technology cover the most of Power Engineering
fields
Fundamental Blocks
Control & measurement
Renewable energies
01/20/2025 EE421 Dr. AMMAR 5
The elements can be dragged to the Simulink model directly or the can be added by
right click as shown in the figure.
01/20/2025 EE421 Dr. AMMAR 6
Example 1: Power electronics
Single phase half-wave rectifier
For power electronics components we can use power electronics sub-library,
shown below. In addition to other sub-libraries such as Electrical sources and
Elements
01/20/2025 EE421 Dr. AMMAR 7
Single phase half-wave rectifier
Measurement
Blocks
You need the powergui block to simulate any Simulink model
containing Specialized Power Systems blocks.
It allows you to choose one of these methods to solve your circuit,
Continuous or Discretization
When using one powergui block in a model:
• Place the powergui block in the top-level diagram for optimal performance
• Make sure that the block is named powergui.
01/20/2025 EE421 Dr. AMMAR 8
The measurement block are necessary to convert the physical signal to
mathematical, then it can be displayed using the scope. The can be found
in Measurement Sub-library
i +
+ v
- -
Vabc
A
Iabc
Physical signal B a
(current, voltage…etc) b
C
c
Mathematical
signal)
01/20/2025 EE421 Dr. AMMAR 9
01/20/2025 EE421 Dr. AMMAR 10
Example 2: Machines and Drives (DC-machine)
For Electrical machines application we can use Machines sub-library,
01/20/2025 EE421 Dr. AMMAR 11
For measurements, we use a bus selector. The Bus Selector block outputs
a specified subset of the elements of the bus at its input. The block can output the
specified elements as separate signals
Bus Selector Demux
The Demux block extracts the components of an input vector signal and outputs
separate signals. The output signal ports are ordered from top to bottom
01/20/2025 EE421 Dr. AMMAR 12
Then, we can chose the blocks need to be displayed
01/20/2025 EE421 Dr. AMMAR 13
Example 3: Machines and Drives (AC-machine)
The block of an AC machine (Asynchronous) and its prosperity are shown in Figure.
Rotor type
Different
models can
be chosen
01/20/2025 EE421 Dr. AMMAR 14
The AC machine must be supplied with three-phase source.
Bus-selector
3 phase
Three-phase Three-phase Asynchronous
voltage source measurement Machine
bloc
01/20/2025 EE421 Dr. AMMAR 15
Example 4: Machines and Drives (AC-machine + Inverter )
For variable frequency/ speed application the AC machine must be supplied through a
power converter
01/20/2025 EE421 Dr. AMMAR 16