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

Ask Your Question
0

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

asked Jun 21 '18

haveityourwa gravatar image

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.

1 answer

Sort by » oldest newest most voted
1

answered Jun 21 '18

jconto gravatar image

updated Jun 23 '18

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
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 gravatar imagehaveityourwa (Jun 22 '18)

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

haveityourwa gravatar imagehaveityourwa (Jun 22 '18)

Thanks for the update on answer

haveityourwa gravatar imagehaveityourwa (Jun 23 '18)

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

2 followers

Stats

Asked: Jun 21 '18

Seen: 1,960 times

Last updated: Jun 23 '18