Compiling Turbsim

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

Moderators: Bonnie.Jonkman, Jason.Jonkman

Adam.Pechner
Posts: 10
Joined: Tue Feb 03, 2009 5:02 pm
Location: Davis, CA

Compiling Turbsim

Postby Adam.Pechner » Wed Jun 24, 2009 4:40 pm

I was wondering if anyone has compiled TurbSim to run under linux using pgf90 or gfortran?

Marshall.Buhl
Posts: 437
Joined: Fri Oct 21, 2005 10:22 am
Organization: NREL/NWTC
Location: Boulder, CO
Location: Boulder, CO
Contact:

Re: Compiling Turbsim

Postby Marshall.Buhl » Thu Jun 25, 2009 9:00 am

Adam.Pechner wrote:I was wondering if anyone has compiled TurbSim to run under linux using pgf90 or gfortran?

I'm unaware of anyone doing it, but the latest draft of the manual mentions a few steps you will need to take to port it:

You should not need to compile TurbSim unless you want to make changes to the code. The archive contains Fortran code specific to TurbSim. It also contains the Fortran FFTPACK version 4.1 [9], LAPACK version 3.0 [13], BLAS [14], [15], and RanLux [16] routines that TurbSim uses. You will need to download the NWTC Subroutine Library version 1.01.09, [17], which TurbSim uses. It can be found under Miscellaneous Software on the NREL web server page at http://wind.nrel.gov/designcodes/.

The code has been written primarily for the Intel Visual Fortran compiler. If you want to port TurbSim to another platform or compiler, you may have to make changes in the NWTC Subroutine Library's SysVF.f90 file and possibly the BLAS LSAME() function. If you have access to an optimized BLAS library, you are encouraged to link your code with it instead of using the reference BLAS routines included in the TurbSim archive.

Bonnie is on vacation right now, so you'll have to wait until she returns for a more authoritative answer.
Mr. Marshall L. Buhl Jr.
NWTC-3811
National Renewable Energy Laboratory
Golden, CO 80401 USA
Marshall.Buhl@nrel.gov
Voice: +1 (303) 384-6914
Cell: +1 (303) 915-6623
Fax: +1 (303) 384-7079

Adam.Pechner
Posts: 10
Joined: Tue Feb 03, 2009 5:02 pm
Location: Davis, CA

Postby Adam.Pechner » Thu Jun 25, 2009 4:56 pm

Thanks for the fast reply, I will look into making changes to the code if necessary. As it stands I believe I have tracked the problem to two specific files that the NWTC_Library needs to compile the code. These specific files are: syssubs.mod and DFPORT. I believe both of these are Visual Fortran files which I do not have access to, so I was wondering if there was a work around for these files to get turbsim compiled on a linux system.

Adam

Marshall.Buhl
Posts: 437
Joined: Fri Oct 21, 2005 10:22 am
Organization: NREL/NWTC
Location: Boulder, CO
Location: Boulder, CO
Contact:

Postby Marshall.Buhl » Thu Jun 25, 2009 5:43 pm

Adam.Pechner wrote:These specific files are: syssubs.mod and DFPORT.

SysSubs.mod is what compiling SysVF.f90 gives you. You should rename SysVF.f90 to something that indicates which compiler it is for (the VF means Visual Fortran) and compile it.

The DFPORT is the Digital Fortran Portability library that adds a lot of Unix and VAX system routines. Eliminate the USE DFPORT statement and fix what is needed. There are some variables at the beginning that will need to be changed. They should be documented sufficiently for you to figure out what to do.

If you send me a working SysXXX.f90 file, I'll add it to the library to make life easier for others.
Mr. Marshall L. Buhl Jr.
NWTC-3811
National Renewable Energy Laboratory
Golden, CO 80401 USA
Marshall.Buhl@nrel.gov
Voice: +1 (303) 384-6914
Cell: +1 (303) 915-6623
Fax: +1 (303) 384-7079

Adam.Pechner
Posts: 10
Joined: Tue Feb 03, 2009 5:02 pm
Location: Davis, CA

Postby Adam.Pechner » Fri Jun 26, 2009 3:29 pm

Thanks for the fast response and advice. While I do not have the greatest prowess with Fortran I will look into trying to create a working Sys and DFPORT workaround.

Adam

Bonnie.Jonkman
Posts: 566
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO
Contact:

Postby Bonnie.Jonkman » Mon Jul 06, 2009 1:09 pm

Adam,

I know of a few people who have compiled TurbSim under Linux, but I think most of them use g95. As Marshall indicated, the SysVF.f90 file will have to be changed for the compiler you use. Unfortunately, I do not have source code for compilers other than VF.


Bonnie
Bonnie Jonkman

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

Jennifer.Rinker
Posts: 21
Joined: Tue Jun 25, 2013 11:34 am
Organization: Duke University
Location: NC, USA

Re: Compiling Turbsim

Postby Jennifer.Rinker » Thu Feb 19, 2015 11:00 am

Hello,

I modified the build structure and techniques for compiling FAST (http://kom.aau.dk/~anb/fast/fastinstall.html, viewtopic.php?f=4&t=588&) to compile TurbSim on 64-bit Linux with gfortran. I've attached a PDF of instructions, and the build structure and bash script can be found at http://people.duke.edu/~jmr64/turbsim_compilation/. Hopefully this will be useful for future projects.

Cheers,
Jenni
Attachments
turbsim_compile_guide.pdf
(437.1 KiB) Downloaded 176 times
Jenni Rinker, Ph.D.
Mechanical Engineering & Materials Science
Duke University/NWTC

Elham.Tofighi
Posts: 20
Joined: Thu Jan 01, 2015 9:25 pm
Organization: University of Newcastle
Location: Australia
Contact:

installing TurbSIM

Postby Elham.Tofighi » Tue May 19, 2015 6:47 pm

Dear Sir,

I am not sure if my question is relevant to the topic of this forum but I could not find other rooms discussing TurbSIM. So, I hope it is ok that I am posting my question here.

I am a new user of FAST, TurbSIM.
I have been trying to install TurbSIM on my 64bit- windows7. I downloaded the files from "https://nwtc.nrel.gov/TurbSim" and followed the instructions on how to install and run it. But unfortunately, every time I try to run "TurbSIM" or any sample files from the command prompt window, the operation is aborted and I get the message as: (the input file, <filename>.inp, was not found)

Would you please advise how I can fix this problem and if I am missing out something here?

Sincerely,
Elham
School of Electrical Engineering and Computer Science
University of Newcastle
Callaghan NSW 2308, Australia
Cell: +61 410 944 021
Skype: elham.map

Jason.Jonkman
Posts: 4952
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Compiling Turbsim

Postby Jason.Jonkman » Tue May 19, 2015 7:45 pm

Dear Elham,

As with most of our software, to start running TurbSim, it easiest to open up your command window in the directory in which your TurbSim input file and TurbSim executable are stored. For example, if you have an input file named “Input.inp”, along with “TurbSim.exe”, stored in “C:\FileLocation”, you should type:

C:\>cd FileLocation
C:\FileLocation> TurbSim Input.inp

The syntax is the same for different input files. Simply change “Input.inp” to whatever input file you want.

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Xuwen.Wang
Posts: 1
Joined: Wed Mar 13, 2019 10:54 am
Organization: Norwegian University of Science and Technology
Location: U.S. Michigan

Re: Compiling Turbsim

Postby Xuwen.Wang » Thu Apr 16, 2020 4:18 am

Dear NREL team,

I am using visual studio 2015 to compile turbsim v2.00, but met an error saying "could not find 'link' ", it didn't specify any line number in the error log, only indicated 'file' named 'Link'.

I am new to compiling and Turbsim, could you please help me out? Thank you!

Best regards,
Xuwen
Attachments
WeChat Image_20200416181458.jpg
error log screenshot
WeChat Image_20200416181458.jpg (3.46 KiB) Viewed 663 times

Jason.Jonkman
Posts: 4952
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Compiling Turbsim

Postby Jason.Jonkman » Thu Apr 16, 2020 7:20 am

Dear Xuwen.Wang.

What is written to the "Output" window in Visual Studio?

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov


Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest