Error Creating .acf file for the bladed_dll on FAST 7.01.00a

Hello,

I am trying to use FAST to create an ADAMS command file (.acf) from the NREL 5MW turbine. I have compiled the FAST.exe file to use the Bladed_DLL. When I try to run FAST and make the .acf file, I see this:

When I use 2 bladed configuration:

[code]Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Running FAST (v7.01.00a-bjj, 16-Feb-2012).

Heading of the FAST input file: NREL 5.0 MW Baseline Wind Turbine for Use in Of
fshore Analysis.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Aerodynamic loads calculated using AeroDyn (v13.00.01a-bjj, 16-Feb-2012).
Heading of the AeroDyn input file: NREL 5.0 MW offshore baseline aerodynamic in
put properties;
Compatible with AeroDyn v12.58.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Using InflowWind (v1.00.01b-bjj, 14-Nov-2011)

Assuming .\WindData\EOGR+2.0.wnd is a formatted HH wind file.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).
Reading 107 lines of data from the HH wind file.
forrtl: severe (408): fort: (2): Subscript #1 of the array ARY has value 3 which
is greater than the upper bound of 2

Image PC Routine Line Source
FastCompile.exe 00A0B3FA Unknown Unknown Unknown
FastCompile.exe 00A086D8 Unknown Unknown Unknown
FastCompile.exe 009358A0 Unknown Unknown Unknown
FastCompile.exe 00935EC1 Unknown Unknown Unknown
FastCompile.exe 008EB9FC _FAST2ADAMSSUBS_m 4146 FAST2ADAMS.f90
FastCompile.exe 008E8E74 FAST2ADAMSSUBS_m 3987 FAST2ADAMS.f90
FastCompile.exe 008EC6E9 MAIN
76 FAST_Prog.f90
FastCompile.exe 00A0FD43 Unknown Unknown Unknown
FastCompile.exe 009AB843 Unknown Unknown Unknown
FastCompile.exe 009AB60D Unknown Unknown Unknown
kernel32.dll 7D4E7D42 Unknown Unknown Unknown[/code]

When I use 3 bladed configuration:

[code] Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Running FAST (v7.01.00a-bjj, 16-Feb-2012).

Heading of the FAST input file: NREL 5.0 MW Baseline Wind Turbine for Use in Of
fshore Analysis.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Aerodynamic loads calculated using AeroDyn (v13.00.01a-bjj, 16-Feb-2012).
Heading of the AeroDyn input file: NREL 5.0 MW offshore baseline aerodynamic in
put properties;
Compatible with AeroDyn v12.58.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).

Using InflowWind (v1.00.01b-bjj, 14-Nov-2011)

Assuming .\WindData\EOGR+2.0.wnd is a formatted HH wind file.
Using NWTC Subroutine Library (v1.04.01, 21-Feb-2012).
Reading 107 lines of data from the HH wind file.
forrtl: severe (408): fort: (2): Subscript #1 of the array ARY has value 4 which
is greater than the upper bound of 3

Image PC Routine Line Source
FastCompile.exe 00A0B3FA Unknown Unknown Unknown
FastCompile.exe 00A086D8 Unknown Unknown Unknown
FastCompile.exe 009358A0 Unknown Unknown Unknown
FastCompile.exe 00935EC1 Unknown Unknown Unknown
FastCompile.exe 008EB9FC _FAST2ADAMSSUBS_m 4146 FAST2ADAMS.f90
FastCompile.exe 008E8E74 FAST2ADAMSSUBS_m 3987 FAST2ADAMS.f90
FastCompile.exe 008EC6E9 MAIN
76 FAST_Prog.f90
FastCompile.exe 00A0FD43 Unknown Unknown Unknown
FastCompile.exe 009AB843 Unknown Unknown Unknown
FastCompile.exe 009AB60D Unknown Unknown Unknown
kernel32.dll 7D4E7D42 Unknown Unknown Unknown[/code]

Anyone who knows what is the problem with this, please let me know.

Hi,

I haven’t been able to reproduce the problem you are having. Can you tell me what compiler you used and what settings you used to compile your version of FAST?

Thank you for your reply, Bonnie Jonkman.

I used Intel Visual Fortran 11.1.067. with MS Visual Studio 2005.

I inserted all Fortran codes listed in ‘Compile_FAST.bat’ in the source files folder under solution explorer in MS VS2005.

I excluded the following files because I wanted to make a FAST.exe file which uses .dll file:

100  IF /I "%1"=="DLL" GOTO dllFiles
101
102  SET FAST_Files=%FAST_Files%  "%FAST_LOC%\PitchCntrl_ACH.f90"
103  SET FAST_Files=%FAST_Files%  "%FAST_LOC%\UserSubs.f90"
104  SET FAST_Files=%FAST_Files%  "%FAST_LOC%\UserVSCont_KP.f90"
105
106  GOTO endFASTfiles

(I added line numbers for your convenience)

By simply pressing Build> Build Solution (Ctrl+Shift+B) in MS VS2005, I could compile the FAST.exe file.

When the ADAMSPrep parameter of .fst file is set to 1 the FAST simulation runs good.

However, the error occurs only when I request to create .acf file such as ADAMSPrep is set to 2 or 3.

Following is the DropBox link to the FAST.exe file:

[url]http://dl.dropbox.com/u/65424334/FAST/FastCompile.exe[/url]

I named the file as ‘FastCompile.exe’ to distinguish with original release ‘FAST.exe’ file.

If you have some recommendation or comment, please reply me.

Thank you.

You can try to make the following change on line 625 of the FAST2ADAMS.f90 file to avoid the error you are getting with your compiled version:

ALLOCATE ( IDCntrl(BldNodes,NumBl) , STAT=Sttus )

I’m guessing you have compiled in Debug mode, which sets some extra checks at run time. If you plan to run a lot of simulations, I’d recommend starting with Release mode. The code will run significantly faster. (You can change this in the configuration manager in Visual Studio.) Also make sure–whichever configuration you choose–to set the /Qzero, /Qsave, and /assume:byterecl options. If you don’t, the code might produce strange answers in some instances. (See items in bold in the figure below. Your project properties window may look slightly different because you have a different version of Visual Studio) FASTCompileSettings.JPG

Dear Bonnie Jonkman,

Thank you very much for your help!!

The problem solved!!

Now it works perfectly, and much much faster than before!!

Thank you very much!

Sincerely,