OpenFAST / openfast

Main repository for the NREL-supported OpenFAST whole-turbine and FAST.Farm wind farm simulation codes.
http://openfast.readthedocs.io
Apache License 2.0
687 stars 457 forks source link

wind turbine use to_sc(discon_wt2.dll) array to send data to supercontroller(sc_dll.dll) didn't work #2308

Open clun1 opened 3 months ago

clun1 commented 3 months ago

Dear @jjonkman,

when i use to_sc array in DISCON_WT2.DLL send data to SC_DLL.dll, it didn't work .but when i use to_sc array inDISCON_WT1.DLL send data to SC_DLL.dll,it work. I have followed the Settings in the link and referred to the document, but I still don't know where the problem is. May I ask if this is a problem in the program? https://github.com/OpenFAST/openfast/discussions/1511 https://forums.nrel.gov/t/fast-farm/1887/165 https://openfast.readthedocs.io/en/main/source/user/fast.farm/ModelGuidance.html 1720532599174 image image image image

Best regards,

jjonkman commented 3 months ago

Dear @clun1,

Looking at the code snippets you shared, it looks like you've set NumCtrl2SC to 6, which means that each WT will send 6 signals to the SC and the SC will receive 6*2 = 12 signals from both turbines. As far as I can tell, you are setting to_SC(1-2) from WT1 and to_SC(3-4) from WT2, which is not correct. If you want each WT to send 2 signals, set NumCtrl2SC = 2 and set to_SC(1-2) in the controllers of both WT1 and WT2, which will show up in sc_updatestates() via to_SC(1-4).

Best regards,