User Written Model of Generator
Hi, I was trying to write a user written model for a simple generator whose Pelec and Qelec follows the reference value stored in the VAR array. The idea is that generator Pelec and Qelec would be based on some reference for e.g. bus frequency deviation. Does anybody has an example of writing a user written generator model? Any help would be appreciated. I'm aware that I can use CBEST model for this purpose, but I would like to create my own model so that I can keep building it based on my needs.
Thanks