Skip to content

How can I change output file names or save them in a specific directory with mf6 simulation ? #1589

Answered by jlarsen-usgs
valDallalba asked this question in Q&A
Discussion options

You must be logged in to vote

The easiest way to change the simulation path is by using:

sim  = fp.mf6.MFSimulation.load(sim_name='daily', exe_name=exe_name, sim_ws=model_load)
sim.set_sim_path("my/new/path")
sim.write_simulation()

Or you can change the name of the model by using

sim  = fp.mf6.MFSimulation.load(sim_name='daily', exe_name=exe_name, sim_ws=model_load)
sim.rename_all_packages("my_new_name")
sim.write_simulation()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@valDallalba
Comment options

Answer selected by jdhughes-usgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants