-
Notifications
You must be signed in to change notification settings - Fork 458
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
Guidance for using OpenFAST with Matlab / Simulink #434
Comments
I suggest you take a few hours to read through and attempt installation following the directions here: https://openfast.readthedocs.io/en/dev/source/install/index.html Then search through the issues for similar questions that might give you insight into your installation: |
my programming skills are at the low level |
There is guidance on how to compile the OpenFAST interface to MATLAB/Simulink on Windows using Visual Studio in the following OpenFAST issue: #387 (see the back and forth between me and Kumara from about 3 weeks ago). |
I followed the document which kumara provided. So could i know how to proceed after creating mexw64 file and how to use. |
Hi, |
Hi @saeidfn, If you are running on Windows and don't require changing the source code, you shouldn't need to recompile the OpenFAST executable. When you say that you tried to run "OpenFAST_x64.exe", but nothing happens, what do you mean? Are you running OpenFAST from a command prompt or by double clicking on it? See, e.g., #463. Best regards, |
Dear Jason, |
Dear @saeidfn, To run OpenFAST, the source code is first compiled into an executable. Windows versions of this executable are already provided for you, so, Windows users should not need to recompile unless what want to change how OpenFAST works. For general use, OpenFAST is run by setting parameters in an input file and calling invoking the executable. As mentioned in #463, you can't run OpenFAST by double clicking on the executable. Instead, the FAST.exe must be run from a command prompt. The syntax is:
To start, it is probably easiest to open up your command window in the directory in which your primary OpenFAST input file (*.fst) is stored. For example, if you have an input file named "Input.fst", which is stored at "C:\FileLocation", you should type: C:>cd FileLocation OpenFAST should then run fine. The documentation explains a lot more. I hope that helps. Best regards, |
I have successfully compiled the Mex file, but when I run 'Run_Test01_SIG.m', matlab crashes. Are there any steps I haven't done, or is this a problem with matlab, I use matlab 2018a. |
Dear @Domotopeng, What do you mean by "MATLAB crashes"; it closes itself down? Are there any error messages reported? Best regards, |
Dear @jjonkman , Best wishes! |
Dear @Domotopeng, I'm not sure. How did you compile the mexw64 file? Could you run earlier versions of the FAST S-Function, e.g., the mexw64 file provided with FAST v8.16? Best regards, |
Dear @jjonkman , Best wishes! |
Dear @Domotopeng, If you have Visual Studio and presumably the Intel Fortran compiler, I'm not sure why you would use the MinGW compiler. There is guidance on how to compile the OpenFAST interface to MATLAB/Simulink on Windows using Visual Studio and Intel Fortran in the following OpenFAST issue: #387 (see the back and forth between me and kumaraeedara ; kumaraeedara even posted step-by-step instructions in the post dated Mar 21, 2020). I would also recommend compiling in Release mode rather than Debug. The NWTC Information Portal--where older versions of FAST were archived--crashed before the new website is available. In the interim, I've shared the archive of FAST v8.16 on my Google Drive: https://drive.google.com/drive/folders/10Pw8zzOr_YqIgtLmq10XhYpdAveKAWAJ?usp=sharing. Best regards, |
dear @jjonkman , Best wishes! |
Dear @jjonkman , Best wishes! |
Dear @Domotopeng, I'm glad you are now able to compile and run the OpenFAST S-Function properly. The error you are receiving implies that your input files are formatted improperly. I would guess that your OpenFAST binary is for a version newer than your input files. You can see how the input files have changed between the various releases of OpenFAST in the documentation--see: https://openfast.readthedocs.io/en/master/source/user/api_change.html. You can also enable the Echo option in the various OpenFAST input files to debug problems in the input file processing. Best regards, |
Dear @jjonkman , Best regards! |
Dear @Chidex221, You don't need to compile or use Visual Studio if you are using the precompiled Windows executable and don't need to change the source code. It looks like you running OpenFAST properly through a Windows command prompt. Best regards, |
I'm a very beginner into OpenFAST; I want to use it to verify my model. I need help to install it, it seems too complicated for me from the instruction. Can someone help??
The text was updated successfully, but these errors were encountered: