Page 4 of 4

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Thu Jul 16, 2020 7:38 am
by Jian.Zhang
Jason.Jonkman wrote:Dear Elham,

The FAST models of the NREL 5-MW turbine available from (http://wind.nrel.gov/public/jjonkman/NR ... Bsline5MW/) are compatible with FAST v7.02.00d-bjj. But these models rely on the use of a Bladed-style DLL controller, which is not compiled with FAST v7.02.00d-bjj by default. If you wish to run FAST v7.02.00d-bjj compiled with the Bladed-style DLL controller, you can find that here: http://wind.nrel.gov/public/jjonkman/FA ... erface.exe. Updated NREL 5-MW models compatible with FAST v8 are distributed within the CertTest directory of the FAST v8 archive: https://nwtc.nrel.gov/FAST8. The Bladed-style DLL controller is compiled with FAST v8 by default.

The interface between FAST v8 and Simulink has not yet been publicly released yet, so if you wish to apply Simulink, you should currently use FAST v7. We will be releasing an updated version of FAST v8 with a Simulink interface soon.

The source files for compiling the Simulink S-Function with FAST v7 are available in the FAST v7 archive: https://nwtc.nrel.gov/FAST7.

Best regards,



Dear Jason,

As the NREL website crashed, could you send me a copy or link regarding FAST v7.02.00d-bjj compiled with the Bladed-style DLL controller? Thank you for your help.

Regards,
Jian

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Mon Jul 20, 2020 6:55 am
by Jason.Jonkman
Dear Jian,

As I announced here: viewtopic.php?f=38&t=1001, the http://wind.nrel.gov/public/ site has also been taken down. I've now shared these files via Google Drive: https://drive.google.com/drive/folders/ ... sp=sharing.

Best regards,

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Fri Jul 24, 2020 8:02 am
by Jian.Zhang
Dear Jason,

I feel sorry for missing your announcement. Thank you for your help.

Best regards,
Jian

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Wed Dec 30, 2020 7:48 am
by Rui.Hao
Dear Jason
I want to run OpenFast with Simulink,but it has an error:
Error in S-function 'Test01_SIG/FAST Nonlinear Wind Turbine/S-Function': S-Function 'FAST_SFunc' does not exist
In v8, i know it has two reasons:Your FAST_SFunc.mexw* file is not on the MATLAB search path, or You're running 64-bit MATLAB and using FAST_SFunc.mexw32 (or vice versa: 32-bit MATLAB with FAST_SFunc.mexw64).
But how i solve it in OpenFast?

Best Regarsd!
Rui

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Wed Dec 30, 2020 7:53 am
by Jason.Jonkman
Dear Rui,

I would think the same issue/solution for FAST v8 applies to OpenFAST. The difference in OpenFAST is that NREL has not provided the precompiled mex function. Have you compiled the mex function yourself?

Best regards,

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Wed Dec 30, 2020 6:43 pm
by Rui.Hao
Dear Jason
Sorry i dont ever compile it. :| :| :|
How can i do? I have copied the mex file from v8 to OpenFast, but it doesnt work. :oops: :oops: :oops:
I want to find some instructions but i cant open the link above , so what should i do to solve the problem or could you send me a precompiled mex function file(1551286186@qq.com)? Forgive my offensive behavior if it makes you uncomfortable´╝ü

Best Regards!

Rui

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Thu Dec 31, 2020 7:35 am
by Jason.Jonkman
Dear Rui,

The mex function from FAST v8 cannot be used with OpenFAST. In OpenFAST, you must currently compile the mex function and the OpenFAST dynamic library yourself, as these have not been provided as precompiled binaries by NREL. There is documentation and quite a bit of discussion about this topic on the OpenFAST github page: https://github.com/OpenFAST/openfast.

Best regards,

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Fri Feb 26, 2021 3:27 am
by Stephen.Zahra
Dear Jason
I am trying to use OpenFast with Simulink, but have the following error:
S-Function 'FAST_SFunc' does not exist

maybe i am missing some dll's?

Regards,
Stephen

Re: Beginner Guide for MATLAB Simulink and FAST

Posted: Fri Feb 26, 2021 6:22 am
by Jason.Jonkman
Dear Stephen,

The OpenFAST S-Function is not provided as a precompiled mex function on the OpenFAST github site. Did you compile the OpenFAST S-Function?

Best regards,