Ask Your Question

Automation Guy's profile - activity

2023-02-09 08:46:46 -0500 received badge  Famous Question (source)
2022-02-21 11:11:40 -0500 received badge  Notable Question (source)
2022-02-19 04:27:20 -0500 received badge  Popular Question (source)
2022-02-17 10:45:05 -0500 asked a question Corrective Action - Subsystem Definition

Hello All, I have implemented an automation program that does power flow, contingency analysis and corrective actions for the lines that are overloaded over 100% of the specified limit. However, the problem that I have is PSSE only gives an option to define a subsystem where generation will be redispatched (increment and decrement of generators in same area) to mitigate the overloads as part of corrective action and this works as designed. I wanted to go further ahead and say that I wanted to decrement generators from particular area and increment generators particularly from another area such that inc/Dec is not performed in the same area and I’m not sure how do I define that in the subsystem definition for redispatching generators.

2021-11-11 16:09:17 -0500 received badge  Famous Question (source)
2021-08-12 10:23:05 -0500 received badge  Famous Question (source)
2021-07-30 09:12:41 -0500 received badge  Famous Question (source)
2021-07-27 13:34:04 -0500 received badge  Popular Question (source)
2021-07-27 13:34:04 -0500 received badge  Notable Question (source)
2021-07-19 17:49:01 -0500 commented question Matplotlib throwing an error while trying to export channel output data

code is from the URL: https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/%3C/p%3E (https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/)

2021-07-19 17:48:46 -0500 asked a question Matplotlib throwing an error while trying to export channel output data

I'm getting the following error while trying to run the following code as mentioned in the URL: Can somebody help me to resolve the error. Google has little to no help on this error. code is from the following

Traceback (most recent call last): File "Z:\python\ACCC_Compiled\Version_11.2-DynSim\testplot.py", line 21, in <module> from matplotlib import pyplot as plt File "C:\Python37\lib\site-packages\matplotlib\__init__.py", line 107, in <module> from . import _api, cbook, docstring, rcsetup File "C:\Python37\lib\site-packages\matplotlib\cbook\__init__.py", line 31, in <module> from matplotlib import _api, _c_internal_utils ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (C:\Python37\lib\site-packages\matplotlib\__init__.py)

2021-07-18 06:12:37 -0500 received badge  Popular Question (source)
2021-07-18 06:12:37 -0500 received badge  Notable Question (source)
2021-07-18 03:19:42 -0500 received badge  Famous Question (source)
2021-07-14 09:32:16 -0500 asked a question Is it require to run fault on every branch in the model and determine the stability of the generator?

Hello All, I have a task to run 3-phase fault on every line that is over 100 kV in the footprint of the Transmission Operator and determine if the generators near by the line will be stable or not.

My questions on this task are below: 1. Why is it necessary to run the analysis on every single line? Isn't it the case that generator is more severely impacted by the 3-phase fault on the lines exiting from Generator Step Up Transformer (GSU) than the fault on any other line that is far away from the generator in the network? In other words if the generator is stable for a 3-phase fault on the lines connected to GSU then can't we say that the generator will be stable for 3-phase fault on any other line farther away from the generator.

  1. Will there be a case where the generator (assumingly a big generator) is stable for a 3-phase fault on the line next to it's GSU but a small generator which is electrically close to the big generator is not stable for the same fault?

    1. If the reasoning in #1 is correct then it will greatly reduce the channels (in other words number of buses and parameters that I need to monitor will be limited to just 3 buses around the generator) that I need to monitor and save and thereby reduces the time taken to perform transient stability analysis of the entire network.

    2. I understand that impedance of the network during the fault also plays key role in determining the stability of the generator and I believe that limiting the analysis just to the lines connecting to GSU is sufficient.

    3. Is there something else that might impact this approach or something that I'm missing in my analysis?

Thanks in advance.

2021-06-29 10:38:07 -0500 received badge  Notable Question (source)
2021-06-23 19:52:02 -0500 received badge  Popular Question (source)
2021-06-21 08:28:44 -0500 asked a question How do I capture skipped contingencies in contingency analysis automation?

Hello All, I have built a python based PSS/E automation to run contingency analysis using a predefined Contingency definitions. I have to run this predefined contingencies on several PSS/E models. One issue that I see is there might be a contingency definition which might not be valid on a given PSS/E base case and therefore can skip executing the analysis. This information is shown on the progress window. Since, I'm running thousands of contingencies, I would like to capture all such skipped contingencies into a variable and present to the user in the log file. I see the flag for the unsolved contingencies but I couldn't find anything that I may use to capture all skipped contingencies.

One way to address this issue is to redirect from the output progress window to log file and then read the log file and filter the data with key words to find such skipped contingencies. I would like to know if there is any other easy/best method to capture the skipped contingencies.

Your input is appreciated!!

Thanks

2021-06-11 12:07:01 -0500 received badge  Notable Question (source)
2021-06-03 13:09:30 -0500 received badge  Popular Question (source)
2021-06-01 22:35:01 -0500 asked a question Taking Long to Create DFAX File

