These library blocks are written in the Simscape language and are fully compatible with the Simscape technology, including local solvers, data logging, statistics and variable viewers, frequency analysis, and component and library customizations. To configure Simscape Electrical models composed of these library blocks for local-solver simulation, use the Solver Configuration block. Many of the blocks in these libraries also work with other Simscape Foundation domains, such as the Mechanical, Magnetic, and Thermal domains. When working with the Simscape technology compatible library blocks, you can use these capabilities:
These libraries include models of high-fidelity, nonlinear, faultable, electrothermal power electronics. You can use these components to develop mechatronic systems and to build behavioral models for evaluating analog circuit architectures. The libraries also include low-fidelity models that are switched linear and optimized for fast simulation. There are also some models that contain optional ports for thermal analysis.
You can create single-line three-phase diagrams by using the three-phase blocks because the Three-Phase Electrical domain supports signals that contain all three phases as individual elements in a single vector. You can also model each phase individually, for example, to inject a single-line-to-ground fault into your circuit, by expanding the three-phase ports on these blocks into three separate single-phase electrical ports.
The Control library contains Simulink blocks for signal generation, mathematical transformation, and machine control. You can use these components to develop control systems for single- and multi-phase electrical power systems.
The Simscape Electrical Specialized Power Systems library contains blocks that use their own, specialized electrical domain. The library contains models of typical power equipment such as transformers, electric machines and drives, and power electronics. It also contains control, measurement, and signal generation models that you can use for developing power system control algorithms. The Specialized Power Systems Fundamental Blocks library contains the powergui block, which provides tools for the steady-state analysis of electrical circuits. To configure Specialized Power Systems models for continuous-time, discrete-time, or phasor simulation, and to analyze simulation results, use the powergui block. The powergui block is in the Specialized Power Systems Fundamental Blocks library.
To display the Electrical library in the Simulink Library Browser, scroll to the Simscape node. Expand the Simscape node and then the Electrical node. Alternately, at the MATLAB command prompt, enter this command.
To access the sublibraries in the twelve top-level Simscape Electrical libraries, further expand the nodes. Alternately, use the open_system command at the MATLAB command prompt. For example, to access the sublibraries in the Connectors & References library, enter the commands:
The circuit in the figure represents an equivalent power system feeding a 300-km transmission line. The line is compensated by a shunt inductor at its receiving end. A circuit breaker allows energizing and de-energizing of the line. To simplify matters, only one of the three phases is represented. The parameters shown in the figure are typical of a 735-kV power system.
The graphical user interface uses Simulink functionality to interconnect various electrical components. The electrical components are grouped in the Simscape Electrical Specialized Power Systems library.
The model of a line with uniformly distributed R, L, and C parameters normally consists of a delay equal to the wave propagation time along the line. This model cannot be simulated as a linear system because a delay corresponds to an infinite number of states. However, a good approximation of the line with a finite number of states can be obtained by cascading several PI circuits, each representing a small section of the line.
A PI section consists of a series R-L branch and two shunt C branches. The model accuracy depends on the number of PI sections used for the model. Copy the PI Section Line block from the Simscape > Electrical > Specialized Power Systems > Power Grid Elements library into the circuit1 window, set its parameters as shown in Circuit to Be Modeled, and specify one line section.
Add a Scope block into your circuit1 window. If the scope were connected directly at the output of the voltage measurement, it would display the voltage in volts. However, electrical engineers in power systems are used to working with normalized quantities (per unit system). The voltage is normalized by dividing the value in volts by a base voltage corresponding to the peak value of the system nominal voltage. In this case, the scaling factor K is
The Voltage Measurement block acts as an interface between the Simscape Electrical Specialized Power Systems blocks and the Simulink blocks. For the system shown above, you implemented such an interface from the electrical system to the Simulink system. The Voltage Measurement block converts the measured voltages into Simulink signals.
Similarly, the Current Measurement block from the Simscape > Electrical > Specialized Power Systems > Sensors and Measurements library can be used to convert any measured current into a Simulink signal.
You can also interface from Simulink blocks to the electrical system. For example, you can use the Controlled Voltage Source block to inject a voltage in an electrical circuit, as shown in the following figure.
Simscape Electrical Specialized Power Systems modeling environment is similar to that of other products in the Physical Modeling family. Its blocks often feature both normal Simulink input and output ports > and special electrical terminal ports :
Lines that connect terminal ports are special electrical connection lines. These lines are nondirectional and can be branched, but you cannot connect them to Simulink ports > or to normal Simulink signal lines.
Converting Simulink signals to electrical connections or vice versa requires using a Simscape Electrical Specialized Power Systems block that features both Simulink ports and electrical terminal ports.
Pay particular attention when you connect capacitor elements together with voltage sources, or inductor elements in series with current sources. When you start the simulation, the software displays an error message if one of the following two connection errors are present in your diagram:
The Powergui block is the environment block for Simscape Electrical Specialized Power Systems models. It is used to store the equivalent Simulink circuit that represents the state-space equations of the Simscape Electrical Specialized Power Systems blocks. It also opens tools for steady-state and simulation results analysis and for advanced parameter design. When you start the simulation, you will get an error if no Powergui block is found in your model.
e59dfda104