First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

generators and their properties

asked Mar 30 '3

anonymous user

Anonymous

How to obtain from the sav file the list of generators and their properties by Python? Same please for the switched shunts!

1 answer

Sort by ยป oldest newest most voted
0

answered Mar 31 '3

jconto gravatar image

To get data for all generators and switch shunts in a basecase:

import psse33
import caspy

savfile = r"C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\sample.sav"
caspydata = caspy.Savecase(savfile)
gendata = caspydata.pssgen
print '\ngendata\n'
print gendata
swshdata = caspydata.psswsh
print '\nswshdata\n'
print swshdata
link

Comments

Nice, this is a very good option to psspy for retrieval of data for all components in a saved case.

perolofl gravatar imageperolofl (Apr 6 '3)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Mar 30 '3

Seen: 3,159 times

Last updated: Mar 31 '23