flopy.mf6.MFSimulation.load ERROR #2279
-
I create a modflow6 model with flopy and saved it locally. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @GroundwaterSimulationOptimization, The MF6Simulation NAM-file is called "mfsim.nam": sim = flopy.mf6.MFSimulation.load("mfsim.nam", sim_ws="path) |
Beta Was this translation helpful? Give feedback.
-
In the past I used modflow2005's load method and felt it was very clear, however mf6's load method is not well presented.I feel like he's asking me to do the compute on the source model file. |
Beta Was this translation helpful? Give feedback.
Ah, the
sim_name
isn't actually used to look for the Simulation NAM-file apparently which is alwaysmfsim.nam
. So good question, not sure what it's used for other than some internal naming.But something is going wrong in loading the Storage package apparently. It seems to think the package data is empty... What version of flopy/mf6 are you using? Are you able to share the model here? If so, I, or one of the actual flopy gurus, can take a look.
If possible, you can try skipping the STO package for now using the load_only kwarg and passing a list of packages it should load, e.g.
flopy.mf6.MFSimulation.load(sim_ws=path, load_only=["DIS", "IC", "OC", ...])
.