First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi everyone, I'm trying to create *.acc file for pss/e using python. I can do this easily using pss/e itself:
1 - create *.sub, *.mon, *.con files
2 - create respective *.dfx file
3 - and finally create *.acc file
The idea is to perform all these 3 tasks automatically, using python. So, using the record tool from psse I get this code:
psspy.bsys(0,0,[ 230., 230.],1,[1],0,[],0,[],0,[])
psspy.bsys(0,0,[ 230., 230.],1,[1],0,[],0,[],0,[])
psspy.dfax([1,1],r"""PATH\reports.sub""",r"""PATH\reports.mon""",r"""PATH\reports.con""",r"""PATH\reports.dfx""")
psspy.acccwithdsp_3( 0.5,[0,0,0,1,1,2,0,0,0,0,0],r"""IEEE""",r"""PATH\reports.dfx""",r"""PATH\reports.acc""","","","")
psspy.acccsinglerunreport4([1,1,2,1,1,0,1,0,0,0,0,0],[0,0,0,0,6000],[ 0.5, 5.0, 100.0,0.0,0.0,0.0, 99999.],r"""PATH\reports.acc""")
It happens that when I run this code on python, the *.sub, *.mon, *.con and *.dfx files are not created thus the API acccsinglerunreport4 reports an error. Can anyone tell me why these files aren't being created with this code?
Thanks in advance for your time
2 | retagged |
Hi everyone, I'm trying to create *.acc file for pss/e using python. I can do this easily using pss/e itself:
1 - create *.sub, *.mon, *.con files
2 - create respective *.dfx file
3 - and finally create *.acc file
The idea is to perform all these 3 tasks automatically, using python. So, using the record tool from psse I get this code:
psspy.bsys(0,0,[ 230., 230.],1,[1],0,[],0,[],0,[])
psspy.bsys(0,0,[ 230., 230.],1,[1],0,[],0,[],0,[])
psspy.dfax([1,1],r"""PATH\reports.sub""",r"""PATH\reports.mon""",r"""PATH\reports.con""",r"""PATH\reports.dfx""")
psspy.acccwithdsp_3( 0.5,[0,0,0,1,1,2,0,0,0,0,0],r"""IEEE""",r"""PATH\reports.dfx""",r"""PATH\reports.acc""","","","")
psspy.acccsinglerunreport4([1,1,2,1,1,0,1,0,0,0,0,0],[0,0,0,0,6000],[ 0.5, 5.0, 100.0,0.0,0.0,0.0, 99999.],r"""PATH\reports.acc""")
It happens that when I run this code on python, the *.sub, *.mon, *.con and *.dfx files are not created thus the API acccsinglerunreport4 reports an error. Can anyone tell me why these files aren't being created with this code?
Thanks in advance for your time