Hi All,
I have run OpenFAST successfully for steady cases using a set of tools that I have written to manipulate the input files using Python.
Now, however, I need to move on to dynamic modelling as I want to investigate the behaviour of a spring-based passive blade-pitch mechanism.
My understanding is that Simulink would be the best tool for setting up and running a time-step dynamic model. Please could someone point me towards some really simple instructions as to how to get started with running OpenFAST with Simulink.?
Here is what I have tried so far:
1) I first tried to open âRun_OpenLoop.mâ in matlab and âOpenLoop.mdlâ in Simulink
2.) I ran âRun_OpenLoop.mâ but got the following error:
"Error while obtaining sizes from MEX S-function âFAST_SFuncâ in âOpenLoop/FAST Nonlinear Wind Turbine/S-Functionâ.
Caused by:
Invalid MEX-file âC:\Users.âŚ\OpenFAST\glue-codes\simulink\examples\FAST_SFunc.mexw64â: The specified module could not be found."
3) I then tried to run âmex -setupâ and âCreate_FAST_SFunc.mâ to see if this would solve the problem, but it does not. When I run âCreate_FAST_SFunc.mâ I get the following error:
"Error using mex
MEX cannot find library âopenfastlibâ, specified with the -l option.
- MEX searched for a file with one of the following names:*
- libopenfastlib.a*
openfastlib.lib
libopenfastlib.lib - Verify the library name is correct. If the library is not*
- on the existing path, specify the path with the -L option.*
Error in create_FAST_SFunc (line 63)
mex(â-largeArrayDimsâ, âŚ"
I suspect the problem may be to do with compiling OpenFAST for Simulink to create a DLL. I have so far used the compiled OpenFAST executable (openfast_x64.exe) and I have no experience of using cmake or Visual Studio.
So, as I said, Iâm looking for some really simple instructions as to how to get started with running OpenFAST with Simulink, and I specifically need to know how to overcome the errors mentioned above.
I would be very grateful for any advice anyone is able to offer.
Kind regards,
Tom