Ask Your Question

VAR array access

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

nitishsharmabit 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

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

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

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


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

Seen: 574 times

Last updated: Jul 06 '17