HossamTalaat - MATLAB Course - KSU HossamTalaat - MATLAB Course - KSU - 19/09/1423 - 19/09/1423 1 IEEE Student Branch - College of Engineering - IEEE Student Branch - College of Engineering - KSU KSU Getting started with Getting started with Power System Power System Blockset Blockset By By Prof. Hossam Talaat Prof. Hossam Talaat
33
Embed
HossamTalaat - MATLAB Course - KSU - 19/09/1423 1 IEEE Student Branch - College of Engineering - KSU Getting started with Power System Blockset By Prof.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
What is Power System Blockset?What is Power System Blockset?
PSB is a modern design tool allowing the PSB is a modern design tool allowing the dynamic simulation of electric circuits and dynamic simulation of electric circuits and power systems.power systems.
It operates in the Simulink environment.It operates in the Simulink environment. The model in PSB follows the rules of electric The model in PSB follows the rules of electric
circuits: 2 elements in series means same circuits: 2 elements in series means same current, 2 elements in parallel means same current, 2 elements in parallel means same voltage.voltage.
Interfacing with Simulink models needs Interfacing with Simulink models needs converting blocksconverting blocks..
It simulates DC, AC and 3-phase It simulates DC, AC and 3-phase circuits (transient and steady state).circuits (transient and steady state).
It simulates power systems having It simulates power systems having different complexities (from radial to different complexities (from radial to multi-machine system). multi-machine system).
It simulates the following elements: It simulates the following elements: synchronous machines (various synchronous machines (various models), transformers, transmission models), transformers, transmission lines, loads, breakers, buses, ..lines, loads, breakers, buses, ..
How to Simulate a PSB SystemHow to Simulate a PSB System
Phase I: Create a model of the system to Phase I: Create a model of the system to be simulated using PSB and Simulink’s be simulated using PSB and Simulink’s model editor, blocks library and click and model editor, blocks library and click and drag mouse operations. drag mouse operations.
Phase II: Use Simulink’s ODE solvers to Phase II: Use Simulink’s ODE solvers to simulate the behavior of the system for a simulate the behavior of the system for a specified time span.specified time span.
Phase I: Creating a modelPhase I: Creating a model To open PSB library enter “powerlib” at the To open PSB library enter “powerlib” at the
MATLAB toolbar.MATLAB toolbar. Open a new model from “file” then “new” Open a new model from “file” then “new”
then “model”.then “model”. To introduce blocks in your model, choose To introduce blocks in your model, choose
the block from the library, click on it and drag the block from the library, click on it and drag it in your model.it in your model.
Interconnect the output of a block to the Interconnect the output of a block to the input of the required block by a line using input of the required block by a line using mouse.mouse.
Double-click each block to set its parameters.Double-click each block to set its parameters.
The Electrical Sources library contains The Electrical Sources library contains blocks that generate electric signals. blocks that generate electric signals.
The Elements library contains linear and The Elements library contains linear and nonlinear network elements.nonlinear network elements.
The Power Electronics library contains The Power Electronics library contains power electronics devices.power electronics devices.
The Machines library contains machinery The Machines library contains machinery models.models.
The Connectors library contains blocks that The Connectors library contains blocks that can be used to interconnect blocks in can be used to interconnect blocks in various situations.various situations.
PSB block libraries (cont.)PSB block libraries (cont.) The Measurements library contains blocks for The Measurements library contains blocks for
the current and voltage measurements.the current and voltage measurements. The Extras library contains three-phase blocks The Extras library contains three-phase blocks
and specialized measurements and control and specialized measurements and control blocks. blocks.
The Demos library contains useful demos and The Demos library contains useful demos and case studies.case studies.
The Powergui block that opens a graphical user The Powergui block that opens a graphical user interface for the steady-state analysis of interface for the steady-state analysis of electrical circuits.electrical circuits.
The Discrete System block that is used to The Discrete System block that is used to discretize your electrical models.discretize your electrical models.
Interfacing PSB with SimulinkInterfacing PSB with Simulink
Voltage measurement block converts Voltage measurement block converts the measured voltage into Simulink the measured voltage into Simulink signal.signal.
Current measurement block converts Current measurement block converts the measured current into Simulink the measured current into Simulink signal.signal.
In the “Controlled Voltage Source In the “Controlled Voltage Source block” the voltage is controlled by a block” the voltage is controlled by a Simulink signal.Simulink signal.
Elements Library BlocksElements Library Blocks Breaker: Implement a circuit breaker opening at Breaker: Implement a circuit breaker opening at
current zero crossingcurrent zero crossing Distributed Parameter Line: Implement a N-Distributed Parameter Line: Implement a N-
phases distributed parameter line model with phases distributed parameter line model with lumped losseslumped losses
Linear Transformer: Implement a two- or three-Linear Transformer: Implement a two- or three-windings linear transformerwindings linear transformer
Mutual Inductance: Implement a magnetic Mutual Inductance: Implement a magnetic coupling between two or three windingscoupling between two or three windings
Parallel RLC Branch: Implement a parallel RLC Parallel RLC Branch: Implement a parallel RLC branchbranch
Parallel RLC Load: Implement a linear parallel RLC Parallel RLC Load: Implement a linear parallel RLC loadload
Elements Library Blocks (cont.)Elements Library Blocks (cont.) PI Section Line: Implement a single phase PI Section Line: Implement a single phase
transmission line with lumped parameterstransmission line with lumped parameters Saturable Transformer: Implement a two- or Saturable Transformer: Implement a two- or
three-windings Saturable Transformerthree-windings Saturable Transformer Series RLC Branch: Implement a series RLC Series RLC Branch: Implement a series RLC
branchbranch Series RLC Load: Implement a linear series RLC Series RLC Load: Implement a linear series RLC
loadload Surge Arrester: Implement a metal-oxide surge Surge Arrester: Implement a metal-oxide surge
Asynchronous Machine: Model the dynamics of a three-phase Asynchronous Machine: Model the dynamics of a three-phase asynchronous machine (induction machine)asynchronous machine (induction machine)
DC Machine: Model a separately excited DC machine.DC Machine: Model a separately excited DC machine. Excitation System: Provide an excitation system for the Excitation System: Provide an excitation system for the
synchronous machine and regulate its terminal voltage in synchronous machine and regulate its terminal voltage in generating modegenerating mode
Hydraulic Turbine and Governor: Model a hydraulic turbine and a Hydraulic Turbine and Governor: Model a hydraulic turbine and a PID governor systemPID governor system
Permanent Magnet Synchronous Machine: Model the dynamics of Permanent Magnet Synchronous Machine: Model the dynamics of a three-phase permanent magnet synchronous machine with a three-phase permanent magnet synchronous machine with sinusoidal flux distributionsinusoidal flux distribution
Simplified Synchronous Machine: Model the dynamics of a Simplified Synchronous Machine: Model the dynamics of a simplified three-phase synchronous machinesimplified three-phase synchronous machine
Steam Turbine and Governor: Implements a steam turbine and Steam Turbine and Governor: Implements a steam turbine and governor systemgovernor system
Synchronous Machine: Model the dynamics of a three-phase Synchronous Machine: Model the dynamics of a three-phase salient-pole synchronous machinesalient-pole synchronous machine
Circuit 1: Step response of RC Circuit 1: Step response of RC CircuitCircuit
ProcedureProcedure Run the circuit using different values Run the circuit using different values
of R and C.of R and C. Change switching instants of C.B.Change switching instants of C.B. Use multimeter instead of separate Use multimeter instead of separate
DescriptionDescription Use AC voltage source.Use AC voltage source. Use Neutral.Use Neutral. Use three RLC series branches to be Use three RLC series branches to be
capable to measure the current in capable to measure the current in each element (Ir, Il & Ic).each element (Ir, Il & Ic).
Circuit 4: Single Pulse RectifierCircuit 4: Single Pulse Rectifier
DescriptionDescription To investigate the waveforms of To investigate the waveforms of
Currents and voltages at different Currents and voltages at different elements of the half wave rectifier elements of the half wave rectifier circuit.circuit.
The demo program “psbdiode” is The demo program “psbdiode” is usedused
Circuit 6: Simple 3-phase SystemCircuit 6: Simple 3-phase System
The system is composed of a The system is composed of a simplified 3-ph synchronous simplified 3-ph synchronous generator connected to 2 3-ph loads generator connected to 2 3-ph loads one of them can be switched ON or one of them can be switched ON or OFF according to operation.OFF according to operation.
Use the SSM block to measure Use the SSM block to measure different variables of the machine.different variables of the machine.
It is a demo program called It is a demo program called “psbloadshed” for load shedding “psbloadshed” for load shedding test. test.
The system represents a 3-ph The system represents a 3-ph synchronous generator connected to synchronous generator connected to infinite bus.infinite bus.
The infinite bus is simulated by 3 The infinite bus is simulated by 3 voltage sources.voltage sources.
It is a demo program called It is a demo program called “syncmachine”.“syncmachine”.
Circuit 8: Series Compensated LineCircuit 8: Series Compensated Line
The system is composed of a 300 km The system is composed of a 300 km line partitioned into two sections line partitioned into two sections (each 150 km).(each 150 km).
There is a series capacitor in the mid There is a series capacitor in the mid between the two sections.between the two sections.
The line connects two systems: 735 The line connects two systems: 735 kV system and 315 kV system kV system and 315 kV system through a transformer.through a transformer.
To demonstrate the operation of To demonstrate the operation of circuit breaker especially the opening circuit breaker especially the opening process at zero crossing.process at zero crossing.
It is a demo program “psbbreaker”.It is a demo program “psbbreaker”.