Ask Your Question
0

Exciter model for multiple machines

asked 2019-10-29 11:41:03 -0500

younyoun2019 gravatar image

Hi,

I have a dll for an exciter model in PSS/E. I have two identical machines that are each connected to the secondary and tertiary winding of a three winding transformer. I have attributed the exciter model to these two machines for reactive power regulation. However, the dll doesn't treat both machines the same way, meaning that when an information (like reactive power) is sent to the dll, it gives good results for one machine whereas the other it doesn't. Normally, the output of the dll should be the same for both machines. Therefore i have two questions:

  • Is it a problem with the way i wrote my dyr. file?
  • During dynamic simulation, i use "changeplmodvar" where i specify the bus number to which the machines are connected and the information to send to the dll, is there a more correct way of doing it?

If any of you has already done this type of modelling, a little help would be appreciated. Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-10-30 03:01:19 -0500

younyoun2019 gravatar image

Thank you for replying, in general here's how i coded the python file. "1" and "2" correspond to the buses that are connected to machine 1 and 2, respectively. Let's call the exciter model "exciter.dll" and the generator model "invertor.dll". I load the raw file, then the dyr file and the dlls.

psspy.read(0,r"""file.raw""") psspy.addmodellibrary(r"""exciter.dll""") psspy.addmodellibrary(r"""inverter.dll""") psspy.strt(0,r"""Out""") psspy.run(0, 1.0,0,1,0) psspy.changeplmodvar(1,r"""1""",r"""exciter""",1, 30) psspy.changeplmodvar(2,r"""1""",r"""exciter""",1, 30) psspy.run(0, 2.0,0,1,0)

at 1 second i change the reference reactive power (VAR(1)). I do the same for the second machine. The VAR value isn't changed for the second machine for some reason even though i made the test for a single machine and it worked just fine.

edit flag offensive delete link more
0

answered 2019-10-29 12:13:50 -0500

jconto gravatar image

One single dll model file is good for multiple machines, but it has to be loaded during simulation.

Maybe your dyr entry for those exciters are not correct (post the dyr lines for those exciters)

Also there should be no need to use pyhon calls like "changeplmodvar" to activate a (exciter) model.

edit flag offensive delete link more

Comments

Thank you for replying, in general here's how i coded the python file. "1" and "2" correspond to the buses that are connected to machine 1 and 2, respectively. Let's call the exciter model "exciter.dll" and the generator model "invertor.dll". I load the raw file, then the dyr file and the dlls.

younyoun2019 gravatar imageyounyoun2019 ( 2019-10-29 14:03:24 -0500 )edit

psspy.read(0,r"""file.raw""") psspy.addmodellibrary(r"""exciter.dll""") psspy.addmodellibrary(r"""inverter.dll""") psspy.strt(0,r"""Out""") psspy.run(0, 1.0,0,1,0) psspy.change_plmod_var(1,r"""1""",r"""exciter""",1, 30) psspy.change_plmod_var(2,r"""1""",r"""exciter""",1, 30) psspy.run(0, 2.0,0,1,0)

younyoun2019 gravatar imageyounyoun2019 ( 2019-10-29 14:04:21 -0500 )edit

at 1 second i change the reference reactive power (VAR(1)). I do the same for the second machine. The VAR value isn't changed for the second machine for some reason even though i made the test for a single machine and it worked just fine.

younyoun2019 gravatar imageyounyoun2019 ( 2019-10-29 14:07:06 -0500 )edit

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: 2019-10-29 11:41:03 -0500

Seen: 44 times

Last updated: Oct 30