# BladedDLLInterface

**URL:** <https://forums.nlr.gov/t/bladeddllinterface/773>\
**Category:** Computer-Aided Engineering Software Tools\
**Created:** [October 7, 2013, 1:13pm UTC](https://forums.nlr.gov/t/bladeddllinterface/773 "2013-10-07T13:13:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul.Poisson](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Paul.Poisson](https://forums.nlr.gov/u/Paul.Poisson)\
**Post date:** [October 7, 2013, 1:13pm UTC](https://forums.nlr.gov/t/bladeddllinterface/773/1 "2013-10-07T13:13:06Z")

</div>

Ladies and Gentlemen,

I would like to use a Bladed style controller, similar to that in appendix-C of the 5MW Reference Turbine design basis, and I have read through Bonnie’s document for implementing this, but I still need some help.

1. Using “Compile\_DISCON\_DLL.bat”:

2. Compiling “BladedDLLInterface.f90”:

Any tips or advice is greatly appreciated.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Bonnie.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/bonnie.jonkman/32/3230_2.png) [@Bonnie.Jonkman](https://forums.nlr.gov/u/Bonnie.Jonkman)\
**Post date:** [October 15, 2013, 7:38pm UTC](https://forums.nlr.gov/t/bladeddllinterface/773/2 "2013-10-15T19:38:18Z")

</div>

Hi, Paul.

1a. The script for FAST v7 assumes the source file is called Discon.f90; it isn’t too difficult to change that, though.  
1b. “here” refers to the section in the batch file. The [instructions for compiling FAST](http://wind.nrel.gov/public/bjonkman/DesignCodes/FASTCompilingInstructions.pdf) describes how to “set compiler internal variables” (see the first page).

1. It depends. If your DLL doesn’t need any different values set in FAST’s BladedDLLParameters MODULE, you can just put your DISCON.DLL file in the working directory and use [FAST compiled for the Bladed Interface](http://wind.nrel.gov/public/jjonkman/FAST/FAST_v7.02.00d-bjj_AeroDyn_v13.00.02a-bjj_BladedDLLInterface.exe). Otherwise, you will have to set the appropriate values in BladedDLLInterface.f90 and recompile.

---

<div class="post-metadata">

**Author:** ![Paul.Poisson](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Paul.Poisson](https://forums.nlr.gov/u/Paul.Poisson)\
**Post date:** [October 16, 2013, 7:43am UTC](https://forums.nlr.gov/t/bladeddllinterface/773/3 "2013-10-16T07:43:09Z")

</div>

Hi Bonnie,

Thank you very much for the explanations. My newly compiled FAST seems to work.

I do have another, less urgent question though. Why are the pitch angle limits and the pitch rate set in both DISCON and in BladedDLLParameters?

Thanks a lot,  
Paul

---

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [October 17, 2013, 8:05pm UTC](https://forums.nlr.gov/t/bladeddllinterface/773/4 "2013-10-17T20:05:28Z")

</div>

Dear Paul,

Near the top of the BladedDLLInterface.f90 source file that comes with FAST v7 is MODULE BladedDLLParameters(). This MODULE contains model-specific inputs available in the GH Bladed code, which are not available inputs in FAST v7 (although they are available in FAST v8). These values are sent as arguments to the DLL by GH Bladed and FAST if the DLL wishes to use them. The DLL does not need to use them.

Best regards,

---

<div class="post-metadata">

**Author:** ![Paul.Poisson](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@Paul.Poisson](https://forums.nlr.gov/u/Paul.Poisson)\
**Post date:** [November 25, 2013, 11:43am UTC](https://forums.nlr.gov/t/bladeddllinterface/773/5 "2013-11-25T11:43:27Z")

</div>

Hi Jason,

Thank you for the explanation. Also, thank you for the informative seminar at EWEA Offshore. I will actually migrate to Version-8 this week, since it already has all the functionality that I need, plus tower drag. And, I guess I can use my specific DISCON without having to recomplie FAST. This is nice!

Best regards,  
Paul
