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

Ask Your Question
1

What is the default integer value in PSSE?

asked Mar 1 '12

JervisW gravatar image

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?

1 answer

Sort by » oldest newest most voted
2

answered Mar 22 '12

chip gravatar image

updated Mar 22 '12

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.

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 gravatar imageJervisW (Mar 22 '12)

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

Stats

Asked: Mar 1 '12

Seen: 418 times

Last updated: Mar 22 '12