0

How to assign .dll model in .dyr file or within user-interface?

This is not a python question, but I figured someone here might help. The .dll file mentioned in the question regards a governor model for a generator. In the operating manual, I stumbled upon that user-written models for different network elements need to be defined with their own codes in .dyr file. However, i wasn't able to assign the the .dll governor model in the dynamics file. Is there a way of assigning it within the user-interface after loading the model library?

Thanks for the help.

Edit: With the line shared in the answers it should be possible to assign the DLL, given that the number of CONs ICONs STATEs VARs and the name of the model is known. In my case, the model name is unknown. Would there be a way of acquiring this information from the loaded DLL in PSS/E?

Karakurum's avatar
1
Karakurum
asked 2024-02-04 09:53:55 -0500, updated 2024-02-05 09:11:11 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

In .dyr file a user written plant model is defined for a machine with:

BUSID ’USRMDL’ ID ’model name’ IC IT NI NC NS NV data list /

where IC is 5 for a governor model. Read in Program Operation Manual, Chapter "Reading Dynamics Model Data" - "User-Written Models. The .dyr file doesn't contain any DLL file, just calls of models with their parameters.

The DLL file with the user written model code is added to PSSE with menu Dynamics - Model Library - Load Model library.

EDIT: corrected IC number

perolofl's avatar
3.8k
perolofl
answered 2024-02-05 02:56:23 -0500, updated 2024-02-05 11:44:36 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for the reply. That chapter was my starting point, but I wasn't able to find, to what IC IT NI NC NS NV referring. Thanks for the tip that IC should be 7 for governor. Do you know where I might find what others mean or should be?

Karakurum's avatar Karakurum (2024-02-05 04:17:01 -0500) edit

Here is an update if it would help someone else: Found the part explaining IC IT.. codes under Dynamic Simulation Activity Descriptions in Operation Manual. IC for turbine governors should be '5' for PSS/E 34.

Karakurum's avatar Karakurum (2024-02-05 09:06:18 -0500) edit

My mistake, of course IC shall be 5 for a governor model!

perolofl's avatar perolofl (2024-02-05 11:43:40 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer