Skip to content
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

OpenFAST Error while linking to simulink #715

Closed
AbdElhamidNabeel opened this issue Apr 10, 2021 · 2 comments
Closed

OpenFAST Error while linking to simulink #715

AbdElhamidNabeel opened this issue Apr 10, 2021 · 2 comments

Comments

@AbdElhamidNabeel
Copy link

AbdElhamidNabeel commented Apr 10, 2021

I have followed every step in the following documentation OpenFAST and every thing goes well, but when running the openloop.m file i receive the following error

I'm using MATLAB R2019b, Visual Studio 2019 for building the libraries.

i have created the FAST_SFunc.mexw64 as following

Building with 'MinGW64 Compiler (C)'.
MEX completed successfully.

When running the openloop.m file, the following error occurred.


OpenFAST

Copyright (C) 2021 National Renewable Energy Laboratory
Copyright (C) 2021 Envision Energy USA LTD

This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
See the "LICENSE" file distributed with this software for details.


OpenFAST-v2.5.0-dirty
Compile Info:

  • Compiler: Intel(R) Fortran Compiler 2021
  • Architecture: 64 bit
  • Precision: single
  • Date: Apr 10 2021
  • Time: 19:51:17
    Execution Info:
  • Date: 04/10/2021
  • Time: 20:47:44+0200

OpenFAST input file heading:
FAST Certification Test #18: NREL 5.0 MW Baseline Wind Turbine (Onshore)

Running ElastoDyn.
Nodal outputs section of ElastoDyn input file not found or improperly formatted.
Running AeroDyn.
Nodal output section of AeroDyn input file not found or improperly formatted.
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 1, blade 1)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 2, blade 1)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 3, blade 1)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 4, blade 1)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 1, blade 2)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 2, blade 2)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 3, blade 2)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 4, blade 2)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 1, blade 3)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 2, blade 3)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 3, blade 3)
Warning: Turning off Unsteady Aerodynamics because C_nalpha is 0. (node 4, blade 3)
Running InflowWind.

Reading a 31x31 grid (145 m wide, 17.5 m to 162.5 m above ground) with a characteristic wind
speed of 12 m/s. This full-field file was generated by TurbSim (v1.06.00, 21-Sep-2012) on
07-Jan-2014 at 12:50:45.

Processed 1442 time steps of 20-Hz full-field data (72.05 seconds).

Running ServoDyn.
Running ServoDyn Interface for Bladed Controllers (using Intel Visual Fortran for Windows/Matlab,
).

OpenFAST completed.

Error using Run_OpenLoop (line 12)
Error reported by S-function 'FAST_SFunc' in 'OpenLoop/FAST Nonlinear Wind Turbine/S-Function':

@bjonkman
Copy link
Contributor

You might try using the OpenFAST dev branch, or seeing if the changes from this pull request fixes the issue: #641.

I would guess that the simulation stopped because of an error, but the error message didn't get printed to the Matlab command window. Given where the simulation stopped, I'd check that it can find the 64-bit controller DLL that it is looking to open in the Interface for Bladed Controllers.

@AbdElhamidNabeel
Copy link
Author

AbdElhamidNabeel commented Apr 22, 2021

Thank you very much @bjonkman , i figured out the error, and i like to share it with those who can see this post
I had to change the PCMode, VSContrl, HSSBrMode, YCMode values to 4 in the NRELOffshrBsline5MW_Onshore_ServoDyn.dat file.
Now it run successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants