Skip to content

Conversation

@dbrakenhoff
Copy link
Member

See commit messages and #34

- name parameters after packages
- use constant_d instead of just d
- add caching (from pastas caching simulate branch)
- do not add stressmodel to model in ModflowModel class
- use initialize_model() to write packages
- use update_model() to update parameters in packages (do not write pkg again, just update values)
- separate method for updating timeseries packages (this should be replaced by overwriting the time series file prior to the solution loop once the api supports it)
- add update_parameters method
- store API parameter_addresses and model name once gwf model is known
- set param name to pkg, but set name column to name of stressmodel
- use constant_d
- RCH pkg: add compute_recharge method, add option to use_timeseries for testing, add update_timeseries method
- only DIS, IC, STO, GHB, and RCH updated.
@martinvonk martinvonk marked this pull request as draft November 6, 2025 12:44
- manages parameters and API addresses for modifying values in API loop
- implemented for most classes, but addresses still missing for UZF and compound classes with multiple packages probably don't work and have not been properly tested.
- make ModflowModelApi inherit from ModflowModel
@dbrakenhoff dbrakenhoff marked this pull request as ready for review November 6, 2025 17:08
api.set_model_name("my_model")
api.add_parameters("SS", "SY")
ss_address = api["SS"] # returns "MY_MODEL/STO/SS"
api.set_value(mf6, "SS", np.array([1e3]))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather large value for storage 😅

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

Successfully merging this pull request may close these issues.

2 participants