Ask Your Question

How does contingency analysis can iterate over a defined vector of line flow changes?

asked 2022-02-16 15:56:01 -0500

Moji gravatar image

Hi all,

I want to do a contingency analysis such that for each scenario, there are some changes in load or line flow. ( i.e., each contingency scenario should iterate over a parameter range like the power flow of a line denoting a range of load transferring between two areas). Is there any way to carry out that procedure in PSSE? Like using python. I know using ACCC helps us make the scenarios; however, I guess this is a static action as there is no option for changing some load/line flow for each scenario.

I would appreciate your support and help.

Best, Moji

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2022-02-17 16:28:36 -0500

jconto gravatar image

updated 2022-02-21 12:44:48 -0500

PSSe have an add-on tool to perform PV analysis. Using such tool, transfer of power between areas can be tested and at each incremental power transfer (say 100 MW), contingencies are evaluated. The run stops when a contingency does not converged, meaning the maximum power transfer between those areas has been reached, or when the transfer reach its maximum as defined in the set up. The PV study set up (similar to ACCC) uses SUB, CON and MON files.

In python, the simulation of a PV study requires two loops. The outer loop sets/creates a case at the required power transfer level between the selected region and the inner loop evaluates all the contingencies. ACCC could be used here, instead of the inner loop. On the power transfer methodology, it can be

  • "Gen-to-Gen", scale up generation at the sending region and scale down generation at the receiving region, or

  • "Gen-to-Load", scale up generation at the sending region and scale up load at the receiving region or

  • "Load-to-Load", scale down load at the sending region and scale up load at the receiving region

In general, the python approach provides flexibility and control of the study but it up to the user to perform the checks needed for a sound study (selection of gens or loads participating in the power transfer process, check for violations and resolution before entering the contingency process, criteria to declare a voltage collapse condition, etc.)

Search this forum for "PV Analysis" or "SUB file" to find examples on the definition of subsystems (a.k.a. source and sink). Download "" from my public google site, to run a demo pv study on the savnw case (it uses data available in the folder 'example' of the PSSe installation folder.)

edit flag offensive delete link more


Thanks for the answer. Regarding creating files for PV analysis, could you give me the hints to know how they will be if the scenario is: - SOURCE: change the load of some buses - SINK: Whole of the system I am working on 118-bus where it has only 1 area based on the RAW file. Thank you Moji

Moji gravatar imageMoji ( 2022-02-21 09:38:38 -0500 )edit

I updated my previous response. Feel free to modify/add another area to the IEEE_118 system (or work with zones).

jconto gravatar imagejconto ( 2022-02-21 11:57:31 -0500 )edit

I appreciate sharing that. One more question, is it possible to run such routine considering different generation patterns either using PSSe tools or the python approach? Thank you.

Moji gravatar imageMoji ( 2022-02-21 16:29:25 -0500 )edit

Yes, it is possible. It would add an upper loop where the dispatch of selected generation is done before entering the pv section. It is like creating separate basecases for each dispatch scenario and a pv study run on each (dispatch scenario) basecase.

jconto gravatar imagejconto ( 2022-02-21 18:18:13 -0500 )edit

Thank you. I understand. Could you please let me know where I can find a good source/manual/tutorial for learning Python in PSSe? I need to get familiar with psspy functions and commands. I appreciate the time and help.

Moji gravatar imageMoji ( 2022-02-22 08:29:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2022-02-16 15:56:01 -0500

Seen: 196 times

Last updated: Feb 21 '22