Ask Your Question
0

User dynamic model being added erranously

asked 2023-05-16 11:28:19 -0500

LSilv gravatar image

I'm adding a new resource to a larger network dynamic package that includes Vestas wind turbines. Even though the project I'm adding uses standard REPC models, the dynamic package is assigning Vestas models to the project. (Note that the dynamic package is not my own.) Since these models are being added during the compiling and not the dyre file, these models aren't defined and prevent the case from initializing.

Does anyone know how I could clear out the Vestas user models for a particular generator from the snapshot, either after the compile or before starting the run? Since the dynamic package is not my own, I can't share the code.

edit retag flag offensive close merge delete

Comments

What do you mean with "models aren't defined"? Is the dll-file missing? If so, add the dll file for the Vestas models.

perolofl gravatar imageperolofl ( 2023-05-17 12:21:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-05-17 07:14:47 -0500

Alex P gravatar image

Is it that the unwanted Vestas models are inside a dsusr.dll (or similar file) that someone else prepared? And you only have a snap file, but no dyre file?

You could try dropmodelprogram and the name of the model, though I've never used this api call. dropmodellibrary is similar, but it's for dropping whole dlls, not individual models (note that it requires the full file path to the dll)

Or maybe, after loading the snap file, write a dyre file use dyda. Buuut dyda isn't well supported by many user written models, so the resulting output might not work. So you might need to do a lot of manual corrections to the dyr file written by dyda. (To find errors, just try loading it with dyrenew and see what errors show up in the progress output.)
If you can get an acceptable dyr file without the unwanted models in it, you can then load it using dyre
read (not dyre_add). This should give you a 'dynamic model space' without the unwanted models.

Good luck!

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: 2023-05-16 11:28:19 -0500

Seen: 297 times

Last updated: May 17 '23