Giter Club home page Giter Club logo

discon_simulink's Introduction

External Controller design for GH Bladed and OpenFAST (Bladed interface)

Contents

Folder -- Bladed_NREL5MW_model:

  • NREL_5MW_CPC.prj/prx GH Bladed project of a 5MW turbine
  • wind012.wnd Sample 12 m/s turbulent wind file (Bladed)

Folder -- Simulink_32bit:

Refer to README.txt file in the folder (Credits and thanks to J. Butterworth, Envision Energy)

Folder -- Simulink_64bit:

  • DISCON_Empty.slx Empty controller file, including all available inputs and outputs
  • DISCON_NREL5MW.slx Baseline NREL5MW controller for use with Bladed or OpenFAST
  • Parameters_NREL5MW.mat Parameters needed for compilation of the controller
  • discon.c C file (needed for the generation of DISCON.DLL from a Simulink model)
  • discon.tlc TLC file (needed for the generation of DISCON.DLL from a Simulink model)
  • discon_vc.tmf TMF file (needed for the generation of DISCON.DLL from a Simulink model)

Requirements (for 64-bit DLL/SO compilation):

  1. GH Bladed
  2. MATLAB / Simulink, tested with 2018b, but might also work with other versions
  3. Microsoft Visual Studio 2005/2008/2010

Compiling DISCON DLL 32-bit:

1a. For 32-bit DLL compilation, install Windows Windows SDK 7.1, and see further instructions in the "Simulink_32bit\README.txt" file: https://nl.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1

Compiling DISCON DLL 64-bit:

  1. For 64-bit compilation, download the latest 64-bit MATLAB version (tested with 2018b) and install the MinGW compiler: https://nl.mathworks.com/support/compilers.html
  2. Open MATLAB and load the Parameters_NREL5MW.mat in your current workspace
  3. Change your current folder to the .\Simulink_files folder
  4. Open DISCON_xxx.slx in Simulink
  5. Press CTRL-B to build a DLL

Note: When compiling a 32-bit DISCON DLL, you can use the DLL with Bladed and a 32-bit version of OpenFAST (fast_win32.exe). When you use a 64-bit version of MATLAB, the compiled DLL will also be 64-bit, which is incompatible with Bladed, but compatible with 64-bit OpenFAST (openfast_x64.exe).

Comments:

  1. Do not change the names of the inputs and outputs blocks in DISCON_xxx.slx
  2. Do not change the name DISCON_xxx.slx to DISCON.slx (all other names are allowed)

References

Sebastiaan Mulders [email protected] Delft Center of Systems and Control Delft University of Technology

Credits to:

Ivo Houtzager Delft Center of Systems and Control Delft University of Technology

Jeffrey Butterworth, Ph.D. (Support in making 32 bit compilation possible with a 64 bit MATLAB) Envision Energy 1919 14th Street, Suite 800 Boulder, CO 80302

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.