Ask Your Question

psse_user_88's profile - activity

2023-10-04 17:38:11 -0500 received badge  Student (source)
2023-05-04 05:45:43 -0500 received badge  Famous Question (source)
2023-04-18 04:33:58 -0500 commented answer ZIP model for compressor motor

I tried using CIM5BL with the following parameters : 154 'CIM5BL' 1 1 0.0048, 0.0744, 2, 0.0163, 0.0814, 0.0043, 0.0470, 0, 0, 0, 0, 8.8680, 0, 2.3960, 0.2, 12, 4, 2, 0.35/ and added the model to savnw.sav at node 154.

2023-04-18 04:33:58 -0500 received badge  Commentator
2023-04-18 04:25:06 -0500 commented answer ZIP model for compressor motor

Thank you Perolofl. It worked by reducing the DELT value to 1ms.

2023-04-17 21:16:18 -0500 received badge  Notable Question (source)
2023-04-17 21:16:18 -0500 received badge  Popular Question (source)
2023-04-17 06:03:03 -0500 commented answer ZIP model for compressor motor

Thank you Perolofl, could you provide some typical model data, I am trying with some data but the model is not converging after adding CIM5BL dynamic load in PSS/E.

2023-04-16 16:12:40 -0500 asked a question ZIP model for compressor motor

Hello,

I would like to model in one of the buses in my study case, a very large electrical compressor motor of 10MW. Can I use the ZIP model for modelling of this motor as load for dynamic simulation. I will oberserve the voltage drop in case of short circuit in nearby nodes and frequency drop?

Any advice if this is enough accurate? I am thinking of this because using the CIM5BL or other induction motor models would need a lot of parameters which I don't have.

Thank you

2022-05-11 16:36:18 -0500 received badge  Famous Question (source)
2022-03-29 12:39:23 -0500 received badge  Notable Question (source)
2022-03-25 11:50:23 -0500 received badge  Popular Question (source)
2022-03-25 05:03:25 -0500 commented answer retrieve convergence status after power flow in python

great, thank you.

2022-03-24 15:45:13 -0500 asked a question retrieve convergence status after power flow in python

Hello,

Up to now, I have used this script for creating 24 cases in PSSE(one day), using python to read load, generation, branches status, choose swing node for different scenarios ect.

https://drive.google.com/file/d/1fiOUOSUqiIUZA8tkIkxnKBwclqYNjmCs/view?usp=sharing (link text)

I need to make the following updates to my script:

  1. create a table for reporting the convergence status of each case. is there a command to retrieve for each run of power flow, the messages whether the case did converge or not? I mean to retrieve the part "reached tolerance..in 5 iterations"

This would help, so the user at the end of the run of the script will know if any case did not converge.

Thank you

2022-03-15 01:33:05 -0500 received badge  Famous Question (source)
2022-03-14 08:32:45 -0500 received badge  Supporter (source)
2022-03-14 08:32:34 -0500 commented answer Import load (MW/Mvar) and Generation (MW) from CSV file to PSS/E case

I was able to solve by removing loaddatalst. The for row loop had done the splitting already. Thank you JConto

2022-03-13 09:20:33 -0500 commented answer Import load (MW/Mvar) and Generation (MW) from CSV file to PSS/E case

please see updated code. I am getting: loaddatalst = row.split(",") AttributeError: 'list' object has no attribute 'split'

2022-03-13 08:54:27 -0500 received badge  Notable Question (source)
2022-03-13 08:45:23 -0500 commented answer Import load (MW/Mvar) and Generation (MW) from CSV file to PSS/E case

Thank you JConto, I am getting this error: Traceback (most recent call last): File "C:/path/lexon.py", line 28, in <module> for row in reader: ValueError: I/O operation on closed file Is it indentation issue?

2022-03-12 09:52:49 -0500 received badge  Popular Question (source)
2022-03-11 00:58:05 -0500 asked a question Import load (MW/Mvar) and Generation (MW) from CSV file to PSS/E case

