Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Constructing a Short Circuit Equivalent

Hello everyone,

I was trying to constructing a short circuit equivalent (psspy.sceq) which was introduced in chapter 9.10, Program Operation Manual, but when I run the program it always showed that "case is not under classical assumptions",

I have carried out the flat with choosing the set classical short circuit assumptions, but it doesn't help, could anyone please enlight me what's the problem is? My code is as follows:

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

import psspy

import redirect

def equivalent(): global pp

 redirect.psse2py()

psspy.psseinit(buses=1000)

psspy.read(0,pp+'.raw')

psspy.fdns(0)

psspy.flat_2([1,0,0,0,0,0,0,0],[0.0,0.0])


psspy.cong(2)
psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0])
psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0])
psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0])


psspy.bsys(1,0,[ 13.8, 500.],1,[1],0,[],0,[],0,[])

psspy.sceq(1,0,0, 10.0,pp + '2' + '.raw',pp + '2' + '.seq')

if name == 'main':

global pp    

pp = r'C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw'

equivalent()

Thank you all in advance!

Gary

click to hide/show revision 2
No.2 Revision

Constructing a Short Circuit Equivalent

Hello everyone,

I was trying to constructing a short circuit equivalent (psspy.sceq) which was introduced in chapter 9.10, Program Operation Manual, but when I run the program it always showed that "case is not under classical assumptions",

I have carried out the flat with choosing the set classical short circuit assumptions, but it doesn't help, could anyone please enlight me what's the problem is? My code is as follows:

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

PYTHONPATH import psspy

psspy import redirect

redirect def equivalent(): global pp

 redirect.psse2py()

psspy.psseinit(buses=1000)

    
    redirect.psse2py()   
    psspy.psseinit(buses=1000)    
    psspy.read(0,pp+'.raw')

psspy.fdns(0)

    psspy.fdns(0)        
    psspy.flat_2([1,0,0,0,0,0,0,0],[0.0,0.0])

  psspy.cong(2)
 psspy.conl(0,1,1,[0,0],[ 100.0,0.0,0.0, 100.0])
 psspy.conl(0,1,2,[0,0],[ 100.0,0.0,0.0, 100.0])
 psspy.conl(0,1,3,[0,0],[ 100.0,0.0,0.0, 100.0])

  psspy.bsys(1,0,[ 13.8, 500.],1,[1],0,[],0,[],0,[])

500.],1,[1],0,[],0,[],0,[])        
    psspy.sceq(1,0,0, 10.0,pp + '2' + '.raw',pp + '2' + '.seq')

if name __name__ == 'main':

'__main__': 
    global pp      pp = r'C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\savnw'

(x86)\PTI\PSSE33\EXAMPLE\savnw'   
    equivalent()

Thank you all in advance!

Gary