First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
2022-01-17 08:51:36 -0500 | received badge | ● Necromancer (source) |
2020-02-06 00:20:30 -0500 | received badge | ● Famous Question (source) |
2020-01-29 21:47:06 -0500 | received badge | ● Notable Question (source) |
2020-01-14 08:59:23 -0500 | received badge | ● Popular Question (source) |
2020-01-13 11:56:31 -0500 | asked a question | Supress only PSSE output I feel like this should be an easy one, but everything I am throwing at python is failing me. I am trying to run a program within PSSE, but I would like all output to be supressed except for my python print() commands. Is this possible without creating my own print wrapper function? |
2019-01-15 14:26:45 -0500 | answered a question | A contingency converges with FNSL, but not with ACCC There is something extremely wrong with FNSL in ACCC. I have noticed similar issues with solving ACCC with FNSL where blown up cases reported meeting convergence even though mismatch was in the thousands. One thing that was found to somewhat work is to solve your power flow case with the exact same settings you intend to run your in your ACCC analysis. I.e. if you setup your case moving shunts, taps, and PSTs with FNLS, but run your ACCC analysis with everything locked with FNSL, make sure to solve your case once with everything locked using FNSL immediately prior to running ACCC. |
2018-08-16 09:58:38 -0500 | commented question | Multi-Threading using xlsout Your code works as intended for me. I wonder if you are running into a memory limitation or have an issue with you .out files? |
2018-08-15 20:28:49 -0500 | answered a question | Multi-Threading using xlsout The following should get you close: |
2018-08-09 11:53:14 -0500 | commented question | Python API to Terminate Dynamic Simulation I hope someone has an answer to this as I have been looking for a solution like this for a while. It doesn't appear PSSEHALT works for this. Best thing I can conceive is a FORTRAN model that monitors the simulation then when I want simulation to stop, crash PSSE by dividing by zero. Awful, I know |
2018-08-09 11:45:38 -0500 | answered a question | How do you output the load of the bus and store it as a variable The TOTALS(2) element is an output variable for the the OLD subsystem load value. If you would like to retrieve the NEW load MW total of your subsystem, use the For example: |
2018-08-09 11:12:02 -0500 | answered a question | Which test fixture will run after executed the all test case in python? The following should do what you need it to do: |
2018-05-15 13:44:05 -0500 | answered a question | bus-3001 to bus-3003 unbalanced fault in official file 'savnw' cannot be added successfully. For whatever reason, PSSE cannot calculate imbalance without line charging and/or line shunts on the line. Try adding small amounts B and B0 until you don't get the error. Adding 0.01 to charging (B and B0) and 0.001 to Line B To/From I was able to get it to produce some values with SPCB. It's very annoying and potentially not as accurate, but it's about all you can do to make it work. Here is the modified line data: |
2018-05-15 10:30:09 -0500 | answered a question | Need python code for load removal from load bus during dynamic simulation Take a look at the LDSHBL model in the MODELS.pdf documentation. For your example, you can add something similar to the following to your .dyr:
Where |
2017-08-28 15:16:00 -0500 | answered a question | Removing "Terminal Read" on PSSE. User input on output bar Your question and code seem to be two separate issues. For your question, I am guessing you are trying to read in an .idv (or other file) from within python. It will pop-up a Terminal Read window if your file doesn't have the appropriate syntax (i.e. final 0, or improper data entry). Make sure these files work properly before you try and use them in your python code. Better yet, convert the code over to python. Your issue with your code seems to be that you are trying to convert a string into an integer. I am honestly not sure how you made it past |
2017-07-25 10:50:35 -0500 | answered a question | User Defined Model Development Rsko, I would suggest looking at the available Dynamic Simulation Arrays in section 13.4.2 in the Program Application Guide Volume 2 (PAGV2.pdf) for internal arrays/variables that are available to you (also 21.1.2 in the Program Operation Manual (POM.pdf)). Section 24 in the same document will give you an idea of how to model transfer functions in Fortran. The Model Writing section in the POM also has some good information, which I am guessing is what you are looking at now. Finally, most (all?) API routines are available in Fortran. If you take a look at the Application Program Interface document (API.pdf), the Fortran command syntax is listed for each individual API. (i.e. |
2017-07-19 17:18:18 -0500 | answered a question | How to auto save plot. You should take a look at the |
2017-05-24 16:45:09 -0500 | answered a question | PSSE V33 Compile User Model Failure One thing to check is that you have write privileges to C:\windows\system32\ |
2017-05-23 12:05:22 -0500 | commented answer | How to set different load models in dynamic simulation? Please see edited answer for example of IEEE load model. |
2017-05-23 09:11:12 -0500 | answered a question | How to set different load models in dynamic simulation? Dynamic load models are added just like generators in .dyr file. Load models can be added by either bus, zone, area, or owner. I would take a look at section 9 of the PSSE Model Library document. The following is an example of a "standard" IEEE Load Model used in the WECC: Change [AREA NUMBER] to the area of your choice. |
2017-03-31 10:39:13 -0500 | answered a question | Modelling Dyn5 Transformers I might be wrong, but I don't believe the fault duty calculations use any information from the power flow simulation data. I believe it just calculates every thing based on the impedances. So I wouldn't worry about it being able to solve or not as it should be able to calculate the faults just fine without solving. For what it's worth, our fault duty file does not solve either and has no generation dispatched (although the machines are in service). |
2017-03-16 10:36:09 -0500 | answered a question | Running PSSE from Python IDLE or Python IDE I think "best" is all up to user preference. I personally like to use PyCharm when I am building a very large project as it, to me, is the best full blown IDE for python. Most of the time it is overkill though, and i actually do a lot of my programming in something basic like Notepad++. I like Notepad++ better than IDLE because it allows you to keep however many files you are working with within the same window. It also allows you to work with files that aren't python files (.dyr, .idv, etc), and also has pretty good syntax highlighting. When I want to run a python script that I am working on in Notepad++, I usually go to Command Prompt (or PSSE Command Prompt) and run it from there. |
2017-03-02 11:49:15 -0500 | received badge | ● Enthusiast |
2017-02-24 11:31:44 -0500 | answered a question | There is any guide to entry the data for induction machines? PSS/E 34.1 If you are referring to dynamics models, please look at the Model Library documentation (MODELS.pdf). |
2017-02-23 11:24:10 -0500 | answered a question | i want to add GPS location to each bus, i have the latitude and longitude coordinates of each bus. please guide me how to add these coordinates to each bus? I would check out section 3.6.8 Specifying Bus Locations from a File in the GUI Users Guide. Basically you create a file with something like the following format and save as a *.loc: Then, just load the *.loc file and start building your SLD. If you already have a SLD built, you can click Diagram, then click Update bus locations. |
2017-02-23 10:52:48 -0500 | answered a question | Change the value of loads (load_chng_4) in Python If you add the following at the top of your code it should work correctly.
|
2017-02-22 17:18:09 -0500 | commented answer | Can't open .sav file You will have to another program that supports the GE .out format. As far as I know, GE PSLF is the only program that can. |
2017-02-22 17:12:19 -0500 | answered a question | How to insert non overlapping text in matplotlib? I know this it late to the game, but I would try |
2016-05-09 21:12:31 -0500 | marked best answer | How to deal with unicode strings - PSS/e 33, Python 2.7, and wxPython It seems there are various PTI PSS/e python modules that aren't very friendly with unicode formatted strings ( So, what I am wondering is if any of you all have ever dealt with this issue? I feel I have two options, both of which are less than ideal:
Any ideas? Is it possible to force ASCII/utf-8 encoding in my programs to disable it ever encoding a string as unicode? Is it possible to build a function to loop through local/global variables and convert any unicode string to a general string? |
2016-05-09 21:11:44 -0500 | marked best answer | PSS/E Rev 33 - psspy.py UnicodeWarning I have been testing out some of my code in PSS/E 33 and am getting the following error: It is cluttering up my output and I am not sure what is causing it. There is A LOT of code in my program, so I haven't been able to pinpoint what commands are causing it to produce this error. Also, I do not get this error when I run the same program in PSS/E 32. Any thoughts? |
2015-09-13 07:03:34 -0500 | received badge | ● Taxonomist |
2014-08-08 08:42:11 -0500 | answered a question | PSS/E and Python and Conec File interface If I recall correctly, there is no data stored in the conec/conet files. I think what you are going to want to do is either modify the .dyr call before you load it in, or use the |
2014-04-07 11:56:11 -0500 | answered a question | Is there any way to export to excel LOSSES of all the branches of a system? Unfortunately I don't think you can extract that type of calculated data from caspy. Also, see below for a slight variation to @jsexauer's answer. This version will make sure the branch is only documented once. Otherwise if you tried to calculate total system losses, it would be double what it should be. |
2014-04-04 12:08:36 -0500 | commented question | Exporting Power flow data to excel Can you please expand on exactly what data you are looking to export? Pretty much any data you might be looking for will be available for export, but doing so may be vastly different for different types of data. |
2014-04-03 10:19:54 -0500 | answered a question | PSS/E Program Application Guide Unfortunately you will likely have to go through PTI to obtain the document you are looking for. Most companies consider this information proprietary and confidential, and you are usually only able to view it if you purchased the software or sign a Non-Disclosure Agreement with the company. I would suggest contacting them directly as to not get any users here in trouble. |
2014-04-02 15:39:17 -0500 | answered a question | Read CHAN(7) from .out file I would suggest looking into the |
2014-04-02 15:05:07 -0500 | answered a question | PSSE dynamic simulation on multiple processor cores Here is something incredibly basic, but hopefully it will get you started. This will run the same fault on the same case in 5 simultaneous processes. Hopefully you can figure out how to make it work with what you want to do. For example, if you wanted to run multiple different faults on the same base case, you could create a function for each fault (ie |
2014-04-02 13:58:44 -0500 | commented question | How to compile an ipl file in the IPLAN compiler? @Shengen Try running it without the -RUN option and you will see all sorts of errors. I am not sure what is wrong, but it seems PTI's code is missing something. |
2014-03-13 17:20:49 -0500 | answered a question | How to compile an ipl file in the IPLAN compiler? I hope you figured this out already, but if not this should work : |
2014-02-21 12:38:03 -0500 | answered a question | I want to read some datas from dyr file and to change it. See my answer to a similar question here: https://psspy.org/psse-help-forum/question/1015/is-there-a-python-function-to-return-plant-model-con-data-in-dynamic-case-model/#1022 Hopefully that will get you started. |
2014-02-21 12:31:39 -0500 | answered a question | Changing VAR(L) during dynamic simulation I am not sure exactly what you are trying to do, or if you are working with a normal model or a user model, but I would take a look at the API and look at the |
2014-02-21 12:28:27 -0500 | commented question | How to compile an ipl file in the IPLAN compiler? Try giving it the full path to the .ipl file |
2014-02-04 15:46:24 -0500 | received badge | ● Good Answer (source) |