Questions tagged [psse]

PSS/E is a commercial tool for simulating, analysing and optimising power systems.

PSS/E is a commercial tool for simulating, analysing and optimising power systems. Many of its functions can be automated using the programming language.

It provides the user with the most advanced and proven methods in many technical areas, including:

Power Flow

Optimal Power Flow

Balanced or Unbalanced Fault Analysis

Dynamic Simulation

Extended Term Dynamic Simulation

Open Access and Pricing

Transfer Limit Analysis

Network Reduction

38 questions
8
votes
2 answers

How to use multiprocess in python on a class object

I am fairly new to Python, and my experience is specific to its use in Powerflow modelling through the API provided in Siemens PSS/e. I have a script that I have been using for several years that runs some simulation on a large data set. In order…
Josh
  • 81
  • 1
  • 2
2
votes
1 answer

Integer Required for Function

The error in the code is psspy.three_wnd_winding_data_3(from_,to,last_bus,r"""1""",1,[_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f, max_value, min_value,_f,_f,_f]) TypeError: an integer is required I thought I already converted the string into an…
2
votes
1 answer

Any ideas on this confusing Python "No module named expat; Use SimpleXMLTreeBuilderInstead" error?

Here's the scenario - I know this question has already been asked before on StackOverflow in slightly different situations, but unfortunately none of the answers/suggestions provided have been of any help to me. I have a Python file that's being…
Codine
  • 41
  • 1
  • 6
1
vote
1 answer

Problem with finding Visual Studio PATH/LIB files

I am using some application (PSSE-Environment Manager) which requires to interact with Visual Studio version 2015 to compile Fortran code into .dll folder. When I run the application to perform the compilation, I get the following message: > …
1
vote
0 answers

Contribution fault current data to CSV

I am using IEEE39 bus data.If only bus_1 fault in system. I can use pssarrays.ascc_currents to see the contribution current of other buses.But I don't know how to use python to save other buses contribution current one by one data to CSV. I use…
QQbaby
  • 15
  • 4
1
vote
2 answers

Get Mbase (MVA) of Machine from PSSE for Python code

Please help me to get Mbase (MVA) of Machine from PSSE for Python. I would like to use this to calculate with inertia (H) value. Although I can get H as syntax below, I don't know how to get Mbase (MVA). ierr =…
annht
  • 13
  • 5
1
vote
0 answers

PSSE Blown Up case or Iteriation Limit Exceeded

I'm am trying to run an automation program I made on PSSE. I am pretty much accessing data from an excel sheet and transferring it to PSSE. The code is shown below. Are there any ways to fix this, change settings of program, or any solving method?…
Danny
  • 147
  • 1
  • 9
1
vote
1 answer

Parsing a text file containing multiple sections in R

I have a text file containing 130 tables, separated by the delimiter ' DLM'. I tried using the package reader in R and defined the default delimiter as follows, but it still reads the whole file. reader::reader("Path_to_file.txt", def= "\\' DLM'",…
Raj Padmanabhan
  • 540
  • 5
  • 11
1
vote
0 answers

Python Excel Program

my program shown below is one that reads data from a CSV file and imports it to PSSE. PSSE is a power flow simulation program. The program I have works. My next goal is to read new data from new columns I put into my excel file COLUMNS[G to L].…
Mark
  • 57
  • 1
  • 8
1
vote
1 answer

Python/PSSE Error: TypeError: an integer is required

I am receiving an error at the end of my code when trying to load the information into PSSE. My goal is once all the data was organized how I wanted, the next step was to use that organized data and import it to PSSE. Everything before that works…
Mike
  • 5
  • 6
1
vote
2 answers

Python PSS/E get output as variable

I am power engineer and I often use python in PSS/E program. I am stacked and I want your help as programmers. I have this small code: import os,sys PSSE_LOCATION = r"C:\Program…
1
vote
4 answers

Python and PSS/E

I am trying to have the bus loads in PSS/E to change by using python program. So I am trying to write a script in python where I could change loads to different values between two buses in PSS/E.
user1499609
  • 11
  • 1
  • 2
0
votes
0 answers

Opening a Blank Excel file with Python Wincom32 Errors

At work we have a old script that has become broken over the years. To keep it short we PSSE to create a model and want to export the results from the study into an Excel file. I am currently getting Wincom32 errors including "Operation Unavailable"…
Bobby P
  • 1
  • 1
0
votes
0 answers

read load from csv file for PSS/E

I am trying to read CSV file that updates loads in PSS/E: csv structure is as follows: 10004,10,10 10006,10,10 10007,10,10 10008,10,10 with open('1.csv', 'r') as file: reader = csv.reader(file) for row in reader: loaddatalst =…
PSSE_user
  • 1
  • 2
0
votes
0 answers

Python, PSSE API, floating point exceptions

Hello, I have a problem concerning running PSSE from Python. I have a scripts(a tool) written in python 2.7 that call PSSE 34. when I run this tool, I have the following error when I initialize PSSE using this line : psspy.psseinit(12000) . the…
Nata
  • 1
1
2 3