FloPy is a Python package to create, run, and post-process MODFLOW-based models
Agent Success
Agent success rate when using this tile
66%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.14x
Baseline
Agent success rate without this tile
58%
A tool for managing time-varying recharge data in MODFLOW 6 groundwater models.
Create a Python script that applies time-varying recharge rates to a MODFLOW 6 groundwater flow model. The recharge rates vary over time and should be specified using an external time series file that is linked to the recharge package.
You will work with a basic MODFLOW 6 simulation that has:
Create a time series data file with three time points:
The time series should be named "rch_ts" and saved as "recharge_ts.txt" in the simulation workspace.
Your implementation should:
@generates
def create_time_series_file(filepath: str, times: list, values: list) -> None:
"""
Create a time series data file for MODFLOW 6.
Args:
filepath: Path where the time series file will be created
times: List of time values (in days)
values: List of corresponding recharge rates (in m/day)
"""
pass
def setup_recharge_with_timeseries(
sim_name: str,
sim_ws: str,
ts_filename: str,
nper: int = 2,
perlen: float = 10.0,
nrow: int = 10,
ncol: int = 10
) -> None:
"""
Set up a MODFLOW 6 simulation with time-varying recharge.
Args:
sim_name: Name of the simulation
sim_ws: Workspace directory for the simulation
ts_filename: Name of the time series file to use
nper: Number of stress periods
perlen: Length of each stress period in days
nrow: Number of rows in the grid
ncol: Number of columns in the grid
"""
passPython package for creating, running, and post-processing MODFLOW-based groundwater models. Provides support for MODFLOW 6 time series functionality.
tessl i tessl/pypi-flopy@3.9.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10