Hello All, I have been facing an issue with certain PSS/E models where creating DFAX as part of contingency analysis is taking over 1 hour. However, the actual contingency analysis for 3000 contingencies taken less than 2 minutes. I'm not sure why does it take over 1 hour to create DFAX file and is there anything that can be done to the model to expedite the DFAX file creation.

Thanks in advance!!

2021-05-21 09:20:28 -0500 received badge  Famous Question (source)
2021-04-28 07:43:43 -0500 received badge  Popular Question (source)
2021-04-28 07:43:43 -0500 received badge  Notable Question (source)
2021-04-28 07:43:32 -0500 received badge  Famous Question (source)
2021-04-20 08:41:02 -0500 received badge  Notable Question (source)
2021-04-18 21:06:13 -0500 received badge  Notable Question (source)
2021-04-16 02:12:12 -0500 received badge  Popular Question (source)
2021-04-15 08:10:36 -0500 received badge  Popular Question (source)
2021-04-14 17:36:01 -0500 asked a question subsystem identifiers range from 0 to 11

Can somebody explain how a subsystem is different from 0 to 11? I see this statement 276 times in API but couldn't find what each number means. Also, could you please point me where this information is available in API or other document?

Thanks in advance!!

2021-04-14 14:17:12 -0500 asked a question How to get Machine Control Mode information for each generator?

I would like to know how to retrieve the Machine Control Mode for each generator in PSSE automation. I cam across the function 'amachint' with string 'WMOD' in API documentation but was not successful. Is there any other better way to retrieve this data.

Thanks in advance!!

2021-04-14 14:04:57 -0500 asked a question How to find the generator type in the PSSE Model?

Hello All, In PSSE Python, I would like to filter for the wind generators in the mix of generators with various types such as Wind, Coal, Nuclear and Natural gas. One function that I came across in API is amachint with string WMOD but unfortunately this doesn't returns the wind generators list. I would like to know if there is any other better way to find the wind generators in the model.

Note: Coal, Nuclear and Natural Gas plants have the parameter Machine Control Mode as 'Conventional Machine' and rest of the wind generators as 'Renewable: Standard QT, QB limits' or 'Renewable: +, - Q limits based on WP' or 'Renewable: +, - Q limits based on WP'. So this must be easy to find the generators that are not Conventional machines to get wind generators.

Thanks in advance!!

2021-03-18 09:09:41 -0500 received badge  Enthusiast
2021-03-16 13:38:23 -0500 commented answer Largest Mismatch Tolerance Error

What you suggested makes sense and might be quite useful if bus with largest mismatch bus is generator bus. How do we deal in automation if the bus with largest mismatch is non-generator bus? Generator that's causing issue might be few buses away and it becomes complicated to do what you suggested.

2021-03-16 13:35:25 -0500 commented answer Largest Mismatch Tolerance Error

The reason for disconnecting generators is because those generators are far away from my area and have no impact on my area at all.

2021-03-16 09:29:28 -0500 received badge  Popular Question (source)
2021-03-16 09:29:28 -0500 received badge  Famous Question (source)
2021-03-16 09:29:28 -0500 received badge  Notable Question (source)
2021-03-07 20:59:40 -0500 received badge  Organizer (source)
2021-03-07 20:59:07 -0500 asked a question Largest Mismatch Tolerance Error

Hello Everyone, I have implemented ACCC automation using Python and PSS/E. I have been getting an error saying largest mismatch tolerance some big number at bus # XYZ. Most of the time the bus with largest mismatch is outside of my sub-area of interest so I can simply disconnect the generator at that bus if there is any. However, at times the mismatch is shown at non-generator bus and I'm not sure how to resolve this in Python automation. Working through PSS/E GUI, we can manually go to a nearest bus with generator to the mismatch tolerance and simply disconnecting the generator will fix the problem however, I'm not sure how to implement this in automation.

Your help and advise is much appreciated.

Thanks in advance!!

2021-03-03 18:05:43 -0500 received badge  Famous Question (source)
2020-09-21 08:45:32 -0500 received badge  Famous Question (source)
2020-09-16 02:52:09 -0500 received badge  Notable Question (source)
2020-09-13 18:29:27 -0500 received badge  Popular Question (source)
2020-09-12 10:24:18 -0500 asked a question How do I conditional format excel based on cell value using PSSE excelpy?

Hello Friends, I would like to know how do I format an excel cell based on cell value?

Example: say cell A1 has value of 70. I wanted to set the background color of the cell to GREEN if the value is less than 85 and YELLOW if the value is between 85 and 95 and RED if the value is over 95.

I'm new to PSSE python and couldn't find any method in PSSE API document that does the above.

Please help and thanks in advance.

2020-08-30 20:39:37 -0500 received badge  Notable Question (source)
2020-08-29 04:34:01 -0500 received badge  Popular Question (source)