HossamTalaat - MATLAB Course - KSU - 19/09/1423 1 IEEE Student Branch - College of Engineering - KSU...
-
date post
19-Dec-2015 -
Category
Documents
-
view
216 -
download
0
Transcript of HossamTalaat - MATLAB Course - KSU - 19/09/1423 1 IEEE Student Branch - College of Engineering - KSU...
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
11
IEEE Student Branch - College of Engineering - KSUIEEE Student Branch - College of Engineering - KSU
Getting started withGetting started withPower System BlocksetPower System Blockset
ByBy
Prof. Hossam TalaatProf. Hossam Talaat
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
22
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..
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
33
Capabilities of PSBCapabilities of PSB
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, ..
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
44
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
55
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
66
PSB block libraries PSB block libraries
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
77
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
88
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
99
Electrical Sources Library BlocksElectrical Sources Library Blocks
AC Current Source: Implement a sinusoidal AC Current Source: Implement a sinusoidal current sourcecurrent source
AC Voltage Source: Implement a sinusoidal AC Voltage Source: Implement a sinusoidal voltage sourcevoltage source
Controlled Current Source: Implement a Controlled Current Source: Implement a controlled current sourcecontrolled current source
Controlled Voltage Source: Implement a Controlled Voltage Source: Implement a controlled voltage sourcecontrolled voltage source
DC Voltage Source: Implement a DC DC Voltage Source: Implement a DC voltage sourcevoltage source
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1010
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
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1111
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
arresterarrester Three-Phase Transformer (Two Windings)Three-Phase Transformer (Two Windings) Three-Phase Transformer (Three Windings)Three-Phase Transformer (Three Windings)
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1212
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
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1313
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
voltmeters and ammeters.voltmeters and ammeters.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1414
Circuit 1-aCircuit 1-a
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1515
Circuit 1-bCircuit 1-b
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1616
New Blocks in Circuit 1New Blocks in Circuit 1
BlockBlock GroupGroup DescriptionDescriptionDC Voltage DC Voltage SourceSource
BreakerBreaker
Series RLC Series RLC BranchBranch
Voltage Voltage measure.measure.
MultimeterMultimeter
Electrical Electrical SourcesSources
ElementsElements
ElementsElements
MeasureMeasurementsments
MeasureMeasure
Ideal DC voltage source Ideal DC voltage source
Circuit breaker opening at Circuit breaker opening at current zero crossingcurrent zero crossing
Can be pure R (L=0 & C=inf), Can be pure R (L=0 & C=inf), pure L (R=0 & C=inf), or pure pure L (R=0 & C=inf), or pure C (R=0 & L=0)C (R=0 & L=0)
Producing a Simulink signal Producing a Simulink signal proportional to the voltage.proportional to the voltage.
Measure V’s and I’s Specified Measure V’s and I’s Specified in PSB blocksin PSB blocks
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1717
Circuit 2: AC Current sourceCircuit 2: AC Current source
DescriptionDescription Use 2 parallel current sources with Use 2 parallel current sources with
different frequencies.different frequencies. Use bus to connect the two incoming Use bus to connect the two incoming
lines.lines. Use current measurement block to Use current measurement block to
measure total current.measure total current. Use the Multimeter to measure three Use the Multimeter to measure three
currentscurrents
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1818
Circuit 2Circuit 2
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
1919
Circuit 3: Parallel RLC CircuitCircuit 3: Parallel RLC Circuit
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).
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2020
Circuit 3Circuit 3
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2121
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
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2222
Circuit 4Circuit 4
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2323
Circuit 5: Distributed parameters Circuit 5: Distributed parameters Line Line
ProcedureProcedure To demonstrate the effect of To demonstrate the effect of
travelling waves on a line modelded travelling waves on a line modelded by its distributed parameters modelby its distributed parameters model
The demo program “psbdistline” is The demo program “psbdistline” is used.used.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2424
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2525
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2626
Circuit 6Circuit 6
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2727
Circuit 7: 3-phase Synchronous Circuit 7: 3-phase Synchronous machinemachine
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”.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2828
Circuit 7Circuit 7
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
2929
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.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
3030
Circuit 8Circuit 8
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
3131
Circuit 9: Circuit BreakerCircuit 9: Circuit Breaker
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”.
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
3232
Circuit 9Circuit 9
HossamTalaat - MATLAB Course - KSU - 19/HossamTalaat - MATLAB Course - KSU - 19/09/142309/1423
3333
End of tutorialEnd of tutorial