Ask Your Question
0

How to create a case from Python ?

asked 2018-11-14 07:30:00 -0600

rafaels100 gravatar image

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 !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-11-14 09:40:54 -0600

perolofl gravatar image

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,"","")
edit flag offensive delete link more

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 gravatar imagerafaels100 ( 2018-11-14 10:59:37 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2018-11-14 07:30:00 -0600

Seen: 4,299 times

Last updated: Nov 14 '18