Professional Documents
Culture Documents
2 - SimulationSetup (Till DYRE)
2 - SimulationSetup (Till DYRE)
di
(i t ) = 1 ò0 (E - Ri(t ))dt + i(0)
t
2. Equations: E = Ri + L or
dt L
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
3. Initial condition (IC): i (t = 0 )
4. Block diagram:
5. Time response: i
time
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-2
Dynamics Fundamentals:
Block Diagram Transformation
1 t
State i (t ) = ò (E - Ri(x ))dx + i(0)
L 0
IC = i(0)
1
E(t) i(t) E(t) i(t)
å 1/s 1/L R
L
- 1 + s( )
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
R
G
R
1 m GH
X1 X2 X1 X2
G
å G
- 1 + GH
H
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-3
Dynamics Fundamentals:
P- f and Q - V Control Loops
Speed
ref -
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
å
Speed Electrical
Prime Mover Pmech
Network
& Pelec
Generator
Control
Vterm Loads
Efd -
å
Excitation Vref
System
and
Control
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-4
Power System Phenomena & Types of Controls
System Reinforcement
Operator
Actions
POWER LFC
SYSTEM
CONTROLS Prime Mover Control
Generator Control
Protection
HVDC, SVC
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Planning
Operations Planning
POWER Economics
SYSTEM Frequency Variations
PHENOMENA
Power Swings
Surges
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-5
What is Dynamic Simulation?
- Disturbances:
ü branches and bus faults with or without protection failure (stuck breaker)
ü opening of branches without fault
ü trip of generators with or without faults
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
ü trip of loads
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-6
Power System Phenomena & Simulation Tools
Reliability
Production S im ulation
Pow er Flow
D ynam ic S im ulation
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
TNA
Planning
Operations Planning
S urges
10 -4 10 -3 10 -2 .1 1 10 100 1000 10 4 10 5 10 6 10 7 10 8 10 9
Tim e P eriod
in S econds
1 cycle 1 m in. 1 hr 1 day 1 wk 1 yr
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-7
Simulation Models
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
n Typical Disturbances Studied:
- Short circuit
- Line trip
- Generator trip
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-8
How Does Dynamic Simulation Work in
PSS®E ?
- Dynamic simulation requires the solution of nonlinear differential equations
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- expressed in block diagram
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-9
Dynamic Simulation Flow
Data Assimilation
Initialization
Network Solution
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Time Derivative
Apply Calculation
Disturbances
Output Plot Channels
Numerical Integration
Advance Time
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-10
PSS®E Dynamic Simulation Setup
n Starting with a solved power flow case, we first need to prepare the
converted case:
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
(activities CONL and CONG)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-11
Dynamic Simulation Setup (1/3)
Convert Loads (CONL)
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
n Generic Approach:
- Active power: 100% constant I
- Reactive power: 100% constant Z
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-12
Dynamic Simulation Setup (1/3)
Convert Loads (CONL) : Constant Power
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-13
Dynamic Simulation Setup (1/3)
Convert Loads (CONL) : Constant Current
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Current
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-14
Dynamic Simulation Setup (2/3)
Convert Generators (CONG)
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-15
Dynamic Simulation Setup (2/3)
Convert Generators (CONG) : Time Regimes
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-16
Dynamic Simulation Setup (3/3)
Optimal Ordering (ORDR)
- A bus is removed
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- A zero impedance line is converted to a nonzero, or vice versa
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-17
Dynamic Simulation Setup (3/3)
Factorization (FACT), Network Solution (TYSL)
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Solution for Switching Studies
- Calculates triangularized Y matrix network solution
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-18
Dynamics Setup Procedure: Step 1
1. Start with a case (.sav) which has proper MBASE and ZSORCE.
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
§ Power Flow → Solution → Order network…
§ Activity ORDR
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-19
Dynamics Setup Procedure: Step 2
2. Prepare a dynamic model raw data file (.dyr) to be read into PSS®E
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
For example, enter a generator model in the following format:
101 'GENROU' 1
6.5 0.06 0.2 0.05 4.0 0.0 1.8
1.75 0.6 0.8 0.3 0.15 0.09 0.38 / comments
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-20
Step 2 (Continued)
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-21
Dynamics Setup Procedure: Step 3
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-22
Dynamics Setup Procedure: Step 3
File → Open → Dynamics Model Raw Data File (*.dyr) aka DYRE
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
file (.flx file) – output (optional)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-23
DYRE Background
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
3. If required! Writes calling subroutines to connect with user models
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-24
DYRE Background:
(1/3) Pointers
MODEL
PSS®E MODEL
CONNECTION
PROGRAM LIBRARY
SUBROUTINE
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
DYNAMIC SIMULATION
WORKING ARRAYS
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-25
DYRE Background:
(2/3) Dynamic Data Arrays
CON ICON STATE VAR Special
Machine
Arrays
M
M O ETERM
O D1 M EFD
D1 E O PMECH
E L D1 PELEC
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
L E QELEC
L SPEED
M ANGLE
O
D2
M E
O L
D2
E
L
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-26
DYRE Background:
(2/3) Dynamic Data Arrays
n Constants (CON)
- Parameters that do not vary during the simulation period.
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
n Algebraic Variables (VAR)
- Variables whose values can be determined if the values of all state
variables, constants and input variables are given.
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-27
DYRE Background:
(3/3) Internal Model Calling Subroutines
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
• FACTS Device Models
• HVDC Line Models
• Switched shunt models (discrete or SVC models)
§ The user does not see these internal calling subroutines and
generally does not need to be concerned with their operations.
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-28
DYRE Background:
(3/3) External Model Calling Subroutines
n Obsolete! since Version 34
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- May be edited using a standard text editor
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-29
DYRE Background:
(3/3) External Model Calling Subroutines
n Obsolete! since Version 34
n Two types of models:
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- Models without dynamics, often containing only algebraic equations
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-30
DYRE Background
(3/3) External Model Calling Subroutines
n Obsolete! since Version 34
n CONEC Subroutine
• Very few standard PSS®E models are still called from the CONEC
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
subroutine.
n CONET Subroutine
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-31
DYRE Background:
(3/3) External Model Calling Subroutines
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
variables and any algebraic variables needed
- can also be used for the advanced control of a simulation
n CONET
- is responsible for equipment models that are called during network
solution to calculate current injections which are dependent on the
voltage at the bus to which they are connected
- is also responsible for other models which only monitor the network or
perform actions based on network quantities such as relays
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-32
Dynamics Setup Procedure: Step 3
After reading the data file, PSS®E displays the following message:
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-33
Compiling and Creating User Model DLL
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
PSSE 33 >
NOTE
A compiler installation required!
e.g. Intel Visual Fortran (IVF)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-34
Dynamics Setup Procedure: Step 3
- PSS®E gives a summary of the models and flags errors found in the file
(e.g., too much data or not enough data)
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- (Optional) Look at the CONEC and CONET files outside of PSS®E using a
text editor
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-35
Summary of Dynamics Setup Procedure
- Start PSSE
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- Open the dynamic raw data file
- If necessary, Exercise
• Exit PSS®E SU1
• Compile CONEC and CONET
• Link with the dynamic simulation skeleton
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-36
Automation
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
Exercise
SU1.1
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-37
Data Documentation
n Dynamics → List
- Models and Data (DOCU) - List dynamic models and data, including models
called from CONEC and CONET subroutines, models related to output
channel selections.
- Dynamics Data (DLST) - List contents of dynamic data arrays, such as
CONS, ICONS, STATES, VARS and channels.
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
- Model Storage Location (MLST) - List machine model storage locations, i.e.,
indices of CONS, ICONS, STATES and VARS.
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-38
Data Documentation Example:
Data Sheet
3001
1
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
0.1
10.0
100.0
0.1
0.0
4.0
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-39
Data Documentation Example:
Models and Data List (DOCU)
Datasheet
3001
1
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
133 0.1 50
DOCU 10.0
100.0
shows 0.1
0.0
Array 138 4.0
assignment
internal reference
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-40
Dynamics Data List (DLST)
CONS:
33: 2.500 34: 0.0000 35: 1.400 36: 1.350
37: 0.5000 38: 0.7000 39: 0.250 40: 0.1000
41: 0.9000E-01 42: 0.3800 43: 5.000 44: 0.5000E-01
VARS:
1: 0.1423E-37 2: 0.4114E-37 3: 0.000 4: 0.000
5: 0.000 6: 0.000 7: 0.000 8: 0.000
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
STATES:
ICONS:
OUTPUT CHANNELS:
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-41
Output from Activity MLST
PLANT MODELS
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
206 URBGEN 18.000 1 GENROU 29- 42 13- 18
IEEET1 111- 124 44- 47 3
TGOV1 159- 165 58- 59 6
Exercise
SU1.2
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-42
Some Common Mistakes
§ Failing to insert a forward slash ( / ) at § Not knowing when to use DYRE and
the end of every data record in the when DYRE,ADD. Use DYRE for initial
dynamics model raw data file reading and DYRE,ADD for adding data
to an existing setup
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
to program message in progress after reading a .dyr file
window
§ Accidentally overwriting the original
§ Attempting to rebuild DLL while PSS®E CONEC and CONET files when reading
window is still active dynamics model raw data file in the
data addition mode (DYRE, ADD). Use
different file names during data addition
§ Attempting to write simulation results to
an output file that is currently being
used by plotting program e.g., PSSPLT § Using <tabs> in FLECS code,
connection subroutines or user models.
Compiler does not recognize <tabs>
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-43
Hands-on Training:
- Dynamics Data Setup Exercise SU1
Prepare generator, exciter and governor models for the machines in the
SAVNW system, using parameters from Tab 14 of Course Notes.
1. Create a new folder SU1. Place savnw_ds.sav in the folder. Start PSSE.
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
2. Open savnw_ds.sav.
3. Convert load flow file (File > Open > Saved Case, Power Flow > Convert
loads & generators, Power flow > Solution > FACT and TYSL)
- save the converted case (File > Save > su1_cnv.sav)
4. Create a dynamics raw data file using a text editor, save as su1.dyr
5. Start PSS®E. Open su1_cnv.sav file. Open the dynamics raw data file
(File > Open > Dynamics Model Raw Data File> su1.dyr)
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-44
Hands-on Training:
- Dynamics Data Setup Exercise SU1.1
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
3. Repeat Step 2 to Step 5 from previous exercise.
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-45
Hands-on Training:
- Dynamics Data Setup Exercise SU1.2
© 2014 Siemens Industry Inc., Siemens Power Technologies International (Siemens PTI)
2. Place in this folder the files:
savnw_ds.sav
su1.dyr
run.py
4. Perform:
DOCU
DLST
MLST
Siemens Power Academy TD-NA – PSSC 550 Dynamic Simulation Page 2-46