1

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?

Matas D.'s avatar
21
Matas D.
asked 2018-11-22 03:42:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Memory allocation are related to bus number dimension. Raise the number of buses in psspy.psseinit(2000) to 50000 up to 200000 in v.34

jconto's avatar
2.9k
jconto
answered 2018-11-23 17:42:50 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer