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

Ask Your Question
0

VARs exceeded cross-run after a fault applied, and DYR "file in use"

asked Apr 4 '5

anonymous user

Anonymous

updated Apr 4 '5

Two things, after having a very confusing time diagnosing an issue where I cannot output channels after looped dynamic simulation runs.

1: How many VARS/ICONS/CONs are consumed by applying a bus fault? In a playin-based run, I consume around 310 VARs + 8-10 for output channels. In fault simulations, the max VARS (300) are exceeded and plots cannot be created.

1b: After testing, there seems to be some kind of VAR accumulation happening cross-run, which should be impossible since I am running the following commands each time: psspy.closepowerflow() psspy.dyrenew([1,1,1,1],dyrfile,..) psspy.deleteallplot_channels()

How could this be possible?

2: When I run these, they apply a lock on the .DYR file and I cannot remove it, even after the simulation is over. Is there a command to unload the DYR, like there is to unload a case? (psspy.close_powerflow())

1 answer

Sort by ยป oldest newest most voted
0

answered Apr 7 '5

Tassie Dave gravatar image

It sounds like you are very profligate with the channels you add. I almost never use so many.

You should not be not be adding any VARs, CONs or ICONs by applying a bus fault. Adding these is done by the dyre operation. This is a separate operation to applying a fault.

Maybe you should add psspy.init() to your script, at the start of your loop. This slows things down, but you get a clean start. And it probably requires your to run your PSSE script from Python, than than the other way round (using PSSE to run a .py file)

In loop situations (multiple run) I sometimes get the message "dyr file in use". If this is an issue I copy and save the dyr file as a new filename for each simulation.

link

Comments

The bulk of the channels are added by a UDM and .dll library, I have no control over it. What does init() do? It's not in my API documentation

trc gravatar imagetrc (Apr 7 '5)

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: Apr 4 '5

Seen: 44 times

Last updated: Apr 06