Revision history  [back]

psspy.asys doesn't work !

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 !

psspy.asys doesn't work !

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 !

psspy.asys doesn't work !

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 

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 = [19,20] ## these areas DO exist

print ierr

number_of_areas_to_set = len(areas)

ierr, numbers = psspy.abusint(subsystem_number, _i,"NUMBER")

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,

print numbers = psspy.abusint(subsystem_number, _i,"NUMBER") print numbers


On the screen, I get:


0

0

2

2

0

0

[None]

[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 !

psspy.asys doesn't work !

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)psspy.asys(4, 2, [19,20])

print ierr

ierr, areas = psspy.aareacount(subsystem_number, _i)where 4 is the desired subsystem number.

print areasierr comes out as 0, but the actual subsystem is EMPTY !!

print ierrI have used bsys before (which is more complicated), but haven't been able to make asys work,

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 ??!!help !

Thanks a lot,

Andre

P.S. Have just found out this forum, very useful, thanks !

psspy.asys pss.asys doesn't work !

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 !