First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
ierr = psspy.asys(4, 2, [19,20])
print ierr
where 4 is the desired subsystem number.
ierr comes out as 0, but the actual subsystem is EMPTY !!
I have used bsys before (which is more complicated), but haven't been able to make asys work,
Please, help !
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !
2 | No.2 Revision |
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
ierr = psspy.asys(4, 2, [19,20])
print ierr
where 4 is the desired subsystem number.
ierr comes out as 0, but the actual subsystem is EMPTY !!
I have used bsys before (which is more complicated), but haven't been able to make asys work,
Please, help !
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !
3 | No.3 Revision |
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
subsystem_number = 4 ## desired, could be anything between 0 and 11, right ?
areas = [19,20] ## these areas DO exist
numberofareastoset = len(areas)
ierr = psspy.asys(4, 2, [19,20])psspy.asys(subsystemnumber, numberofareasto_set, areas)
print ierr
where 4 is ierr, areas = psspy.aareacount(subsystem_number, _i)
print areas
print ierr
ierr, numbers = psspy.abusint(subsystem_number, _i,"NUMBER")
print numbers
On the desired subsystem number.
ierr screen, I get:
0
2
0
[None]
Please, does anyone know why my numbers array comes out as 0, but the actual subsystem is EMPTY !!
I have used bsys before (which is more complicated), but haven't been able to make asys work,
Please, help !empty ??!!
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !
4 | Formatting. |
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
subsystem_number = 4 ## desired, could be anything between 0 and 11, right numberofareastoset = len(areas)
print ierr
print ierr
On the screen, I get:
0
0
2
2
0
[None]
Please, does anyone know why my numbers array comes empty ??!!
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !
5 | retagged |
Hi friends,
I am trying to define a subsystem consisting of two areas, numbered in PSS/E as 19 and 20.
This is my code:
subsystem_number = 4 ## desired, could be anything between 0 and 11, right ?
areas = [19,20] ## these areas DO exist
number_of_areas_to_set = len(areas)
ierr = psspy.asys(subsystem_number, number_of_areas_to_set, areas)
print ierr
ierr, areas = psspy.aareacount(subsystem_number, _i)
print areas
print ierr
ierr, numbers = psspy.abusint(subsystem_number, _i,"NUMBER")
print numbers
On the screen, I get:
0
2
0
[None]
Please, does anyone know why my numbers array comes empty ??!!
Thanks a lot,
Andre
P.S. Have just found out this forum, very useful, thanks !