NREL - National Renewable Energy Laboratory NWTC Information Portal
Computer-Aided Engineering Tools

 

Contents               NWTC Subroutine Library
NWTC Portal

CAE Tools
Disclaimer
Preprocessors
Simulators
Postprocessors
Misc. Software
FAQ
Install. TipsPDF
Usage Advice
Publications

Seminars
MT2
Airfoils
Systems Eng
Met Data


Other Links
NWTC Forums
NREL Main
Wind Research
NWTC Internal
NWTC Weather
  A library of general-use routines used in many NWTC computer-aided engineering tools

by Marshall Buhl
National Wind Technology Center

Over the years, the staff at the NWTC have written many general-purpose routines that we use in many of our codes.  In the past, we would copy those needed for any given program from the source of another code.  These routines were generally kept in a separate file of the code's archive and had names such as GenSubs, GenUse, and SysVF.  We decided that doing it that way was just too much work—especially when we wanted to change one of the routines and have it affect all the codes.  So, we decided to create a central set of routines and include their source files in our Fortran projects.  Thus, the NWTC Subroutine Library was born.

The NWTC Subroutine Library consists of several Fortran MODULES, each contained in its own source file. If you wish to access any of the data or routines from the library, add the statement USE NWTC_Library to the program unit requiring access. All of the modules in the NWTC Subroutine Library will be accessible through this statement. The library's NWTC_Init subroutine must also be called before using any of the other routines or parameters in the library.

The library is written in standard Fortran 2003, with the exception of some of the routines and data in the Sys*.f90 files. We currently have several compiler-specific files available to choose from, including SysIVF.f90 for the Intel Visual Fortran compiler for Windows and SysGnuLinux.f90 for the GNU Fortran compiler for Linux. If you want to port our programs to a different compiler, you should only have to modify one of the Sys*.f90 files to get it to compile.  (You should rename the Sys*.f90 file when you make changes.) This should require only minutes (or hours at the most).

To compile the library, see the instructions and source-file compilation order described in the heading of the NWTC_Library.f90 file. Add the file SingPrec.f90 to your project to use single-precision (four-byte) arithmetic or the file DoubPrec.f90 to use double-precision (eight-byte) arithmetic.

If you have written other general-use routines and would like us to include them in our library, please email them and I will consider adding them to the library.  We also welcome suggestions for desirable routines.


You may download the following files from our server:

  • NWTC Subroutine Library Change Log (v1.07.00b-mlb, 26 KB, 3-April-2013)

    This is a list of changes made to the code.  Look at this text file to see if we've made worthwhile changes since you received your previous version of the NWTC Subroutine Library.

  • NWTC Subroutine Library Archive for Windows (EXE 426 KB) (v1.07.00b-mlb, 426 KB, 11-January-2013)

    This is a self-extracting archive of NWTC Subroutine Library.  Simply execute it in an appropriate directory to extract the files.  It contains the change log, the source code, and some archive/web support files.

  • NWTC Subroutine Library Archive (gz 254 KB) (v1.07.00b-mlb, 254 KB, 11-January-2013)

    This is a compressed archive of NWTC Subroutine Library. It contains the same files as NWTC Subroutine Library Archive for Windows, but is stored in tar.gz format for non-Windows users.

You may download the following older files from our server:

The library is undergoing rapid change and the programs that use it cannot keep up. If you want to recompile one of the programs that we have not updated, please use one of these older versions.

Windows Archives: Linux Archives:

You may download the following alpha version from our server:

If you are a developer for the FAST Modularization Framework, you may download this alpha version of the library, which has been updated for compatibility with the framework. It is still undergoing testing.

If you want to refer to the NWTC Subroutine Library in a report, here is a reference you can use:

NWTC Computer-Aided Engineering Tools (NWTC Subroutine Library by Marshall Buhl). http://wind.nrel.gov/designcodes/miscellaneous/nwtc_subs/.  Last modified 3-April-2013; accessed 19-May-2013.




This page was generated by CreatePage.pl on 03-April-2013 at 14:17:11 MDT.
Last modification: Wednesday, 3-April-2013 at 14:17:11 MDT

Valid HTML 4.01!
Valid CSS!

NREL is a national laboratory of the U.S. Department of Energy, Office of Energy Efficiency & Renewable Energy,
operated by the Alliance for Sustainable Energy, LLC

Webmaster  |   Security & Privacy  |   Disclaimer  |   NREL Home