Skip to content
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

difficulty building example model from scratch #31

Open
wkitlasten opened this issue Mar 1, 2021 · 1 comment
Open

difficulty building example model from scratch #31

wkitlasten opened this issue Mar 1, 2021 · 1 comment

Comments

@wkitlasten
Copy link

wkitlasten commented Mar 1, 2021

Shouldn't it be possible to build the example "pleasant" model with no pre-existing model files in examples/data/pleasant? From the docs, I thought modflow-setup would build the entire model from the yml and supporting "source data", but I'm failing. Is there a list of required model files that need to be in examples/data/pleasant before modflow-setup will work?

For example, if I remove examples/data/pleasant/pleasant.sfr the build fails with the following, despite having an sfr block in the yml. I get a similar failure if I remove .rch, .chd, .nam, etc. So perhaps I am failing to understand something fundamental about the process?

mf6model.py in __init__(self, simulation, parent, cfg, modelname, exe_name, version, lgr, **kwargs)
     87         self.model_ws = self._get_model_ws(cfg=cfg)
     88         # update defaults with user-specified config. (loaded above)
---> 89         self._set_cfg(cfg)   # set up the model configuration dictionary

Edit: I now see the dependency on the regional model in the "parent" block (of pleasent_lgr_parent.yml... so parent of the parent?). So, now I am trying to build the original "parent" model with no dependency on any existing model files. If an example using modflow-setup already exists that would be helpful.

@aleaf
Copy link
Collaborator

aleaf commented Mar 1, 2021

Hi @wkitlasten, you need everything in examples/data/. When you run the Pleasant_lake_lgr_example.ipynb notebook, it creates the pleasant_lgr folder, which is simulation workspace for the MODFLOW-6 model that is produced. As you note, the pleasant_lgr model is inset with a parent model contained in `examples/data/pleasant``. The purpose of this is to show how an inset model can be created from another model (including parameter fields as well in addition to perimeter boundaries). I don't have a self-contained example for building the parent model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants