0

How to create a case from Python ?

  • retag add tags

Hello I already have the code that lets me run psse through python, but i always have to open a saved case in order to do something to it. Theres a way to create the saved case from python and then start adding elements to it like i would normally do with an open case ? Thanks !

rafaels100's avatar
29
rafaels100
asked 2018-11-14 07:30:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Use API newcase_2!

For example to create an empty case with 100 MVA base and 50 Hz base frequency:

 psspy.newcase_2([1,1], 100.0, 50.0,"","")
perolofl's avatar
3.8k
perolofl
answered 2018-11-14 09:40:54 -0500
edit flag offensive 0 remove flag delete link

Comments

Amazing ! using this and psspy.save and specifying a location and anyname I want, I was able to create the sav file. Thanks !

rafaels100's avatar rafaels100 (2018-11-14 10:59:37 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer