-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Separate input and out files in different directories #2462
Comments
Further to this idea is to use consistent filenames regardless of model name. For instance, a model with a groundwater-flow simulation could look like this: Part of
Part of
and if there were a groundwater-transport component, the However, there are many exceptions where there is more than one package per model (e.g. two WEL packages One side observation is that |
Thanks for your suggestion. I tend to use the naming pattern |
Just an FYI that it is possible now to organize individual models of a simulation into folders, and do this with flopy. There is an example of this for two flow models and two transport models located here. The example makes use of the flopy model method In this case, the
One thing to keep in mind here is that all file names should be specified relative to the directory where
I like @mwtoews idea to have a simple and straightforward way to have all files named and organized in an intuitive manner. I also can see benefit to organizing input and output into separate folders as suggested by @pya. File management has been tricky and error prone with flopy in the past. I think there may be some things we could do on the MODFLOW side to help with some of this, perhaps along the line of MODFLOW issue #157. |
Add option to all discretization packages to configure the grb output file path, usage GRB6 OUTFILE <filepath>. Motivated by modflowpy/flopy#2462.
@christianlangevin Thanks for your comment. I was not aware of |
Is your feature request related to a problem? Please describe.
Models tend to get big with many input and output files. Therefore, distributing files in directories and sub-directories can be helpful to organize a project. All examples I found so far use a flat directory structure, i.e. all input and output files are in one directory.
This is my attempt to separate input and output files.
This is the directory structure after running
mf6
:The content of
mfsim.nam
:rivercond.oc
:rivercond.nam
:This works. I guess this could be extend into a deeper structure that would allow to use the same input files for multiple models. For example, these models could share files for the model geometry and use specific files for some boundary conditions that are different for each model (variant).
Looking at the source of
flopy
, it seems that it always assumes a flat structure (i.e. all files in one directory) for model post processing such as plotting. I this correct?Describe the solution you'd like
A flexible directory structure, that allows to distribute input and output files to specified directories would help to organize large models and scenario runs that modify only small parts of the input. Maybe this already possible but I don't know how to do it.
Describe alternatives you've considered
See problem description above.
Additional context
Test runs done with MF 6.6.
The text was updated successfully, but these errors were encountered: