Code-NME

所属分类:书籍源码
开发工具:Fortran
文件大小:80KB
下载次数:5
上传日期:2010-12-06 05:56:21
上 传 者haider
说明:  Code of the Numerical Methods for Engineers book

文件列表:
Code the Numerical Methods for Engineers\Errata.htm (716, 2008-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm21.dat (65, 2005-12-18)
Code the Numerical Methods for Engineers\NM\chap02\nm21.f95 (1414, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm210.dat (100, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm210.f95 (1507, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm211.dat (93, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm211.f95 (1200, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm212.dat (93, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm212.f95 (1315, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm213.dat (93, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm213.f95 (1633, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm214.dat (90, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm214.f95 (1510, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm215.dat (93, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm215.f95 (1881, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm216.dat (94, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm216.f95 (1983, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm22.dat (65, 2005-12-17)
Code the Numerical Methods for Engineers\NM\chap02\nm22.f95 (967, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm23.dat (59, 2005-12-03)
Code the Numerical Methods for Engineers\NM\chap02\nm23.f95 (970, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm24.dat (66, 2005-12-18)
Code the Numerical Methods for Engineers\NM\chap02\nm24.f95 (811, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm25.dat (52, 2005-12-18)
Code the Numerical Methods for Engineers\NM\chap02\nm25.f95 (805, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm26.dat (65, 2005-12-18)
Code the Numerical Methods for Engineers\NM\chap02\nm26.f95 (783, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm27.dat (63, 2006-04-27)
Code the Numerical Methods for Engineers\NM\chap02\nm27.f95 (1266, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm28.dat (92, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm28.f95 (1241, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\nm29.dat (92, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap02\nm29.f95 (1327, 2006-05-26)
Code the Numerical Methods for Engineers\NM\chap02\run2.bat (455, 2008-05-17)
Code the Numerical Methods for Engineers\NM\chap03\nm31.dat (19, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap03\nm31.f95 (843, 2006-05-27)
Code the Numerical Methods for Engineers\NM\chap03\nm32.dat (25, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap03\nm32.f95 (1126, 2008-05-21)
Code the Numerical Methods for Engineers\NM\chap03\nm33.dat (26, 2005-12-25)
Code the Numerical Methods for Engineers\NM\chap03\nm33.f95 (1135, 2007-09-24)
... ...

************************************************************************** Installation instructions for Windows Users Created by Jinsong Huang and Vaughan Griffiths Colorado School of Mines May 2007 ************************************************************************** The following instructions explain how you can download and run the programs and subroutines as described in detail in the text: "Numerical methods for Engineers (2nd edition)" by D.V. Griffiths and I.M. Smith Chapman & Hall/CRC 2006 This readme.txt file is in four parts as follows: A) Downloading the programs and library routines. B) Downloading a free Fortran 95 compiler. C) Building the numerical methods library D) Running the numerical methods programs. *************************************************************************** A) Downloading the programs and library routines. Go to web site http://www.mines.edu/fs_home/vgriffit/NM, click on NM.exe, select "Run", select "Run" again, choose the folder you want to Unzip to (or accept the default of c:\NM), click "Unzip". In either case When it has finished it should say "143 files unzipped successfully". Click on "OK" and "Close" the WinZip Self-Extractor window. You are free to select any installation folder you wish for NM, but the following instructions assume you have accepted the default installation folder of c:\NM. If you are unable, or do not wish to use the default installation folder, you are free to replace the default folder with another folder of your choosing. As an example, let us assume that you wish to install the finite element programs in d:\software\NM. Execute the file NM.exe as described above, but when the pop-up window appears, replace c:\NM with d:\software\NM before clicking on "Unzip". In this case, you will need to replace all occurrences of "c:\NM" with "d:\software\NM" in section C) below. *************************************************************************** B) Instructions for downloading a free Fortran 95 compiler. This will be needed if you want to change any of the main programs or subroutines, or add new subroutines to the finite element libraries Go to web-site http://www.g95.org Click on "Download binaries, source and manual." Scroll down to "g95-MinGW.exe" Click on link which says Download from: "http//ftp.g95.org/g95-MinGW.exe" Click on "Run", Click on "Run" again, Click on "Yes" If you have Administrator privileges you are free to select any installation folder you wish for g95 and read the next paragraph. The following instructions assume you installed the compiler in c:\g95. If you are unable, or do not wish to use the default installation folder, you are free to replace the default folder with another folder of your choosing. As an example, let us assume that you wish to install the Fortran 95 compiler in c:\compilers\g95. Execute the file g95-MinGW.exe as described above, but when the pop-up window appears, enter c:\compilers\g95 in the "Destination Folder" window before clicking "Install". In this case, you will need to replace all occurrences of "c:\g95" with "c:\compilers\g95" in the remainder of this section and in all remaining sections. When g95 installer asks "Install MinGw utilities and libs?", click "OK". When g95 installer asks "Set PATH=C:\g95\bin & LIBRARY_PATH=C:\G95\LIB? (Recommended)" ,click "OK". When g95 installer asks "Open README.txt now?", click "Cancel". Click "OK" to exit *************************************************************************** C) Building the numerical methods library. In Windows Explorer go to folder c:\NM\nm_lib and double-click on build_lib *************************************************************************** D) Running the numerical methods programs. To compile and run a numerical methods program, say nm46.f95 from Chapter 4 in the book with a sample data, say nm46.dat, open up a "Command Prompt" window, go to folder c:\NM\chap04 by typing, cd c:\NM\chap04 and then type, run2 nm46 nm46 followed by "Enter". run2.bat is an executable file located in each of the c:\NM\chap* folders and looks like this: echo off rem ******EDIT THE NEXT TWO LINES IF NECESSARY****** set ED2=c:\NM set G95=c:\g95 rem ************************************************ set NML=%ED2%\nm_lib SET LIBRARY_PATH=%G95%\lib;%G95%\lib\gcc-lib\i686-pc-mingw32\4.0.3 set PATH=%PATH%;%G95%\BIN;%G95%\lib\gcc-lib\i686-pc-mingw32\4.0.3 g95 %1.f95 -o %1.exe -I %NML% %NML%\nm_lib.a copy %2.dat nm95.dat %1 move nm95.dat %2.dat move nm95.res %2.res del %1.exe nm95.dat Before running run2.bat, the environment variables ED2 and G95 may need editing to ensure they point to the correct installation folder for NM and g95. run2 is always followed by two arguments as shown above. The first argument is the name of the source program (must have extension .f95) and the second argument is the name of the data file (must have extension .dat). DO NOT TYPE THE EXTENSIONS WHEN USING run2 If the program executes successfully, the results file is given the same name as the data file but with the extension *.res In the above example, the results will be held in nm46.res If for example you want to run program nm21.f95 with your own data, go to folder c:\NM\chap02 by typing: cd c:\NM\chap02 Make a copy of the example data that goes with the program by typing: copy nm21.dat fred.dat Edit fred.dat to reflect the requirements of your particular analysis using any suitable text editor (e.g. Notepad, WordPad). Execute the program with your data by typing: run2 nm21 fred If the program executes successfully, the results will be held in the file fred.res ***************************************************************************

近期下载者

相关文件


收藏者