Sending RtAeroPwr via ServoDyn to Bladed-Style DLL Controller

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Posts: 24
Joined: Wed Jul 13, 2016 7:46 am
Organization: University Rostock
Location: Germany

Sending RtAeroPwr via ServoDyn to Bladed-Style DLL Controller

Postby Paul.Schünemann » Mon May 13, 2019 10:15 am

Dear all,

In order to develop and test a controller for a variable speed, stall controlled wind turbine, I need the current rotor aerodynamic power RtAeroPwr at each time step being available in a Bladed-Style DLL controller. I am using OpenFAST v2.1.0. and followed the instructions for passing parameters from one module to another given by Bonnie in these posts:

With this help I was able to compile a modified OpenFAST version without errors. However, once I try to run my modified OpenFAST version I get the following error message:
FAST_InitializeAll:Error allocating AD%Input and AD%InputTimes.
forrtl: severe (157): Program Exception - access violation

All my changes to the source code are summarized in the attached document.

Does someone know where this error might come from?
In my investigations I found that this error is triggerd in line 439 of FAST_Subs.f90 (subroutine FAST_InitializeAll), but that doesn't really help me.
I would be deeply grateful for any help.

Best regards,
(13.88 KiB) Downloaded 5 times

Posts: 552
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO

Re: Sending RtAeroPwr via ServoDyn to Bladed-Style DLL Controller

Postby Bonnie.Jonkman » Mon May 13, 2019 2:34 pm

Hi, Paul.

I don't see anything in your code that would be problematic. I suspect that the code isn't linking with the new compiled version of the FAST_types.f90 files, which is what causes the access violations. (I have had this problem before, myself. I am not sure if this is a Visual Studio problem or if there is something wrong in the way the FAST project files are set up.)

Any time you change the Registry input files in FAST, I would suggest "cleaning" the FAST project file (highlight the "FAST" project, right click, select "project only->Clean Only FAST"), and then building again. You can also just do a "clean" or "rebuild" of the entire solution, but it takes a while to build everything.
Bonnie Jonkman

Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016

Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 0 guests