First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

save raw and dyr file

asked May 14 '3

erika gravatar image

Hi, I was working on a .sav and .snp file. After making some changes I wanted to save it as a new .sav and .snp file. I tried using rawd_2 api but didn't work. After I save them the new file didn't contain any data. So I was wondering if anyone could tell me how to save the .sav and .snp file as new files so that I will be be able to open them and check if the changes were applied correctly?

2 answers

Sort by » oldest newest most voted
1

answered May 17 '3

Alex P gravatar image

maybe you have the options set incorrectly for rawd_2. Here's an example to try:

psspy.rawd2(0,1,[1,1,1,0,0,0,0], 0, 'rawfile_out.raw')

Frequently helpful to record a script while doing something manually and use that to get the correct options for a particular call.

I also avoid using snap files. Instead I reload the dyr and make any necessary dynamic solution settings for each run. In my opinion, snap files just hide old settings in an unreadable binary format.

link
0

answered May 15 '3

perolofl gravatar image

It seems like you are running PSSE from script only. For a total beginner I recommend to run PSSE manually in the GUI.

There are two ways to find the appropriate API for a certain activity in PSSE:

1: Search in the API manual

2: Use the method shown in I want to change the active power of a certain generator....

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: May 14 '3

Seen: 1,289 times

Last updated: May 17 '23