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

Ask Your Question
0

How to add models VTGTPAT and FRQTPAT using psspy?

asked Nov 26 '19

bikiran1991 gravatar image

updated Nov 26 '19

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.

1 answer

Sort by » oldest newest most voted
0

answered Nov 26 '19

acd1 gravatar image

updated Nov 26 '19

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.

link

Comments

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

bikiran1991 gravatar imagebikiran1991 (Nov 26 '19)

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

1 follower

Stats

Asked: Nov 26 '19

Seen: 817 times

Last updated: Nov 26 '19