Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I want to apply PSS/E 33 version of Python code to PSS/E 35 version, but I get an error. How do I fix the code?

path=r'C:\Users\Smartgrid\Desktop\ESP\2AggregateModel\B021ActivePowerControl'

psspy.case(path+'\B02CASE01P100QZ000SCR20_XR20.sav') psspy.fdns([0,0,0,1,0,0,99,0]) psspy.fdns([0,0,0,1,0,0,99,0]) psspy.cong(0)
psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0)
psspy.fact() psspy.tysl(0)

psspy.dyrenew([1,1,1,1],path+'\SinanHaesongWPAggregatedB021.dyr',"","","") psspy.dynamicssolutionparam_2(realar3=0.001)

psspy.strt2([0,0],path+'\99Result.out')

psspy.linesperpageonedevice(1,60) psspy.progressoutput(2,path+'\99Result.txt',[0,0])

click to hide/show revision 2
No.2 Revision

I want to apply PSS/E 33 version of Python code to PSS/E 35 version, but I get an error. How do I fix the code?

path=r'C:\Users\Smartgrid\Desktop\ESP\2AggregateModel\B021ActivePowerControl'

path=r'C:\Users\Smartgrid\Desktop\ESP\2_Aggregate_Model\B02_1_Active_Power_Control'   

psspy.case(path+'\B02CASE01P100QZ000SCR20_XR20.sav') psspy.case(path+'\B02_CASE01_P100_QZ000_SCR20_XR20.sav') psspy.fdns([0,0,0,1,0,0,99,0]) psspy.fdns([0,0,0,1,0,0,99,0]) psspy.cong(0)
psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0]) psspy.ordr(0)
psspy.fact() psspy.tysl(0)

psspy.tysl(0) psspy.dyre_new([1,1,1,1],path+'\Sinan_Haesong_WP_Aggregated_B02_1.dyr',"","","") psspy.dynamics_solution_param_2(realar3=0.001)

psspy.dyrenew([1,1,1,1],path+'\SinanHaesongWPAggregatedB021.dyr',"","","") psspy.dynamicssolutionparam_2(realar3=0.001)

psspy.strt2([0,0],path+'\99Result.out')

psspy.linesperpageonedevice(1,60) psspy.progressoutput(2,path+'\99Result.txt',[0,0])

psspy.strt_2([0,0],path+'\99_Result.out') psspy.lines_per_page_one_device(1,60) psspy.progress_output(2,path+'\99_Result.txt',[0,0])