Ask Your Question
0

How to add models VTGTPAT and FRQTPAT using psspy?

asked 2019-11-26 11:00:06 -0500

bikiran1991 gravatar image

updated 2019-11-26 11:00:24 -0500

I am trying to run a bunch of simulations by varying the parameters of these models. I can just make multiple dyr files with these different parameters and feed them to the simulation loop. But i want to avoid that process and try to see if i can use psspy to automate the process.

For example, if i want to add a load model using psspy, i can just use:
psspy.addloadmodel()

If i want to add a machine related model, i can use:
psspy.addplantmodel()

Is there something similar for adding these models? These models are listed as 'Miscellanous other models' in the MODELS book, so i am not sure how to add these models to the system dynamics using psspy.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-11-26 13:42:09 -0500

acd1 gravatar image

updated 2019-11-26 13:43:28 -0500

I used the record function and entered in some random parameters for a VTGDCAT model. Here is the code generated by PSSE:

psspy.add_cctmsco_model(r"""VTGDCAT""",_i,3,[0,0,0],["","",""],4,[0.0,0.0,0.0,0.0])
psspy.change_cctmscomod_con(r"""VTGDCAT""",_i,1, 0.8)
psspy.change_cctmscomod_con(r"""VTGDCAT""",_i,2, 1.2)
psspy.change_cctmscomod_con(r"""VTGDCAT""",_i,3, 1.0)
psspy.change_cctmscomod_con(r"""VTGDCAT""",_i,4, 0.0833)
psspy.change_cctmscomod_icon(r"""VTGDCAT""",_i,2,123456)
psspy.change_cctmscomod_icon(r"""VTGDCAT""",_i,3,1)

I assume you could forgo the "change" APIs if you included the parameters in the "add" arguments.

edit flag offensive delete link more

Comments

Great! I guess the command i was looking for was psspy.add_cctmsco_model()

bikiran1991 gravatar imagebikiran1991 ( 2019-11-26 15:15:45 -0500 )edit

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: 2019-11-26 11:00:06 -0500

Seen: 659 times

Last updated: Nov 26 '19