First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
2021-07-08 07:53:15 -0500 | answered a question | psspy.case casues python to crash/restart looks like you havent imported psse34 |
2021-07-08 07:21:04 -0500 | received badge | ● Editor (source) |
2021-07-08 07:15:35 -0500 | answered a question | psspy.case casues python to crash/restart what is your python version? psse version? I am giving a sample code for psse34 and py2.7 PYTHON INITIALSING AND IMPORTINGCalling of the PSSE location in PythonEnsure you are Python 2.7Ensure have pip installed matplotlib in python27/scripts directory**************import psse34 Including the PSSPY library of PSSE, Redirecting its output to Python Shell and Importing the Default variablesimport psspy, arrbox.dfax_pp psspy.throwPsseException=True import redirect redirect.psse2py() psspy.psseinit() default integer, float etc constatnts neededfrom psspy import _i from psspy import _f from psspy import _s import dyntools import matplotlib.pyplot as plt import math print ("\n Python code is ready to run \n") **************PYTHON INITIALSING AND IMPORTING END HERECOPY THIS PART AS IT IS IN FUTURE CASES*****************************Define .sav and .dyr casessince we have a snapshot file, *.snpthere is a need to open that in GUIand save the machine data case tabas filenameofyour_choice.dyr**************************Input and Files**********case_name=r"""D:\mydir\myfile.sav""" dyr_name =r"""D:\Mydir\mydynfile.dyr""" outfile = "plot.out" **********LOAD FLOW**********load case and run loadflowpsspy.case(case_name) run load flowpsspy.fnsl([0,0,0,0,0,0,0,0]) |
2021-06-29 01:07:58 -0500 | answered a question | Understanding dynamic models GENROU is round rotr model. Basic theory is given in any dynamics book such as Prabha Kundur |