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

Ask Your Question
0

Is manually switching between powerflowmode and dynamics mode necessary when simulating contingencies?

asked Dec 24 '0

boat14 gravatar image

updated Dec 24 '0

Is it necessary to sandwich "powerflow" commands between powerflowmode() and dynamicsmode() commands when simulating dynamics contingencies?

For example, say I have a bus fault and want to disconnect the bus after the fault:

psspy.run(0, 1)

# Apply fault
psspy.dist_bus_fault(111111, _i, _f, [0.0, -0.2E+10])

# Run 6 cycles
psspy.run(0, 1.1)

# Clear fault
psspy.dist_clear_fault(1)

psspy.powerflowmode()    # Switch to powerflow mode Is this necessary?

# Disconnect bus
psspy.dscn(111111)

psspy.dynamicsmode(1)    # Switch back to dynamics mode, with factorizing. Is this necessary?

1 answer

Sort by » oldest newest most voted
1

answered Dec 30 '0

likethevegetable gravatar image

updated Dec 30 '0

That's a good question, I haven't seen or used those API calls before and have not had issues... My initial hunch tells me that psspy.powerflowmode() is necessary if you are affecting the network in a way that changes the admittance matrix values, for example, changing a converted load's power. I will investigate that when I have time and update my answer.

You can use this command to disconnect the bus instead, and confidently not use those comands: ierr = psspy.dist_bus_trip(ibus)

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: Dec 24 '0

Seen: 344 times

Last updated: Dec 30 '20