0

How to add models VTGTPAT and FRQTPAT using psspy?

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.

bikiran1991's avatar
47
bikiran1991
asked 2019-11-26 11:00:06 -0500, updated 2019-11-26 11:00:24 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

acd1's avatar
63
acd1
answered 2019-11-26 13:42:09 -0500, updated 2019-11-26 13:43:28 -0500
edit flag offensive 0 remove flag delete link

Comments

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

bikiran1991's avatar bikiran1991 (2019-11-26 15:15:45 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer