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

Ask Your Question
0

Missing CON descriptions for user-defined model

asked Aug 24 '0

chroelo gravatar image

Is it normal for CON descriptions to be missing after loading the .sav and .dyr files? I have a feeling the user-defined model code that I wrote is not being used in simulation for whatever reason.

I tried jconto's useful example here (drive.google.com/drive/folders/0B7uS9L2Woq_7YzYzcGhXT2VQYXc), and I'm seeing the same issue. (see below.) Does this model still work with PSSE 34?

i.imgur.com/5VKEnVS.png

I am inexperienced with user-defined modeling and dynamics simulations in general, so I may be missing something here.

Any help is appreciated.

2 answers

Sort by » oldest newest most voted
0

answered Aug 25 '0

jconto gravatar image

updated Aug 25 '0

Yes, the demo model works in v.34 as well v.33. UDM are loaded explicitly with (except if named DSUSR.dll and located at working folder):

psspy.addmodellibrary('uexc34.dll')

check in the log if there is a error during this step.
In a dynamic run, after loading the case, the snp file and the dll file, to get a print out of the UDM CON description for machine at bus 101, add the following:

psspy.bsys(1,0,[0.0,0.0],0,[],1,[101],0,[],0,[])
psspy.docu(1,0,[1,3,1])
link

Comments

This is very helpful information, thank you. And sorry for the slow response. Turns out psse was not loading the working directory dsusr.dll, and even then it was failing to move the dsusr.dll file from the .pssenvmgr folder. When I added your model, constants loaded, but for mine they still don't.

chroelo gravatar imagechroelo (Sep 7 '0)

So despite not getting a flecs error or anything, I'm fairly sure the problem is with the model that I wrote.

chroelo gravatar imagechroelo (Sep 7 '0)
0

answered Aug 25 '0

perolofl gravatar image

A DLL-file for rev 33 cannot be used in rev 34. The user model must be compiled and linked again.

link

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: Aug 24 '0

Seen: 591 times

Last updated: Aug 25 '20