running modflow with batch files. dos basics cd = change directory (dos is not case sensitive) dir =...

10
Running Modflow with Batch Files

Upload: russell-matthews

Post on 04-Jan-2016

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Running Modflow with Batch Files

Page 2: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Dos basics cd = change directory

(dOs Is NoT cAsE sEnSiTiVe)

dir = shows you what is in the directory

(It gives you a list of everything that is in the folder)

copy = copies one file to a new file name

(copy sample.txt newsample.txt)

md = make directory

Don’t fear the command prompt box.

Start > Programs >

Accessories > Command Prompt

Page 3: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Basic Batch File

• Batch files just take an input file and run it with an executable file (*.exe)

• rem = remark line

• File extension is *.bat

Page 4: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Simple Tips for Batch Files

• Keep all files are in the same folder. (*.bat, *.in, *.exe)

• Make comments (rem)

• Add a pause

Page 5: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Creating Data Sets in GWV

Page 6: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

rem Basic Batch File by Chris Lowry

rem Run Model using Modflow

mf2k.exe <mf2k.in

pause

Page 7: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Run Model

Page 8: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

Import Results

Page 9: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you
Page 10: Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you

More Complex Batch File