Ask Your Question

Matas D.'s profile - activity

2021-10-03 07:28:34 -0500 received badge  Student (source)
2020-08-20 00:53:07 -0500 received badge  Famous Question (source)
2018-12-13 13:23:18 -0500 received badge  Notable Question (source)
2018-11-26 03:18:37 -0500 received badge  Popular Question (source)
2018-11-22 03:42:04 -0500 asked a question CHSB maximum allowed channel reached

Hi,

Im running a model which has approx 400 buses, 100 generators and 200 loads. The goal is to run dynamic simulation and simulate some scenarios and store results for particular set of buses.

The code I am using below:

import psspy # python bindings for the PSSE API

# redirect output to console
import redirect
redirect.psse2py()

# define psse types
_i = psspy._i
_f = psspy._f

#Load case file 
psspy.psseinit(2000)
   # Simulation scenarios
psspy.read(0,r"""C:\Users\x\Desktop\Raw_HWHL_merged.raw""")
    psspy.fnsl([0,0,0,1,0,0,99,0])
    psspy.dyre_new([1,1,1,1],r"""DYN_FILE.dyr""","","","")

# Convert genrators using ZSOURCE
psspy.cong(0)
# Convert loads to 100% impedance for Active and Reactive power
psspy.conl(0,1,1,[0,0],[0.0, 100.0,0.0, 100.0])
psspy.conl(0,1,2,[0,0],[0.0, 100.0,0.0, 100.0])
psspy.conl(0,1,3,[0,0],[0.0, 100.0,0.0, 100.0])
#Dynamic solution parameters and out file determiantion
psspy.dynamics_solution_param_2([_i,_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f])
#psspy.change_channel_out_file(r"""HWHL_noPSS.out""")
# Channel record for selected buses
psspy.bsys(1,0,[0.0,0.0],0,[],12,[67,101,102,173,177,3359,6701,31152,31151,33001,370110,8500],0,[],0,[])
# Signal selection
psspy.chsb(1,0,[-1,-1,-1,1,1,0])
psspy.chsb(1,0,[-1,-1,-1,1,2,0])
psspy.chsb(1,0,[-1,-1,-1,1,3,0])
psspy.chsb(1,0,[-1,-1,-1,1,4,0])
psspy.chsb(1,0,[-1,-1,-1,1,5,0])
psspy.chsb(1,0,[-1,-1,-1,1,6,0])
psspy.chsb(1,0,[-1,-1,-1,1,7,0])
psspy.chsb(1,0,[-1,-1,-1,1,25,0])
psspy.chsb(1,0,[-1,-1,-1,1,26,0])
psspy.chsb(1,0,[-1,-1,-1,1,12,0])
psspy.chsb(1,0,[-1,-1,-1,1,14,0])
psspy.chsb(1,0,[-1,-1,-1,1,16,0])

When I run the simulation, before initialization of system I do gen an error

Next Channel 1501 is greater than the maximum allowed channel number 1500 (002318)

The Out file created in this way records all synchronous machines buses and not he ones specified in BSYS command.

Intrestingly, I ran the same process in PSSE and recorded everything. The code seems to be the same as I am using and providing, but out file contains only channels of buses specified.

Is there something I am missing in my code or what?

2018-10-12 03:03:57 -0500 received badge  Notable Question (source)
2018-10-12 03:03:57 -0500 received badge  Famous Question (source)
2018-09-20 17:29:26 -0500 received badge  Popular Question (source)
2018-09-18 04:49:26 -0500 asked a question PSS/E file import to DigSilent

Hi,

DigSilent supports PSS/E raw and dyr files import. I performed one and raw file works as expected. Difficulties occur when dyr file is being uploaded.

I upload the dyr file. Since I am only using standard models from library, i assume that I do not need to define Composite Frame Path and DSl - Model Path, hence 'Use Standard Models from global library' is selected. After import, console window output appears like this:

DIgSI/info - * Reading Dynamic Model Map-File * DIgSI/info - * Reading Dynamic Model File * DIgSI/info - * Preparing Dynamic Models .....
** DIgSI/info - Used Models in file: 'm:\pss-edatafiles\dyrfile\study-modeldyrfilepssinclude.dyr' DIgSI/info - Model Name Found in Map File Userdefined Use Count DIgSI/info - -------------------------------------------------------- DIgSI/info - 'GENROU '
Yes No 156 DIgSI/info - 'PSS2A '
Yes No 17 DIgSI/info - 'SEXS '
Yes No 22 DIgSI/info - 'TGOV1 '
Yes No 17

It seems that Models are imported, but there are no composite frames created and I cannot access the models.

Did anyone performed PSS/E file import to DigSilent?

2018-09-14 00:21:01 -0500 received badge  Famous Question (source)
2018-07-07 05:49:16 -0500 received badge  Famous Question (source)
2018-07-03 00:33:35 -0500 received badge  Notable Question (source)
2018-06-21 11:50:43 -0500 received badge  Popular Question (source)
2018-06-12 09:11:00 -0500 asked a question Load data retrieval from load flow data

Hello,

is there a command which can retrieve load data entry from load flow data?

For instance: I want to get a value of Load 1 ID1 Active power from load flow data in python file.

2018-06-10 14:18:10 -0500 received badge  Notable Question (source)
2018-06-07 03:15:12 -0500 received badge  Popular Question (source)
2018-06-06 11:10:29 -0500 asked a question HVDC load flow change in dynamic simulation

Hi,

I have a network model in PSSE with some busses, genarators, load and 2-term DC line. For dynamic simulation I created a *.dyr file containing models for generators, but NOT for 2-term DC line since I haven't found credible parameters for it.

Right now I am performing dynamic simulation for a case where I need to change a setpoint(Setval) of 2-term DC line. I have tried to change that through Load Flow data tab. Equivalent to:

ierr,realaro = twoterminaldclinechng(dc, intgar, realari, meter)

This did not yield any results to my dynamic simulation. Is there any way to force change of HVDC setpoint in dynamic simulation?

2018-04-12 14:54:54 -0500 asked a question Dynamic data file (*.dyr) fails to assign data to arrays

Version used PSSE33.

I have a load flow data file (*.raw) and that file is uploaded and FNSL converged. Then, I am capable on uploading dynamic data file *.dyr to my case.

The *.dyr file created is using only models form PSSE library. Then I am using DYRE command and specifying .dyr file. This should then open a sheet for dynamic data in PSSE and it does, but the entries for each generator do not recognize model (Instead of model name 'GENROU" it says 'none'). Then I tried creating a model manually in PSSE selecting 'GENROU' model and giving values. Then used command DYDA (saving .dyr file). Afterwards, I uploaded that file to network model and model 'GENROU' still didn't appear in dynamic data window in PSSE.

Could anybody explain what I am doing wrong?