Ask Your Question
0

VAR array access

asked 2017-05-02 15:02:17 -0500

Jack gravatar image

is there a way to access "var" variable in psse using python API?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2017-05-04 00:52:24 -0500

perolofl gravatar image

You can access the var value with:

ierr, rval = psspy.dsrval('VAR', indx)

where indx is the VAR index.

edit flag offensive delete link more
0

answered 2017-07-06 21:53:50 -0500

Linzhi gravatar image

@perolofl was right.

more detailedly, the starting indexes of VAR, CON, ICON, STATE can be returned by API like mdlind, lmodind, etc., and the index for the data you want is based on the model documentary.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2017-05-02 15:02:17 -0500

Seen: 1,051 times

Last updated: Jul 06 '17