MODFLOW-2005 inputs

57 views
Skip to first unread message

木耳

unread,
Oct 17, 2023, 5:11:58 AM10/17/23
to MODFLOW Users Group
Good afternoon everyone, I'm a student who is new to studying groundwater flow modeling.
I obtained the MODFLOW input file through Visual MODFLOW and tried running it using the modflow-2005.exe file in the command prompt, but it displayed an error and couldn't run.
this picture shows the error information. Please help me, thank you.
微信图片_20231017145858.png

Boyce, Scott E

unread,
Oct 17, 2023, 11:32:05 AM10/17/23
to MODFLOW Users Group
Unit 0 to 6 are reservered for Fortran standard I/O and should not be used. MODFLOW also reservers 98 and 99 for its temporary files. The problem is your name file is declaring the list to use 6 as the unit number with:
LIST  6  list.txt

Typically, its best to make unit numbers >100 and they need to be unique for each file that is being opened (you can reuse the unit number after that point when referencing the file).

For example,

DATA 121 input.txt

makes input.txt associated with unit number 121. If you want to reference the file by unit you could do something like
EXTERNAL 121​.

Note if you use in the place of MODFLOW-2005, MODFLOW-OWHM (based off of 2005), unit numbers are optional for packages.
So you could change:

LIST  6  list.txt

with just

LIST   list.txt


Also you can reference data files by name for full path, such as
DATA 121 ./dir/input.txt

could be referenced as:

EXTERNAL 121

or

EXTERNAL ./dir/input.txt

or

EXTERNAL input.txt

Note if you reference just the filename and it is not unique an error is raised saying you must specify the full path due to not knowing which file to use.

Code and Download page:

Main Landing Website

Main Documentation (I usually recommend the first 20 pages and Appendix 4 for new users):

If you program in Fortran, this is my attempt at a lot of library files to help with coding:
https://code.usgs.gov/fortran/bif

Hope that helps out,

Scott

From: mod...@googlegroups.com <mod...@googlegroups.com> on behalf of 木耳 <shol...@gmail.com>
Sent: Tuesday, October 17, 2023 12:02 AM
To: MODFLOW Users Group <mod...@googlegroups.com>
Subject: [EXTERNAL] [MODFLOW] MODFLOW-2005 inputs
 

 

 This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.  



--
This group was created in 2004 by Mr. C. P. Kumar, Former Scientist 'G', National Institute of Hydrology, Roorkee. Please visit his webpage at https://www.angelfire.com/nh/cpkumar/
---
You received this message because you are subscribed to the Google Groups "MODFLOW Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modflow/563b4fc3-8a73-4845-b2bb-9b38f4285753n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages