Ask Your Question
1

CHSB maximum allowed channel reached

asked 2018-11-22 03:42:04 -0500

Matas D. gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2018-11-23 17:42:50 -0500

jconto gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2018-11-22 03:42:04 -0500

Seen: 1,123 times

Last updated: Nov 23 '18