Rectifying

123 views
Skip to first unread message

Vikrant Vishal

unread,
Sep 7, 2021, 11:56:20 PM9/7/21
to mod...@googlegroups.com
Dear All,

Currently, I am trying to learn and execute some simulations using FLOPY and MODFLOW 6. I am very new to FLOPY and but have good experience in GW modeling. 

I am encountering the below error while using FLOPY. Can someone help me in rectifying the error? 

Thank you in advance!

Thanks,
Vikrant
     
ERROR REPORT:

 *** ERROR OPENING FILE "mf6uzfexample.chd" ON UNIT 1010
 *** FILE ALREADY OPEN ON UNIT: 1006
       SPECIFIED FILE STATUS: OLD
       SPECIFIED FILE FORMAT: FORMATTED
       SPECIFIED FILE ACCESS: SEQUENTIAL
       SPECIFIED FILE ACTION: READ
         IOSTAT ERROR NUMBER: -1
  -- STOP EXECUTION (openfile) 
Stopping due to error(s) 

Garth Cooper

unread,
Sep 8, 2021, 2:26:30 AM9/8/21
to mod...@googlegroups.com
One of your files is open in another program, either the model is running or some other script is using that constant head file.

Close all your programs, restart your computer or make a copy of your constant heads file and run your script on the copy.

Hope that helps.





On 8 Sep 2021, at 11:56 am, Vikrant Vishal <vvi...@ualberta.ca> wrote:


--
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/CALnNuRF8NKVMX35VqS5oWJ%2BseL_nK77mFPyJuzs5R21MqLOAiw%40mail.gmail.com.

Saul Montoya

unread,
Sep 8, 2021, 2:46:51 AM9/8/21
to mod...@googlegroups.com
That was the same I was going to say.



Viva el software libre!



Richard B. Winston

unread,
Sep 8, 2021, 8:21:54 AM9/8/21
to MODFLOW Google Group
Actually, it looks like the CHD file has already been opened by MODFLOW and it is trying to open it again with a different unit number. Check the name file and make sure the CHD file is only listed once.

Vikrant Vishal

unread,
Sep 9, 2021, 12:17:52 PM9/9/21
to mod...@googlegroups.com
Dear All,

Thank you very much for your suggestions. The problem has been resolved. However, I have another problem now, please see below.

ERROR REPORT:

 ERROR.  NODE PROPERTY FLOW (NPF6) PACKAGE NOT SPECIFIED.
 ERROR. REQUIRED PACKAGE(S) NOT SPECIFIED.
 ERROR OCCURRED WHILE READING FILE: Example1.nam
 Stopping due to error(s)

My *.nam file:

image.png

Regards,
Vikrant 

Richard B. Winston

unread,
Sep 9, 2021, 12:23:51 PM9/9/21
to MODFLOW Google Group
The Node Property Flow package is the package that simulates groundwater flow. Just use flopy to create it as part of the model.
Reply all
Reply to author
Forward
0 new messages