First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Branch length using python

asked Oct 29 '1

murshed00123 gravatar image

updated Oct 29 '1

I have written a code for the finding branch length as

for m in range(len(frombus)): 
     err10, rval = psspy.brndat(frombus[m],tobus[m],Branch_id[m],'LENGTH') 
     Busval=frombus[m]#if str(rval)>0:
     BUSval1.append(Busval)
     linlen.append(rval)
     if rval>0.0:
            frombus1.append(frombus[m])
            tobus1.append(tobus[m])
            Branch_id1.append(Branch_id[m])
            linlen1.append(rval)e here

I work for psse 33.4 but not working in PSSE 34.4 . How can I solve the issue. After debugging I found rval returning value for PSSS 33.4 but in case of PSSE 34.4 returning no value

2 answers

Sort by » oldest newest most voted
0

answered Nov 1 '1

jconto gravatar image

The code works well in v.33 & v.34. I tested it on the savnw.sav case using v.33.12 & v.34.9 The API brndat is a basic one, with no updates between versions.

link
0

answered Oct 29 '1

perolofl gravatar image

Check the error code from brndat (err10).

link

Comments

I have checked err10 code there is no problem with err10. The same code is working for 33.4 but for 34.4 variable rval returning 0.0 value...

murshed00123 gravatar imagemurshed00123 (Oct 29 '1)

Seems like a bug. Have you asked PTI?

perolofl gravatar imageperolofl (Nov 1 '1)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Oct 29 '1

Seen: 400 times

Last updated: Nov 01 '21