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%
Build a groundwater flow model setup utility that creates a MODFLOW 6 simulation with array data stored in external files. The utility should manage model parameter arrays by saving them to separate external files and configuring the simulation to reference these files.
Your implementation should create a basic MODFLOW 6 groundwater flow model with the following features:
The key requirement is to store array data externally rather than inline in the model files:
@generates
def create_model_with_external_files(sim_name: str, sim_path: str, use_external: bool = True) -> tuple:
"""
Create a MODFLOW 6 simulation with array data stored in external files.
Parameters
----------
sim_name : str
Name of the simulation
sim_path : str
Path where simulation files will be written
use_external : bool, optional
If True, array data is written to external files. If False, data is written inline.
Default is True.
Returns
-------
tuple
A tuple containing (simulation, model) objects
"""
passProvides MODFLOW 6 model construction and file management capabilities.
@satisfied-by
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