Created
July 31, 2011 05:47
-
-
Save jtrain/1116453 to your computer and use it in GitHub Desktop.
External Interpreter Environment setup for PSSE Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
featured on our blog all about PSSE and Python: | |
blog.whit.com.au | |
""" | |
import os,sys | |
PSSE_LOCATION = r"C:\Program Files\PTI\PSSE32\PSSBIN" | |
sys.path.append(PSSE_LOCATION) | |
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION | |
import psspy | |
#-------------------------------- | |
# PSS/E Saved case | |
CASE = r"C:\Program Files\PTI\PSSE32\EXAMPLE\savnw.sav" | |
if __name__ == '__main__': | |
psspy.psseinit(2000) | |
psspy.case(CASE) | |
psspy.fnsl( | |
options1=0, # disable tap stepping adjustment. | |
options5=0, # disable switched shunt adjustment. | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How right you are. Cheers Dan