-
Notifications
You must be signed in to change notification settings - Fork 344
Open
Labels
Milestone
Description
Dear maintainers,
I'm not sure the following described behaviour is a feature request or a bug, or something I missed in the doc.
I'm working on parametric grids; I have a ModelMuse-generated mf6 project as base model and I want to duplicate it for each case of my study.
Each case-model should be named with a pattern:
- my base model:
myModel - each case model:
myModel_v01....myModel_v11
Here is a code sample:
import flopy as fp
import numpy as np
import copy
import os
simName = 'myModel'
Orig_sim = './orig'
exeName = 'c:\\local\\WRDAPP\\mf6.4.1\\bin\\mf6.exe'
sim = fp.mf6.MFSimulation.load(simName,exe_name=exeName,verbosity_level=1,sim_ws=Orig_sim)
case_sim = copy.deepcopy(sim)
case_sim_path = Orig_sim + '\\test_v01'
case_sim_name = simName + '_v01'
case_sim.set_sim_path(case_sim_path)
case_sim.rename_all_packages(case_sim_name)
case_sim.write_simulation()
case_sim.run_simulation()
All input files are correctly named following the given pattern.
myModel_v01.chd
myModel_v01.disv
myModel_v01.disv.grb
myModel_v01.gnc
myModel_v01.hfb
myModel_v01.ic
myModel_v01.ims
myModel_v01.nam
myModel_v01.npf
myModel_v01.ob_gw
myModel_v01.oc
myModel_v01.sto
myModel_v01.tdis
But output file names for packages OC, OBS and IMS (at least) are not modified following the given pattern, I still get:
mfsim.lst
mfsim.nam
myModel.InnerSolution.CSV
myModel.OuterSolution.CSV
myModel.bhd
myModel.ob_gw_out_head.csv
mymodel.lst
I see from the doc that I can alter manually the 'bhd' file (OC package) and the IMS output files, but I didn't find a method for the OBS6 output files.
Is there a clean way to rename all these files?
Regards,
Julien