Hello, I am trying to make a script in python that reads from CSV files the load and generation values and updates the values in the PSS/E sav case for one timestamp. csv file structure for load looks like this:

node number, load MW, load Mvar 10004, 5, 5 10006, 5, 5 . . .

The status of the script is as follows:

import os
import sys

PSSE_LOCATION = r"C:\Program Files (x86)\PTI\PSSE33\PSSBIN"
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION

import psspy
_i = psspy.getdefaultint()
_f = psspy.getdefaultreal()
_s = psspy.getdefaultchar()
psspy.psseinit(100000)
psspy.throwPsseExceptions = True

STUDY_CASE = 'C:\\path\\20220301_0030_FO1.sav'

psspy.case(STUDY_CASE)
#My updated code is below, changed identation
with open("1.csv", 'r') as file:
    reader = csv.reader(file)
    for row in reader:
        loadbus = int(row[0])
        loadid = '1'  # or loaddatalst [x], x is position of load id in row
        loadp = float(row[1])
        loadq = float(row[2])
        psspy.load_data_4(loadbus, loadid, [_i, _i, _i, _i, _i, _i], [loadp, loadq, 0, 0, 0, 0])


psspy.fnsl([0, 0, 0, 0, 0, 0, 99, 0])
psspy.area_2(0, 1, 1)
psspy.save(STUDY_CASE)
psspy.rawd_2(0, 1, [1, 1, 1, 0, 0, 0, 0], 0, r"""20220301_0030_FO1.raw""")

The part I am struggling with is defining some way of importing the CSV list in python and applying the load (MW/Mvar) in each load node.

Thank you.

to follow up after JConto answer, my code for updating load and generation in PSSE case looks like this:

#read load p and q
with open('load.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
   loadbus = int(row[0])
   loadid = '1'  # or loaddatalst [x], x is position of load id in row
   loadp = float(row[1])
   loadq = float(row[2])
   psspy.load_data_4(loadbus, loadid, [_i, _i, _i, _i, _i, _i], [loadp, loadq, 0, 0, 0, 0])

#read generators
with open('gen.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
    genbus = int(row[0])
    genid = str(row[1])  # or loaddatalst [x], x is position of load id in row
    status = int(row[2])
    genp = float(row[3])
    genq = float(row[4])
    psspy.machine_chng_2(genbus, genid, [status, _i, _i, _i, _i, _i],[genp, genq, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f, _f])
2020-04-14 08:20:29 -0500 received badge  Famous Question (source)
2019-11-07 14:45:44 -0500 received badge  Popular Question (source)
2019-11-07 14:45:44 -0500 received badge  Notable Question (source)
2019-10-16 09:10:40 -0500 asked a question Breaker contact parting time in IEC 60909 fault calculation

Hi,

I have to perform short circuit calculations, and I was looking at the parameter of "Breaker contact parting time" in the IEC 60909 Fault calculation window. what is the meaning of this value, I assume it is fault clearing time, let's say that for my system in the grid code I have clearing time of 200milisendos for short circuits, should I put there 0.2s?

Thank you

2017-12-20 03:33:39 -0500 commented answer Input data from Excel to PSSE

Thank you JConto, I was able to run the idv file. My question now is how do I make the rdchtest.idv read from excel the columns of P and Q for the Load?

2017-12-18 14:44:00 -0500 answered a question Input data from Excel to PSSE

Hi JConto,

I am not able to perform the actions you suggest, maybe you have some example or the script in IDV, because i tried running your example, but I can't get it how to enter the data in RDCH format, normally they should be imported from excel?

I have to say I am quite new in scripting and python ect, just used PSSE v.33 from its interface.

Thank you for your support

2017-12-02 14:26:14 -0500 received badge  Famous Question (source)
2017-11-23 16:29:47 -0500 received badge  Notable Question (source)