Tutorial PSCAD
Tutorial PSCAD
Tutorial PSCAD
SUMMARY
I II III IV V VI VII VIII IX X XI General Features First steps with PSCAD Introduction on control systems Breakers & Faults Switching & Interpolation Transformers in PSCAD Rotating Machines in PSCAD Transmission Lines & PSCAD User Component Organizing the Worksheet Matlab Interface
2
I General Features
13/02/2010
V I R L
dI V (t ) = [I ( t ) R ] + L dt
4
Valid only for Steady State and Low Frequency Swings Simplified Controls (approximated as S functions) Steady State Equations for HVDC Efficient for Large Systems
Valid Over a Wide Frequency Range Detailed Analog and Digital Controls Detailed Switching of Thyristors, Diodes, GTOs Harmonics Transient Overvoltages, Lightning Impulses Machine Dynamics
5
13/02/2010
Typical studies
Find the over voltages in a power system due to a fault or a breaker operation Over voltages due to lightening strikes Find the harmonics generated by Power electronic devices (SVC,HVDC link, STATCOM, Machine drives) Tune and design control systems for maximum performance Investigate sub synchronous resonance (SSR) Study the interaction between the SVC,HVDC links and other non linear devices. Variable speed drives Industrial systems
Grounding methods Over-voltages due to switching Voltage sags Iron saturation inrush Performance of FACTS devices Ferro resonance Active and passive filters Distributed generation Flicker Variable speed drives and related harmonics Industrial systems
8
13/02/2010
10
11
PSCAD: Specifications
12
13/02/2010
PSCAD: Limits
Professional edition GNU Compaq FORTRAN Visual F77 FORTRAN ( V5 ou V6) 200 Unlimited 2000 Unlimited 25 Unlimited 50 Unlimited 70 Unlimited
200 2000 25
13
14
PSCAD Workspace
15
13/02/2010
16
1) Create or load a project 2) Select the components from the library 3) Define the components and connect them with wires 4) If needed, prepare dynamic control devices d d d i t ld i 5) Prepare plotting and metering tools 6) Parameterize the simulation => time step, parameters...
17
Create Projects
To create a new case: [File][New][Case] or :
18
13/02/2010
Activate Projects
To activate a project: Click on the project name then [Set as active]: The project name becomes blue Only one project is active Only an active project can be run and saved
19
20
Define components
Component parameters Window (e.g: Synchronous machine)
21
13/02/2010
On Line Help
[Help][Table of Contents]
Or directly click on the [Help] button from the dialog box of a component
22
On Line Help
23
Measurement
In component parameters window, define a name to measure internal variables: (eg: Output voltage of 3 phase voltage source)
24
13/02/2010
Plotting Devices
Overlay Graphs
Polygraphs
Meters
25
Plotting Curves/Metering
Step 1 : Measurement
26
Plotting Curves/Metering
Step 2: Select the Output channel component and link with the measured value
27
13/02/2010
Plotting Curves
Step 3a : [Right Click] on the Output channel and :
28
Plotting Curves
Step 3b ( if the graph is already created) :
29
Metering
Steps 1 & 2 are the same: Prepare the output Channel Step 3 : Select the Control Panel component
30
10
13/02/2010
Metering
Step 4: [Input/Output Reference] from the output channel
31
Plotting Curves/Metering
The Output channel component allows to define characteristics for the display of the measured value : (Title, Scale Factor, Unit,etc...
32
33
11
13/02/2010
34
2) Save directly all the measured quantities in output files: In the project settings menu Save Channels to disk :
Output files (text files) will be created in the *.emt directory Associated *.inf files can be directly opened in Livewire (offline PSCAD post processor)
35
36
12
13/02/2010
37
38
39
13
13/02/2010
Snapshot
A Snapshot allows to launch a simulation having initial conditions given by a previous simulation
1) Run a first initialization simulation until to reach the steady state and save results in a snapshot file 2) Launch transient simulations starting from snapshot files
41
42
14
13/02/2010
Measured values which will be recorded in the multiple run output file *.out
43
List of values
44
Data allowing to find the optimal run Possibility to record Max(x),Min(x) or x itself
45
15
13/02/2010
46
Variable parameters
Variable parameters in PSCAD:
Control signals for Power electronic devices Control signals for Breakers and Faults Electrical quantities externally controlled
( eg: Voltage Source Magnitude, RLC values,) Possibilities to design control systems with:
Control Blocks
Control system is defined by connecting:
Constants and Time inputs Sinusoidal functions Comparators Transfer functions Min, max Look up table Filters ..
48
16
13/02/2010
Control Blocks
Example:
49
Sequencers
State graph form:
50
51
17
13/02/2010
Breaker model
Single phase breaker: 1 model - 2 display
Breaker: Parameters
Name, Roff, Ron
Possibility to define pre and post insertion resistances Single pole operation: possibility to operate each phase separately
53
Breakers Control
Predefine the initial state and operation time in the Timed Breaker Logic component:
18
13/02/2010
Fault model
Single phase fault:
Fault control
Define the fault duration ant the time to apply fault in the Timed Fault Logic component:
Fault control
If the option external control is selected, the fault type can also be externally monitored: Fault type table :
57
19
13/02/2010
58
Semi-Conductors Models
59
Semi-Conductors Models
60
20
13/02/2010
Diode characteristic
Parameters:
Ron/Roff values Forward Voltage Drop Value F d V lt D V l Snubber Circuit Resistance & Capacitance
61
Thyristor characteristic
Parameters:
Ron/Roff values Forward Voltage Drop Value The Forward Break-Over Voltage: Device will be forced into conduction if this voltage is exceeded (with or without a gate pulse) [kV] The Reverse Withstand Voltage: Device will be forced into conduction in the reverse direction if this voltage is exceeded [kV] The minimum extinction Time (min of t between Roff and Ron) Snubber Circuit Resistance & Capacitance
62
GTO/IGBT characteristic
63
21
13/02/2010
Control system need a small time step to switch at exact instant : => Interpolation method
64
Interpolation Method
y y
1
y := t
dt
t1 t y2
65
Interpolation Method
4 1 t1 3 t 2 1 ON 2 ON (wrong) 3 ON (interpolate 1 &2) t 4 OFF (new G matrix) 5 dt ahead from 4 6 interpolate 4 & 5 6 7
66
22
13/02/2010
Interpolation Method
Advantages of this method: Accuracy: Switching is made at the exact instant Fast: Can be F t C b run at a l t larger time step and maintain ti t d i t i accurate results
67
VI Transformers in PSCAD
68
Current Transformers (JA Model, Lucas Model) Coupled capacitor voltage transformer Coactively coupled voltage transformer
69
23
13/02/2010
Classical Models
Classical models: Single phase: 2 or 3 windings 3 phase: 2,3 or 4 windings, autotransformers p , g , No mutual coupling between the 3 phases => equivalent to 3 single phase units
70
Classical Models
Representing transformers as coupled coils
Mutual inductance: Flux linkage Self inductance: Leakage inductance & Magnetizing inductance
71
UMEC models
Unified Magnetic Equivalent Circuit: Take the geometry of the core into account (ly,lw,Ay,Aw) Mutual coupling between the different phases are considered Equivalent to classical models but the inductances are dependent of the core dimensions: Lij(ly,lw,Ay,Aw)
72
24
13/02/2010
UMEC models
73
Equivalent Circuit
L1,L2: Positive Sequence Leakage reactance L12 : Magnetizing Inductance R1,R2: Copper Losses Iron Losses : Shunt resistance with L12
74
Parameters
Voltages levels at the primary and secondary side ( not only a ratio ! Important for p.u computations) Apparent Power (MVA) Winding t Wi di types ( Y or )
Possibility to modify dynamically the turns ratio during simulation as a Tap changer
75
25
13/02/2010
Parameters
Positive sequence leakage reactance (pu): L1+L2
(from short-circuit test)
Magnetizing Current (pu): % of rated current => L12 (from open-circuit test) ( p ) No load losses (pu): Core losses Copper losses (pu): resistance of windings : R1+R2 All parameters of the equivalent circuit are defined in per unit (i.e / Zbase ) : Zbase=V1*V2 / Sn
76
Ideal Model
User can select an ideal model or not for the transformer: 'Ideal' means that the magnetizing branch has been eliminated in the equivalent circuit:
77
2) To consider non linearities in the core, useful for: Harmonic distorsion studies Transformer inrush studies Ferroresonance phenomena studies
78
26
13/02/2010
Representing saturation
In PSCAD, saturation is represented with a compensating current source injection across the selected winding The magnetizing branch is replaced by a non linear magnetizing current source
Flux linkage
Mag. Current
Im1
Im2
79
80
81
27
13/02/2010
83
84
28
13/02/2010
85
T12 Te := J1
d w1 + D1 w1 + D12 ( w1 w1) dt
86
Or use the initialization process implemented in PSCAD: 1) Start the machine as a voltage source: Define V0 and 0 corresponding to the desired working point (P = 3*E*V* Sin /X), the corresponding Ef0 is computed by PSCAD 2) Then, enable the machine at locked rotor: Ef0 is now an input for the machine exciter, the corresponding Tm0 is computed 3) Then, enable the machine in normal mode, Tm0 is now an input, the machine mechanical dynamics is enable
87
29
13/02/2010
88
Transmission Lines
Selection of a suitable model: Available data: Geometric data or Parameters Speed of simulation: Time step Line l Li length: From several meters to hundred of Kms th F l t t h d d fK Type of study: Fast transient, Low transient, RMS Accuracy
89
90
30
13/02/2010
Lumped parameters model Travel time became small (compared to time step) up to several Kms
91
Bergeron Model: Accurate at a single frequency => for Rms or low transient studies (fault analysis) Frequency dependent models: accounts for the changes in line parameters due to frequency - Phase model : Most accurate model available - Mode model: Older model (available for PSCAD V2 compatibility)
92
93
31
13/02/2010
94
IX User Component p
95
OUTput Subroutine
96
32
13/02/2010
97
2) User code directly inserted in DSDYN or DSOUT sections: U d di tl i t di ti possibility to use all the existing EMTDC subroutines in order to design custom components easier
3) With the judicious use of DSDYN or DSOUT, user can decide to calculate control dynamics using pre or post solution quantities and avoid unnecessary time step delays
98
1) Create a library 2) Define the interface of the component 3) Parameterize your component 4) Define the Code
99
33
13/02/2010
Then save it, open the file and create your components
100
101
102
34
13/02/2010
103
You access to a new window: the component workshop , then select the tab parameters
104
105
35
13/02/2010
Then, choose the type of variable that the user will have the possibility to enter: Text Input Field (one value) Choice Box
106
Specify: The elements to be displayed in the parameter box (size, title, default value..) The data type
107
If several parameters are created, it is possible to edit or modify each ones in selecting the corresponding name in the drop list
108
36
13/02/2010
Each segment has its proper syntax (based on Fortran & PSCAD script)
109
Segments
Fortran: Design code or call subroutines defined in external *.f files Branch: To design electrical branches containing R,L or C Computations: for precomputations (compiled only at the first time step) DSDYN: Fortran code forced in the DSDYN sections, DSDOUT: Fortran code forced in the DSDOUT sections DSDOUT F t d f d i th ti Transformers: Syntax adapted to simply design mutual impedance matrix Checks: T-Lines: etc.
110
111
37
13/02/2010
112
113
Create sub_page
When the project becomes enough large, it is interesting to sudivide it into several pages organized in an arborescent structure:
Subpage 1
114
38
13/02/2010
Create sub_page
Operating Mode: Step 1 [Right Click] in the main page, the following menu appears:
115
Create sub_page
Step 2: The component wizard is opening: Indicate: the name of the subpage The number of connections between the sub_page and the main page Tick Page Module
116
Create sub_page
Step 3:
Indicate: The connection name The type of the connection: Electrical or Control quantity q y (input or output) The type of the data: Logical, Real, Integer The dimension (can be an array of several values)
117
39
13/02/2010
Create sub_page
Step 4 : Confirm and .that s finished !!
118
Create sub_page
Links between pages : Electrical Nodes The electrical connections between a sub_page and the main page are realized with the i li d ith th following component called External Electrical Node :
Note : This electrical node must have the same name as the one declared during the sub_page creation
119
Create sub_page
Links between pages : Control quantity Control quantities defined in the main page (declared as input during the connection definition) h t b i d fi iti ) has to be imported t d in the sub_page with the IMPORT component Notes: 1) Above, the imported value is an array of 4 reals 2) Similarly, we use the export component to export outputs in the main page
120
40
13/02/2010
XI MATLAB-Simulink interfacing g
121
41
13/02/2010
124
42
13/02/2010
Output of the *.mdl file, sent to User_component: Send the PSCAD PSCAD data to a *.mdl file project
127
128
43