Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GWlink

Desktop application for building, running and reading MODFLOW 6 and MODFLOW-USG groundwater models. The graphical interface, a Python script, a notebook and an embedded AI agent are four views of the same model, kept in sync by one backend.

Freyberg MODFLOW-USG head iso-surfaces spinning in the GWlink 3D viewer

GWlink is in beta and runs on macOS (Apple Silicon) and Windows. Request access at gwlink.gwlab.cl/request-access. Current version is 0.1.92, see CHANGELOG.md.

GWlinkViewer

Download GWlinkViewer for macOS or Windows.

GWlinkViewer is a free, read only desktop edition built from the same code as GWlink. It imports MODFLOW 6 and MODFLOW-USG model folders and opens .gwlink projects to inspect the model and its results. It cannot edit the model, run MODFLOW or save changes.

GWlinkViewer is distributed through its own installers for macOS and Windows and uses a separate update channel. Its version matches the full GWlink version. It is distinct from MODFLOW AI, whose open_in_viewer tool turns a MODFLOW 6 model built and run locally into a read only browser link valid for 30 days.

What it does

The workflow runs left to right through the stages DATA, GRID, TIME, PACKAGES, RUN, ZBUD, RESULTS and MATCH.

  • Data. Shapefiles, GeoJSON, DXF, GeoTIFF and point clouds in UTM. Rivers, lakes and boundaries fetched from OpenStreetMap. Existing MODFLOW 6, MODFLOW-USG and MODFLOW-2005 models imported as they are.
  • Grid. Voronoi and quadtree meshes refined around wells, rivers and faults, written as DISV or DISU.
  • Packages. Properties and boundary conditions linked to spatial data by value, by zone or by expression, so a change in a shapefile flows through to the model. 18 MODFLOW 6 packages including SFR, MAW, LAK, HFB and the GWT transport pair, 16 MODFLOW-USG packages including CLN.
  • Time. Stress periods and time series as curves bound to parameters, resolved by the backend at every period.
  • Run. Writes the input files, runs the engine, follows convergence and solver diagnostics live.
  • Results. Heads, drawdown, water table, budgets, zone budgets, contours, 2D cross sections and a 3D viewer with iso-surfaces.
  • Match. History matching with PEST++ over observations and zones.
  • Script and notebook. The model is also a FloPy script and a Jupyter notebook, generated from the same state, byte for byte the same code in both.
  • Agent. An AI agent that runs on your own Claude Code or Codex account. It changes the model only by driving the real controls of the interface, so everything it does is visible on screen and can be recorded and replayed as a flow.

Validation on published models

Every model below was written by someone else. GWlink opens it, writes it back, runs it and renders the head iso-surfaces in 3D. Each poster links to the recorded clip of the real interface doing exactly that. The full list, grouped by publisher, is at gwlink.gwlab.cl/validation.

Freyberg MODFLOW-USG
Freyberg MODFLOW-USG · MODFLOW-USG
GMDSI Milford MFUSG
GMDSI Milford MFUSG · MODFLOW-USG
lakeex2a — MF6 SFR 22-reach chain coupled to LAK via MVR
lakeex2a — MF6 SFR 22-reach chain coupled to LAK via MVR · MODFLOW 6
TWRI
TWRI · MODFLOW 6
Advanced Tidal
Advanced Tidal · MODFLOW 6
BCF2 Steady-State
BCF2 Steady-State · MODFLOW 6
MF6 Tutorial 01
MF6 Tutorial 01 · MODFLOW 6
Flow and Head Boundary Replication
Flow and Head Boundary Replication · MODFLOW 6
Capture Fraction Analysis
Capture Fraction Analysis · MODFLOW 6
MODFLOW-NWT Problem 3 High Recharge
MODFLOW-NWT Problem 3 High Recharge · MODFLOW 6
Flow Diversion Newton
Flow Diversion Newton · MODFLOW 6
MODFLOW-NWT Problem 2 Newton
MODFLOW-NWT Problem 2 Newton · MODFLOW 6
Zaidel Drainage Problem
Zaidel Drainage Problem · MODFLOW 6
Horizontal Anisotropy Reference
Horizontal Anisotropy Reference · MODFLOW 6
Whirl Flow
Whirl Flow · MODFLOW 6
FloPy Structured Grid Demo
FloPy Structured Grid Demo · MODFLOW 6
FloPy Budget Example
FloPy Budget Example · MODFLOW 6
FloPy Formhead
FloPy Formhead · MODFLOW 6
FloPy Time Demo
FloPy Time Demo · MODFLOW 6
FloPy Splitter Model
FloPy Splitter Model · MODFLOW 6
Freyberg USG with Outputs
Freyberg USG with Outputs · MODFLOW-USG
Freyberg TVM (Time-Varying Materials)
Freyberg TVM (Time-Varying Materials) · MODFLOW-USG
CLN Vertical Wells MFUSG
CLN Vertical Wells MFUSG · MODFLOW-USG
MODFLOW-USG CLN Conduit Well (Example 3a)
MODFLOW-USG CLN Conduit Well (Example 3a) · MODFLOW-USG
MAW MF6 DISV
MAW MF6 DISV · MODFLOW 6
DISV Voronoi Grid
DISV Voronoi Grid · MODFLOW 6
HFB MF6 DISV
HFB MF6 DISV · MODFLOW 6
HFB MFUSG
HFB MFUSG · MODFLOW-USG
HFB Rich MF6
HFB Rich MF6 · MODFLOW 6
HFB Rich MFUSG
HFB Rich MFUSG · MODFLOW-USG

The round trip is a strong check on the file layer. It catches a package silently dropped, an array reshaped or a stress period lost. It is not a claim that GWlink reproduces every published figure to the last decimal, and it says nothing about whether your own model is a good model. Details in docs/validation.md.

Examples

Four GWlink workspaces under examples/, ready to open on your first session. Each holds the project, the model GWlink wrote, the run where it fits, and the published deck it was imported from. Freyberg USG with 25 stress periods, a DISV Voronoi grid, TWRI, and an SFR chain coupled to lakes. Each one is public domain or GWLab's own, and each is part of the validation suite above.

Reporting a problem

Open an issue. The HELP stage inside the app also has a Report a problem link that opens an email with the version and build already filled in.

Links

GWlink is developed by GWLab in Santiago, Chile.

About

GWlink, desktop app for MODFLOW 6 and MODFLOW-USG groundwater models. GUI, Python script, notebook and AI agent over one model.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors