Ask Your Question
0

Missing CON descriptions for user-defined model

asked 2020-08-24 16:44:03 -0500

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.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-08-25 09:01:12 -0500

jconto gravatar image

updated 2020-08-25 09:49:33 -0500

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])
edit flag offensive delete link more

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 ( 2020-09-07 14:48:06 -0500 )edit

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 ( 2020-09-07 14:48:57 -0500 )edit
0

answered 2020-08-25 00:48:20 -0500

perolofl gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2020-08-24 16:44:03 -0500

Seen: 501 times

Last updated: Aug 25 '20