National Wind Technology Center
NWTC Design Codes

Contents             NWTC Subroutine Library
Home
Ames Test
Annex XX
Certification
Design Codes
Disclaimer
Preprocessors
Simulators
Postprocessors
Misc. Software
Install. Tips
Usage Advice
Publications
Dynamometer
Furling
MT2
Airfoils
SWRT


Other Links
NWTC Forums
NWTC (Official)
NWTC Internal
NWTC Weather
  A library of general-use routines used in many NWTC design codes

by Marshall Buhl
National Wind Technology Center

Over the years, the staff at the NWTC has 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 routines are organized in several files.  Six of them have compiler-independent routines and the rest contain compiler-specific routines.  Four of the compiler-independent files are called NWTC_Library.f90, NWTC_Aero.f90, NWTC_IO.f90, and NWTC_Num.f90.  The first is just a simple module that makes it possible to USE only it to get all the modules in the library.  The second contains the aerodynamics-related routines and data, which will eventually be moved to AeroDyn.  The third contains I/O-related routines and data.  The fourth contains numeric routines and data.  The other two files contain modules that specify the precision of the floating-point variables.  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.

Other files in the library contain compiler-specific routines and data.  The only one currently available is called SysVF.f90.  We may offer other compiler-specific files in the future.  SysVF.f90 is for the DEC, Compaq, and Intel Visual Fortran compilers for Windows.  If you want to port our programs to another compiler, you only have to modify this file to get it to compile.  You should rename it too. This should only require minutes (or hours at the most).

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 (1.01.09, 9 KB, 18-January-2008)

    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 (1.01.09, 60 KB, 18-January-2008)

    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.

  • Old NWTC Subroutine Library Archive (100a-mlb, 48 KB, 02-July-2004)

    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 this older version.

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

Buhl, M.L., Jr.  (2004).  NWTC Design Codes (NWTC Subroutine Library), http://wind.nrel.gov/designcodes/miscellaneous/nwtc_subs.  Last modified 18-January-2008; accessed 18-January-2008.


This page was generated by createpage.pl on 18-January-2008 at 09:44:33 MST.

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