-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the control TMD to Simulink with S-function #761
Comments
Hi Tom, We have completed the passing of control signals from the Bladed controller interface to the StC module (formerly TMD) in the following pull request: #664. If you need to pass the StC signals in from Simulink, you can follow the example for how the cable controls are passed to Simulink. You will need to expand the arrays on the C library (FAST_Library.h) and set the appropriate data handling in the FAST_Library.f90. Within ServoDyn, you will need to complete the passing of those signals through in the Regards |
Hi Andrew, Thank you for your comment, I will take a closer look at this module. Regards, |
dear Andrew The file I run is "...\StC_test_OC4Semi\StC_test_OC4Semi.fst" |
Dear @ALpadisa, From the error, it sounds like the version of your input file is incompatible with the version of OpenFAST you are running. Can you clarify from which branch of OpenFAST you compiled the source code and from which branch you obtained the input file(s)? Providing the full links to your files would help. Best regards, |
Dear @jjonkman |
Dear @ALpadisa, The input file format has changed between the version of OpenFAST you have compiled and the input files from the OpenFAST v3.0 r-test. I'll let @andrew-platt respond regarding where an input file compatible with the version of OpenFAST you are compiling can be found. Alternatively, you can modify the input files based on the errors you are receiving; reviewing the Echo files may help. Best regards, |
Dear @ALpadisa, There are some input file differences between the OpenFAST v3.0 and the Regards |
Dear Andrew, Thank you very much for your reply, I will check it carefully! Regards, |
dear @andrew-platt |
Dear @QAlexande , Did you manage to modify the source code and compile the openFast folder to add TMD control with simulink? I would be interested in your modifications because I have been trying for several weeks and I cannot generate an additional input on simulink. Regards, |
Dear @salicto |
Dear @QAlexande and @salicto, The FAST S-Function input parameter NumAdditionalInputs offers a way to allow you to pass additional data (e.g., F_active) from Simulink to the FAST / OpenFAST library without recompiling the FAST S-Function. But using NumAdditionalInputs will require you to change the source code of and recompile the FAST library so as to make use of the new data that passed (i.e., transferring F_active from the glue code to the StC module, where you want to use the data). Best regards, |
Dear @jjonkman, thank you for the help given. I failed to compile the changes made to add the controller to simulink. So I went through the folder shared by Andrew. I cloned the file and I compiled everything to check if without any change on my part it could work. But many errors appear. I compile OpenFast 2.4 very well. I am using visual studio 2017 and an Intel fortran compiler. here the log build with error |
Dear @salicto, Did you select the "Release_MATLAB" configuration in Visual Studio before compiling the OpenFAST library called by the S-Function? Best regards, |
@salicto , You are currently building with the Try closing Visual Studio and then rebuilding the OpenFAST solution using the |
Dear @jjonkman |
Dear @QAlexande, Well, there are general resources available to guide source-code development of OpenFAST, such as the Developer Documentation on readthedocs and the NWTC Programming Handbook describing the modularization framework. I would also suggest reviewing the source code of the FAST / OpenFAST library to see how other inputs from Simulink are passed through and used within the source code. For example, the blade pitch commands from Simulink are stored in array Best regards, |
Hello everyone,
I am looking to connect the TMD module with Simulink in order to develop a complete instrumentation and control system. I contacted Professor Lackner (he developed this module) but unfortunately he did not have the solution. So I ask the openfast user community if they have worked on this part.
Thank you in advance for any help you could give me,
Best Regards
Tom
The text was updated successfully, but these errors were encountered: