1

What is the default integer value in PSSE?

I heard once that the default integer _i had a value of -9999 or some number that is extremely unlikely to occur in practice.

How can I check what its value is now, does anyone have any clues?

JervisW's avatar
1.3k
JervisW
asked 2012-03-01 07:01:32 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

How about this:

In [31]: int(psspy._i)
Out[31]: 2147483647

The number 2,147,483,647, is the largest [32bit signed number](http://en.wikipedia.org/wiki/2147483647_(number), but I still haven't completely figured out what PSSE does with it. For example, if I create a machine and don't specify any values I get the following defaults:

  • Pmax = 9999.0
  • Pmin = -9999.0

I still haven't figured it out completely, but it is a start. Right now it looks like PSSE replaces psspy._i with the default specific to a certain model/parameter.

chip's avatar
459
chip
answered 2012-03-22 10:01:06 -0500, updated 2012-03-22 10:09:47 -0500
edit flag offensive 0 remove flag delete link

Comments

Cheers. Your answer has me thinking too about where PSSE swaps the 2147483647 for the 9999: - In the psspy Python code; - In the belly of the FORTRAN code; or - Someplace else.

JervisW's avatar JervisW (2012-03-22 17:27:31 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer