0

Missing CON descriptions for user-defined model

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.

chroelo's avatar
1
chroelo
asked 2020-08-24 16:44:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

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

perolofl's avatar
3.8k
perolofl
answered 2020-08-25 00:48:20 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
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])
jconto's avatar
2.9k
jconto
answered 2020-08-25 09:01:12 -0500, updated 2020-08-25 09:49:33 -0500
edit flag offensive 0 remove flag delete 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's avatar chroelo (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's avatar chroelo (2020-09-07 14:48:57 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer