0

How to get PLBVFU1 to do frequency and voltage change inside script

Hey, I don't know if I am being totally stupid here but for some reason when I try to use the PLBVFU1 inside of my script (by simply running a blank dynamic run) I do not get the desired effect, however when I run the same model inside PSSE V34 itself with the same .plb and dyr file I get the expected result. Is it possible to do with the location of the .plb file ? Not sure, any tips would be appreciated.

haveityourwa's avatar
25
haveityourwa
asked 2018-06-20 20:52:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

When using PSSe GUI ('inside' mode) the working folder is set when you load the case and the plb file location should be on it. In a script (outside the PSSe GUI), the working folder (containing the sav and plb files) could be set explicitly in the code or by default, is set to the folder from where it was launched. Exa.:

savpath = c:\\abc\\cases   
os.chdir(savpath)         # change working dir to find *.plb file   
psspy.case('mycase.sav')  # located at savpath
jconto's avatar
2.9k
jconto
answered 2018-06-21 09:34:03 -0500, updated 2018-06-23 10:32:56 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks Jconto, found this out yesterday by fiddling and didn't get a chance to reply to my own question. Do you have some example of how to set it in code by any chance, or somewhere where there is information about how the PLBVFU1 model functions. I had a look at your google drive link about this _

haveityourwa's avatar haveityourwa (2018-06-21 19:12:08 -0500) edit

_ and was unable to make heads or tails about this. Cheers

haveityourwa's avatar haveityourwa (2018-06-21 19:12:27 -0500) edit

Thanks for the update on answer

haveityourwa's avatar haveityourwa (2018-06-23 10:34:59 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer