Replies: 3 comments
-
Hi Cas, to me this sounds like a job for the API. You could write a small python script around the MODFLOW shared library and configure a GHB where you want the influx to happen. Then in your script you decide based on current head values whether the GHB conductance should be set to zero or not. The GHB has observations as well, so you can monitor the process explicitly. This would get you really quickly what you need. I personally do not know about any 'tricks' to configure your feature with existing functionality, but maybe others do. |
Beta Was this translation helpful? Give feedback.
-
I would second what @mjr-deltares said in his answer. With the modflowapi Python Package, it is relatively easy for someone to implement the custom functionality of the MAXDRN version of MODFLOW that you refer to in your message. In your case, I see two ways for you to do this:
any changes that you make here will update for each MODFLOW iteration. So here is where you can check the aquifer cell head and then change the conductance value accordingly. The budget tables, values written to the budget file, etc. will automatically use these adjusted flows from this calculation. Note that you may need to store the original conductances in Python somewhere so they can be reset. Alternatively, maybe a copy of conductance could be specified by the user as an auxiliary variable, and this copy would then be used for each iteration to specify the adjusted conductance (just thinking out loud here). There are a variety of ways to do this. So the bottom line here is that we think the API, in combination with the modflowapi and/or flopy-plugins offer some powerful ways to do what you want. Lastly, just as a random thought, could you use a trick where you have both a GHB and a DRN Package and have the DRN Package remove the GHB addition above the specified threshhold? It's a bit hacky, but may work. Just a thought. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your input! We'll look into the MODFLOW-API for this. |
Beta Was this translation helpful? Give feedback.
-
Hello,
In a recent project, we've been looking for ways to simulate a triggered influx from a control structure, where influx into the groundwater system only occurs when the head in a cell falls below a certain threshold. The inflow depends on some reference head and a conductance. Conceptually, this is somewhat the inverse of a DRAIN feature, where water is removed when the head is above a given level. I've not yet found a way to do this with MODFLOW6. In the past, we've adapted the source code of MODFLOW to incorporate these kinds of features (e.g. a maximum-flux constraint for dewatering wells), but with our shift to MODFLOW6 and the availability of the MODFLOW-API, this seems a rather cumbersome approach. I was wondering if this is something that you feel is within the scope of the code and could be implemented, or rather to be done with the MODFLOW-API ? Or perhaps I'm overlooking some way to do this with the current MF6 code ?
Kind regards,
Cas
Beta Was this translation helpful? Give feedback.
All reactions