TRANSMISSION &
DISTRIBUTION
A Division of Global Power
POWER SYSTEM STABILITY CALCULATION TRAINING
D14
15
A t ti i P th
D
ay
14
-
15
-
A
u
t
oma
ti
on us
i
ng
P
y
th
on
December 5, 2013Prepared by: Mohamed El Chehaly
eBook for You
OUTLINE
2
OUTLINE
• Introduction
Automation
Response
files
or
“
idv
”
:
Contains
a
set
of
Response
files
or
idv
:
Contains
a
set
of
instructions and inputs emulating the
program
operation
manual
program
operation
Introduction
to
PSS®E
Automation
Python
programs
:
Python
programs
:
Interpreted object-oriented programming language
(
no com
p
iler
)
(
p)
In PSS®E since version 30
Faster development, flexibility, power data
processing and easy integration with othe
r
applications and programming languages
eBook for You
Recording an Automation File
9
APPLICATION PROGRAM INTERFACE
Controlling
PSS®E
Using
the
API
Set of callable routines for building
ft li ti
so
ft
ware app
li
ca
ti
ons
API is the primary and recommended
method for accessing PSS®E functionality
method
for
accessing
PSS®E
for
using
each
API routine in each automation method
Siemens PTI support users who use batch
Siemens
PTI
support
users
who
use
batch
commands and Python programs only.
eBook for You
Default Values
10
APPLICATION PROGRAM INTERFACE
print
b
return
temp(
i
4)
temp(
_
i
,
4)
eBook for You
11
PSS®E EXTENSION MODULES
PSS®E
EXTENSION
MODULES
eBook for You
Modules for Python
12
PSS®E EXTENSION MODULES
Modules
for
Python
PSS®E
data
or
solution
results
to
Excel
Pssplot
: Provides access to the
PSS®Plot
Pssplot
:
Provides
access
to
the
PSS®Plot
t
o
interface with Excel (create, populate and
format workbooks)
format
workbooks)
Dyntools
: Tools for processing channel
Dyntools
:
Tools
for
processing
channel
output files
eBook for You
PSSPY
14
PSS®E EXTENSION MODULES
PSSPY
PFlOti
15
POWER FLOW OPERATION
POWER
FLOW
OPERATION
eBook for You
CASE
16
POWER FLOW OPERATION
CASE
Use this API to open a Saved Case (.sav)
eBook for You
NEWCASE2
17
POWER FLOW OPERATION
NEWCASE2
Use this API to open a new Saved Case
(
sav
)
(
.
sav
)
eBook for You
SAVE
18
POWER FLOW OPERATION
PURG
Use this API to delete an equipment
eBook for You
Other Functions
23
POWER FLOW OPERATION
Other
Functions
POUT: Print the power flow solution results
ANSI:
Calculate fault currents according to
ANSI:
Calculate
fault
currents
according
to
ANSI
ASCC2:
Apply a series of fault at various
function
eBook for You
Other Functions
24
POWER FLOW OPERATION
Other
Functions
PV_ENGINE3: Run PV analysis
QV ENGINE:
Run QV analysis
QV
_
ENGINE:
Run
QV
analysis
CONG: Convert generators
CONL:
Convert loads
CONL:
Convert
CHANGING
eBook for You