Validation#

Each check below is a test of tests/validation/. It compares a computation with a reference that HydroModPy did not produce: a closed-form solution, a published MODFLOW 6 example, a manufactured solution, or a parameter that a calibration must find again.

For every check the page gives the reference and its equations, the threshold with the size of the signal it is read against, the value the last recorded run measured, the outcome, and the date and commit of that run. A skipped test is shown as skipped: it proves nothing. Where a threshold lets a known discrepancy through, the case says so in a warning box at its top.

The measures come from a results snapshot committed next to this page, docs/source/theory/validation_results.json. When the site is deployed, the results the nightly jobs uploaded for the branch, if any, replace older ones. Each case gives the date and commit of the run its numbers come from. “When the checks run” below lists the jobs, read from the workflow files, and the checks that no job runs.

57 test files, 94 test functions, 38 benchmark cases. The results snapshot holds 342 test results from 6 runs (2026-10-13 to 2026-11-30): 342 pass.

When the checks run#

Read from .github/workflows/. A job runs a file when one of its paths holds it and its marker expression accepts the markers of the file. A test marked petsc is skipped where petsc4py is not installed. The nightly jobs upload what they measured. The deployed page lays the latest nightly results of its branch over the snapshot committed with the documentation.

JobWhenSelectspetsc4py
Nightly / validation PETSc
ci-nightly-petsc.yml
every day at 05:30 UTC on main, devtests/validation/ with -m "petsc"yes
Nightly / validation no PETSc
ci-nightly.yml
every day at 05:00 UTC on main, devtests/validation/ with -m "not petsc"no
Weekly / Cross Platform
ci-weekly.yml
every Sunday at 05:00 UTCtests/validation/analytical/ with -m "not petsc"no
Weekly / Windows server path and two processes
ci-weekly.yml
every Sunday at 05:00 UTCtests/ with -m "windows"no
Tests / fast marker
main-ci.yml
on every push to main, dev; on every pull requesttests with -m "fast and not whitebox"no
Tests / fast marker
main-ci.yml
on every push to main, dev; on every pull requesttests with -m "fast and whitebox"no
Solver / PETSc smoke Linux
petsc-smoke.yml
every Monday at 04:17 UTC; on every push to main, dev that touches listed paths; on every pull request that touches listed pathstests/unit/solver/boussinesq/test_catalog.py tests/unit/validation/test_dupuit_fixed_head_petsc_alias.py tests/validation/analytical/steady/test_dupuit_fixed_head_petsc_1d.py tests/validation/numerical/transient/test_boussinesq_drying_petsc.py tests/validation/numerical/transient/test_boussinesq_hillslope_recharge_pulse_overflow_petsc.pyyes

Case by solver#

Each cell shows how close a solver gets to the known reference of a case, in the last recorded run. It is the distance to the reference as a share of a scale of the case, so that cases and solvers can be compared: for the closed-form head and discharge cases, the head-profile RMSE (else the first error in the unit of the scale) over the head range of the reference, its largest drawdown, its initial discharge, the travel of its front or the peak recharge, whichever the case names; for transport, particle tracking and calibration twins, the largest relative error the test records; for grid convergence and manufactured solutions, |p - p0|, the distance of the observed order from the expected one (under 0.1, under 0.2, above). Four classes, from the best to a warning: under 0.1 %, 0.1 to 1 %, 1 to 5 %, 5 % and over. A red cross means the test failed: the error went beyond its threshold. ▲ means the error grew by more than 20 % since the previous recorded run of that test, ▼ that it fell by as much. pass is a check that records no distance to a reference: the asserts of the test decide. Hover a cell for the metric, its value, its threshold, the share of the threshold it used and, when two solvers share the row, how many times the best solver's error it is. The thresholds and their shares stay in the section of each case. skipped and not measured prove nothing. n/a means the solver cannot run that test: the reason shows on hover and in the section of the case. A blank cell no longer exists: a solver column is a result, not measured, n/a or, while its declaration is missing, undeclared. gap marks a known discrepancy that the threshold lets through; the section of the case explains it. other gathers the solvers outside these columns and the tests that name none. The columns are modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq and boussinesq_local.

CaseNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq defaultother
Closed-form solutions, steady state
Steady Boussinesq circular-island piecewise-K case1.1 %1.1 %2.2 %4.6 % gap0.92 %0.92 %-
Steady Boussinesq divide piecewise-K case0.41 %0.39 %0.58 %0.86 % gap< 0.01 %< 0.01 %-
Steady Boussinesq fixed-head piecewise-K case0.071 %0.070 %0.085 %0.38 % gap< 0.01 %< 0.01 %-
Steady Boussinesq hillslope-interception benchmark0.25 %0.25 %0.076 %0.15 %0.25 %0.27 %-
Steady sloping-substratum constant-thickness case< 0.01 %< 0.01 %< 0.01 %0.14 % gap< 0.01 %< 0.01 %-
Steady sloping-substratum fixed-head case0.15 %0.15 %0.16 %0.16 %< 0.01 %< 0.01 %-
Steady sloping-substratum uniform-recharge case0.19 %0.19 %0.21 %0.19 %< 0.01 %< 0.01 %-
Steady Boussinesq recharge piecewise-K case0.37 %0.35 %0.67 %0.96 % gap0.023 %0.023 %-
Steady circular-island 2D case using the ocean boundary condition1.8 %1.8 %3.1 %2.2 % gap0.82 %0.82 %-
Steady Dupuit 1D case with west-side divide and east-side river0.36 %0.33 %0.38 %0.23 %< 0.01 %< 0.01 %-
Steady Dupuit fixed-head case against its analytical profile0.11 %0.11 %0.13 %0.15 %< 0.01 %< 0.01 %-
PETSc Boussinesq variants on the steady Dupuit fixed-head casen/an/an/an/a< 0.01 %n/a-
Steady Dupuit seepage limit and its invariance in K/R0.15 %0.15 %0.085 %0.15 %< 0.01 %< 0.01 %pass
Steady Dupuit 1D case with uniform recharge0.56 %0.54 %0.65 %0.36 %< 0.01 %< 0.01 %-
Grid convergence of the steady Dupuit fixed-head case on the production path|p - p0| 0.011|p - p0| 0.011|p - p0| 0.027|p - p0| 0.031|p - p0| 0.071|p - p0| 0.071-
Rotated horizontal K tensor: uniform flow along a confined strip, plan viewn/a< 0.01 %n/an/an/an/a-
Tilted K tensor: uniform flow along a confined layered sectionn/a< 0.01 %n/an/an/an/a-
Steady linearized unconfined drainage case< 0.01 %0.031 %0.069 %0.022 %< 0.01 %n/a-
Steady linearized unconfined hillslope-drainage case< 0.01 %< 0.01 %0.012 %0.011 %< 0.01 %n/a-
Closed-form solutions, transient
A 50 mm pulse through the soil reservoir, driven end to end by the orchestratorn/an/an/an/an/an/apass
Transient Boussinesq hillslope recharge-step interception case< 0.01 %< 0.01 %14 %17 %17 %19 %-
Thin-aquifer Brutsaert recession benchmark4.0 %4.0 %2.3 %2.0 %0.23 %0.23 %-
Deep-aquifer Brutsaert recession benchmark0.57 %0.61 %0.32 %2.0 % gap0.54 %0.54 %-
Check the Brutsaert recession laws against a fine Dupuit solution of the same stripn/an/an/an/an/an/apass
MODFLOW 6 GWT first-order decay against its closed formn/a0.27 %n/an/an/an/a-
Growth of a groundwater mound under a rectangle of recharge against Hantush (1967)0.21 %0.21 %0.19 %0.26 %0.14 %0.18 %-
Transient unconfined pumping case against a late-time radial reference0.51 %0.51 %0.51 %1.1 %0.33 %0.56 %-
Propagation of a tide into an unconfined strip against the Ferris solution1.1 %1.1 %1.1 %1.4 %0.72 %1.1 %-
Linearized unconfined transient cases against their analytical references4.2 %4.6 %4.6 %4.6 %1.4 %4.6 %-
MODFLOW 6 PRT particle paths in a uniform velocity fieldn/a< 0.01 %0.025 %< 0.01 %n/an/a-
Stream depletion of a well pumping beside a stream held at a fixed head0.50 %0.50 %0.78 %0.39 %0.87 %0.87 %-
Time steps inside a stress period against a closed-form step responsepasspassn/an/apasspasspass
The linear reservoir against the RK4 reference, played oncen/an/an/an/an/an/anot measured
MODFLOW 6 alone against a closed form
Hantush-Jacob (1955) leaky-aquifer benchmark against MODFLOW 6 and MODFLOW-NWT0.81 %0.81 %0.61 %1.3 %n/an/a-
Ogata-Banks (1961) 1D advection-dispersion benchmark against MODFLOW 6 GWTn/a2.2 %2.7 %2.5 %n/an/a-
Theis (1935) transient confined pumping benchmark against MODFLOW 6 and MODFLOW-NWT0.44 %0.44 %0.66 %2.1 %n/an/a-
Published numerical references, steady state
LAK ex-gwf-lak-p01 validation (Merritt & Konikow 2000, test 1)n/apassn/an/an/an/a-
Patch test: a uniform flow on skewed trianglesn/an/apass gappasspass gappass gap-
Published numerical references, transient
Lower-obstacle drying behavior in the PETSc complementarity runtimen/an/an/an/apassn/a-
Surface threshold activation on the transient hillslope overflow casen/an/an/an/apasspass-
LAK grid-equivalence validation (regular quad vs triangle and Voronoi DISV)n/apasspasspassn/an/a-
Transient multi-layer LAK validation (Plainfield Lakes abacus)n/apassn/an/an/an/a-
SFR + LAK + MVR validation against ex-gwf-lak-p02 (Merritt & Konikow 2000)n/apassn/an/an/an/a-
Manufactured solutions
1D diffusion transient with exp(-pi^2 D t) sin(pi x)n/an/an/an/an/an/a|p - p0| 0.018
1D Laplacian steady-state with manufactured sin(pi x) solutionn/an/an/an/an/an/a|p - p0| 0.0019
Calibration finds a known truth
Calibration of T and S on a 1D transient confined aquifern/an/an/an/an/an/apass
Calibration of a Brutsaert-Nieber recession lawn/an/an/an/an/an/apass
Calibration of one and two lumped reservoirsn/an/an/an/an/an/apass
Validation of zoned K recovery by calibration methods on a steady twin, per solver< 0.01 %< 0.01 %< 0.01 %< 0.01 %< 0.01 %< 0.01 %-
Validation of scalar K recovery under a mesh mismatch, per solverpasspasspasspasspasspass-
Steady same-solver twin benchmark for calibrationn/apassn/an/an/an/a-
Noisy steady scalar-K twin calibration on MODFLOW 6n/apassn/an/an/an/a-
Posterior-oriented steady scalar-K calibration on MODFLOW 6n/apassn/an/an/an/a-
Wiring smoke test of six calibration methods on a flux-only K+Sy twin, per solverpasspasspasspasspasspass-
Validation of K and Sy recovery by calibration methods on a transient twin, per solver< 0.01 %< 0.01 %< 0.01 %< 0.01 %< 0.01 %< 0.01 %-
Twin experiment for the heads rule of the stream-network criterion0.45 %0.45 %n/a0.45 %n/an/apass
Twin experiment for the stream-network criterion of Abherve et al. (2023)0.45 %0.45 %0.45 %0.53 %n/an/a-

Closed-form solutions, steady state#

Steady Boussinesq circular-island piecewise-K case#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localmodflow6_voronoi_generated

Known gap: modflow6_voronoi

Known gap. MODFLOW 6 on the Voronoi dual sits 0.12 to 0.17 m below the reference inside 120 m (radial RMSE 0.12 m). Two errors add up there. The K zone boundaries (70 m and 140 m) pass through node rings, so those cells straddle two zones and take an area-weighted K: without Newton the same input files give 0.076 m, the heads 0.08 to 0.11 m too low inside 120 m and 0.05 m too high on the 140 m ring. Under Newton, the saturation of the upstream cell lowers them further, first order on rings 10 to 30 m apart. Until 2026-10-12 the top was the DEM, and the full-thickness weighting of the Newton conductance raised the heads, which offset the straddled zones: 0.056 m. MODFLOW 6 now reads a computational top that gives every cell the same thickness, and that offset is gone.

Compared with: steady radial Boussinesq solution with concentric piecewise K.

\[\frac{1}{r}\frac{\mathrm{d}}{\mathrm{d}r}\left(r\,K(r)\,H\,\frac{\mathrm{d}H}{\mathrm{d}r}\right)+R=0\]
\[U=H^2,\qquad U(r)=U(a)+R\int_r^a \frac{s}{K(s)}\,\mathrm{d}s\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Radial head-profile RMSE0.0284 m< 0.35 m1.1% / 13.9%
Radial head-profile max abs error0.0545 m< 0.7 m2.2% / 27.9%
Azimuthal spread0.0816 m< 0.35 m3.3% / 13.9%
Minimum land freeboard0.91 m>= 0.1 m36.2% / 4.0%
modflow6
pass
Radial head-profile RMSE0.0282 m< 0.057 m1.1% / 2.3%
Radial head-profile max abs error0.0546 m< 0.11 m2.2% / 4.4%
Azimuthal spread0.0817 m< 0.17 m3.3% / 6.8%
Minimum land freeboard0.91 m>= 0.45 m36.2% / 17.9%
modflow6_irregular_tri
pass
Radial head-profile RMSE0.0541 m< 0.35 m2.2% / 13.9%
Radial head-profile max abs error0.118 m< 0.7 m4.7% / 27.9%
Azimuthal spread0.118 m< 0.35 m4.7% / 13.9%
Minimum land freeboard0.922 m>= 0.1 m36.7% / 4.0%
modflow6_voronoi
pass, known gap
Radial head-profile RMSE0.12 m< 0.133 m4.6% / 5.1%
Radial head-profile max abs error0.173 m< 0.19 m6.6% / 7.2%
Azimuthal spread5.23e-05 m< 0.00011 m0.0% / 0.0%
Minimum land freeboard1.99 m>= 1.78 m75.5% / 67.7%
boussinesq
pass
Radial head-profile RMSE0.0236 m< 0.048 m0.9% / 1.9%
Radial head-profile max abs error0.0313 m< 0.063 m1.2% / 2.5%
Azimuthal spread0.0436 m< 0.088 m1.7% / 3.4%
Minimum land freeboard1.96 m>= 0.98 m76.4% / 38.2%
boussinesq_local
pass
Radial head-profile RMSE0.0236 m< 0.048 m0.9% / 1.9%
Radial head-profile max abs error0.0313 m< 0.063 m1.2% / 2.5%
Azimuthal spread0.0436 m< 0.088 m1.7% / 3.4%
Minimum land freeboard1.96 m>= 0.98 m76.4% / 38.2%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 2.51 to 2.63 m.

0184radius (m)0.3382.85m+0.12-0.12minus the reference
Head profile, head
referenceNWTMF6MF6 triangles
0190radius (m)0.2192.85m+0.17-0.17minus the reference
Head profile, head
referenceMF6 Voronoi
5.05187radius (m)0.282.88m+0.031-0.031minus the reference
Head profile, head
referenceBoussinesqBoussinesq default
Plan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultPlan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of boussinesq: Twice the error measured with PETSc (SNESVI obstacle) on the triangles themselves, the reference at each centroid: radial RMSE 0.024 m, max error 0.031 m, spread of the error in a 10 m bin 0.044 m, and half the measured freeboard of 1.96 m. PETSc and the default engine agree to 1e-3 m. The mesh has near-equilateral triangles of 10 m with a node ring on each K break (70 and 140 m) and on the coast, and one ring of ocean triangles held at the sea level. The ring mesh it replaces (16 sectors cut along one diagonal, half of its ocean triangles capped at the sea floor) read 0.22 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine (scipy_sparse on 3155 cells) on the triangles themselves, the reference at each centroid: radial RMSE 0.024 m, max error 0.031 m, spread of the error in a 10 m bin 0.044 m, and half the measured freeboard of 1.96 m. PETSc and the default engine agree to 1e-3 m. The mesh has near-equilateral triangles of 10 m with a node ring on each K break (70 and 140 m) and on the coast, and one ring of ocean triangles held at the sea level. The ring mesh it replaces (16 sectors cut along one diagonal, half of its ocean triangles capped at the sea floor) read 0.22 m.
  • Thresholds of modflow6: Twice the error measured on the 10 m grid: radial RMSE 0.0282 m, max error 0.0546 m, spread 0.0817 m, and half the measured freeboard of 0.910 m. MODFLOW 6 reads a computational top that gives every cell of the layer the same thickness, so its Newton conductance is the one of MODFLOW-NWT, and the two sit at the same distance from the reference (NWT 0.0284 m). What is left is the error of the grid. On a 5 m grid the RMSE falls to 0.0166 m and the max error to 0.0349 m, for MF6 and NWT alike; the spread stays at 0.083 m and the freeboard drops to 0.755 m. Until 2026-10-12 the top was the DEM and the RMSE 0.111 m.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: radial RMSE 0.1205 m, max error 0.173 m, freeboard 1.99 m. Twice the azimuthal spread of 5.2e-5 m: every cell of the coast ring holds the sea level, so the rings are symmetric. The run reads a 1 m raster whose shoreline lies 1 m inside the coast ring (config_modflow6_voronoi.toml). The profile is read on the node rings (5 m bins). The freeboard is read on the land surface the run was given, at the 196 m ring. This case cannot see the DEM-top bias come back, since that bias lowered its error; the Cartesian islands and tests/integration/test_the_computational_top_changes_only_the_mf6_grid.py do. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: radial_profile.azimuthal_spread 1.1e-4 (measure 4e-6, the head closure is 1e-4 m, and the measure read 5.2e-5 on 2026-10-14 on the same mesh).
  • Thresholds of modflow6_voronoi_generated: Twice the measurement: radial RMSE 0.0614 m, max error 0.0999 m, azimuthal spread 0.0626 m, and half the freeboard of 0.2816 m. The engine generates a Voronoi mesh of 3 721 cells over the square of the 10 m raster and puts a face on each K ring (70 m and 140 m, mirror pairs), so no cell straddles two zones: the 0.12 m of the dual of a triangulation (config_modflow6_voronoi.toml), where the rings pass through cells, drops to 0.06 m. What is left is the saturation error of the upstream cell under Newton. The spread is the error of a mesh without the symmetry of the node rings; the freeboard is lower than the structured grid's 0.91 m because a generated cell can sit a few decimeters above the coast. Measured 2026-10-14. B9 of the unified mesh, measured again on 2026-10-26. Already at twice the measure: radial_profile.azimuthal_spread 0.126 (measure 0.0626); radial_profile.rmse 0.123 (measure 0.0614); radial_profile.max_abs_error 0.2 (measure 0.0999).
  • Radial head-profile RMSE: modflow_nwt allows 0.35, 7 times the 0.048 of boussinesq. No reason is written for this difference.
  • Radial head-profile RMSE: modflow6_irregular_tri allows 0.35, 7 times the 0.048 of boussinesq. No reason is written for this difference.
  • Radial head-profile max abs error: modflow_nwt allows 0.7, 11 times the 0.063 of boussinesq. No reason is written for this difference.
  • Radial head-profile max abs error: modflow6_irregular_tri allows 0.7, 11 times the 0.063 of boussinesq. No reason is written for this difference.
  • Azimuthal spread: modflow_nwt allows 0.35, 3182 times the 0.00011 of modflow6_voronoi. No reason is written for this difference.
  • Azimuthal spread: modflow6_irregular_tri allows 0.35, 3182 times the 0.00011 of modflow6_voronoi. No reason is written for this difference.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local, modflow6_voronoi_generated: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localmodflow6_voronoi_generated
Radial head-profile RMSE (m) <0.350.0570.350.1330.0480.0480.123
Radial head-profile max abs error (m) <0.70.110.70.190.0630.0630.2
Azimuthal spread (m) <0.350.170.350.000110.0880.0880.126

From validation_cases/analytical/steady/boussinesq_circular_island_piecewise_k_2d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml, modflow6_voronoi_generated reads tolerances_modflow6_voronoi_generated.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_circular_island_piecewise_k_2d.run_case

Test functions

  • Boussinesq circular island piecewise k 2d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_circular_island_piecewise_k_2d.py. Markers: analytical, fast, steady, validation.

Steady Boussinesq divide piecewise-K case#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap, only partly the K break. The west zone sits 0.026 m below the reference, 0.016 m on the triangle strip. Control on a lattice strip of 3 node rows and 16 m columns: with the breaks on cell edges RMSE 1.34e-2 m, max 1.73e-2 m; with the breaks through the cell nodes RMSE 3.15e-2 m, max 5.03e-2 m. The blending of K on straddling cells is the part that the edge alignment removes. The 1.3e-2 m left on aligned edges is a discretization error of the strip, shared with the triangle grid (RMSE 1.2e-2 m).

Compared with: steady 1D Boussinesq profile with west divide, east fixed head, and piecewise K.

\[U=h^2,\qquad \frac{\mathrm{d}}{\mathrm{d}x}\left(K(x)\,\frac{\mathrm{d}U}{\mathrm{d}x}\right)+2R=0\]
\[\frac{\mathrm{d}U}{\mathrm{d}x}(0)=0,\qquad U(L)=h_e^2,\qquad U(x)=h_e^2+2R\int_x^L \frac{s\,\mathrm{d}s}{K(s)}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00833 m< 0.017 m0.4% / 0.8%
Head-profile max abs error0.0107 m< 0.022 m0.5% / 1.1%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00788 m< 0.017 m0.4% / 0.8%
Head-profile max abs error0.0102 m< 0.022 m0.5% / 1.1%
Cross-row head spread3.11e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.012 m< 0.024 m0.6% / 1.2%
Head-profile max abs error0.0171 m< 0.035 m0.8% / 1.7%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass, known gap
Head-profile RMSE0.0175 m< 0.0193 m0.9% / 0.9%
Head-profile max abs error0.0279 m< 0.0307 m1.4% / 1.5%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE6.75e-05 m< 0.00014 m0.0% / 0.0%
Head-profile max abs error0.000109 m< 0.00022 m0.0% / 0.0%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE6.75e-05 m< 0.00014 m0.0% / 0.0%
Head-profile max abs error0.000109 m< 0.00022 m0.0% / 0.0%
Cross-row head spread0 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 2.04 to 2.05 m.

5395x (m)57.08m+0.028-0.028minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 8.3e-3 m, max error 1.1e-2 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 6.7e-05 m, max error 0.00011 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The run goes through the launcher. Before 2026-10-09 the strip had one diagonal everywhere and read a RMSE of 9.4e-2 m. The launcher stores one profile per column and the loader tiles it: the row spread is zero by construction. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 6.7e-05 m, max error 0.00011 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The run goes through the launcher. Before 2026-10-09 the strip had one diagonal everywhere and read a RMSE of 9.4e-2 m. The launcher stores one profile per column and the loader tiles it: the row spread is zero by construction. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 1.2e-2 m, max error 1.7e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: RMSE 1.75e-2 m, max error 2.79e-2 m, at x = 115 m. The gap below explains why the margin is not 2x. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The west divide is a no-flow face, which the nodes of the face sit on. The row spread is the float noise of the area-weighted mean. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0170.0170.0240.01930.000140.00014
Head-profile max abs error (m) <0.0220.0220.0350.03070.000220.00022
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_divide_fixed_head_piecewise_k_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_divide_fixed_head_piecewise_k_1d.run_case

Test functions

  • Boussinesq divide fixed head piecewise k 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_divide_fixed_head_piecewise_k_1d.py. Markers: analytical, fast, steady, validation.

Steady Boussinesq fixed-head piecewise-K case#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap. A Voronoi cell that straddles a K break takes the area-weighted arithmetic K of its two zones, while the reference jumps sharply, so the error peaks at the breaks (+0.046 m at x = 285 m, -0.021 m at x = 115 m). Control on a lattice strip of 3 node rows and 16 m columns: with the breaks on cell edges (120 m and 280 m are edges) RMSE 5.6e-3 m, max 9.4e-3 m; with the breaks through the cell nodes (columns shifted by 8 m) RMSE 1.70e-2 m, max 5.17e-2 m, close to the irregular strip (1.87e-2 m, 4.59e-2 m). The triangle strip assigns K by centroid and does not blend.

Compared with: steady 1D Boussinesq profile with piecewise-constant K.

\[U=h^2,\qquad \frac{\mathrm{d}}{\mathrm{d}x}\left(K(x)\,\frac{\mathrm{d}U}{\mathrm{d}x}\right)=0\]
\[U(x)=h_w^2+\left(h_e^2-h_w^2\right)\frac{\int_{x_{\min}}^{x}\frac{\mathrm{d}s}{K(s)}}{\int_{x_{\min}}^{x_{\max}}\frac{\mathrm{d}s}{K(s)}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00353 m< 0.0075 m0.1% / 0.1%
Head-profile max abs error0.00603 m< 0.013 m0.1% / 0.3%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00349 m< 0.0075 m0.1% / 0.1%
Head-profile max abs error0.00596 m< 0.013 m0.1% / 0.3%
Cross-row head spread1.03e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.00422 m< 0.0085 m0.1% / 0.2%
Head-profile max abs error0.0119 m< 0.024 m0.2% / 0.5%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass, known gap
Head-profile RMSE0.0187 m< 0.021 m0.4% / 0.4%
Head-profile max abs error0.0459 m< 0.051 m0.9% / 1.0%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE4.88e-05 m< 9.8e-05 m0.0% / 0.0%
Head-profile max abs error0.000109 m< 0.00022 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE4.88e-05 m< 9.8e-05 m0.0% / 0.0%
Head-profile max abs error0.000109 m< 0.00022 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 4.94 to 5 m.

5395x (m)510m+0.046-0.046minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 3.5e-3 m, max error 6.0e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.9e-05 m, max error 0.00011 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The K zones change on column faces. Before 2026-10-09 this strip had one diagonal everywhere: the x conductance came out about 7 % low, which a fixed-head profile hides but a recharge mound shows (5 to 7 cm). The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.9e-05 m, max error 0.00011 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The K zones change on column faces. Before 2026-10-09 this strip had one diagonal everywhere: the x conductance came out about 7 % low, which a fixed-head profile hides but a recharge mound shows (5 to 7 cm). The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 4.2e-3 m, max error 1.2e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: RMSE 1.87e-2 m, max error 4.59e-2 m, at x = 285 m. The gap below explains why the margin is not 2x. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is the float noise of the area-weighted mean. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.00750.00750.00850.0219.8e-059.8e-05
Head-profile max abs error (m) <0.0130.0130.0240.0510.000220.00022
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_fixed_head_piecewise_k_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_fixed_head_piecewise_k_1d.run_case

Test functions

  • Boussinesq fixed head piecewise k 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_fixed_head_piecewise_k_1d.py. Markers: analytical, fast, steady, validation.

Steady Boussinesq hillslope-interception benchmark#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: the exact steady free-boundary solution under Dupuit. Below the emergence point x_e the head is the land surface and seeps out; above it all the recharge flows through the aquifer and the water table meets the surface tangentially at x_e (322.4 m here).

\[R\left(x_e-x_{\min}\right)=K\,S\left(z_{\mathrm{top}}(x_e)-z_b\right),\qquad z_{\mathrm{top}}(x)=z_{\mathrm{toe}}+S\left(L-x\right)\]
\[\left(h-z_b\right)^2=\left(z_{\mathrm{top}}(x_e)-z_b\right)^2+\frac{R}{K}\left[\left(x_e-x_{\min}\right)^2-\left(x-x_{\min}\right)^2\right]\quad (x<x_e),\qquad h=z_{\mathrm{top}}\quad (x\ge x_e)\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00655 m< 0.013 m0.2% / 0.5%
Head-profile max abs error0.00856 m< 0.017 m0.3% / 0.6%
Interception x error3.4 m< 6.8 m127.6% / 255.3%
Maximum positive clearance above topography0.000388 m< 0.00078 m0.0% / 0.0%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00655 m< 0.013 m0.2% / 0.5%
Head-profile max abs error0.00855 m< 0.017 m0.3% / 0.6%
Interception x error3.4 m< 6.8 m127.6% / 255.3%
Maximum positive clearance above topography0.000388 m< 0.00078 m0.0% / 0.0%
Cross-row head spread2.29e-09 m< 5e-09 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.00201 m< 0.0041 m0.1% / 0.2%
Head-profile max abs error0.00298 m< 0.006 m0.1% / 0.2%
Interception x error3.4 m< 6.8 m128.0% / 256.1%
Maximum positive clearance above topography0.000407 m< 0.00082 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.00403 m< 0.0081 m0.2% / 0.3%
Head-profile max abs error0.00525 m< 0.0105 m0.2% / 0.4%
Interception x error3.4 m< 6.8 m127.6% / 255.2%
Maximum positive clearance above topography0.00236 m< 0.0048 m0.1% / 0.2%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE0.00655 m< 0.013 m0.2% / 0.5%
Head-profile max abs error0.0375 m< 0.075 m1.4% / 2.8%
Interception x error3.4 m< 8.4 m127.6% / 315.3%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE0.00708 m< 0.014 m0.3% / 0.5%
Head-profile max abs error0.0375 m< 0.076 m1.4% / 2.9%
Interception x error3.4 m< 8.4 m127.6% / 315.3%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread1.95e-07 m< 4e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 2.66 to 2.66 m.

5395x (m)5.027.73m+0.038-0.038minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of boussinesq: PETSc VI, the boussinesq variant, against the exact seepage-face solution, started from the outlet head over the whole hillslope. SNESVI converges in 31 iterations (residual 9.8e-11 m3/s). Head profile: RMSE 0.0066 m, max 0.0375 m in the column that holds the tangent point x_e = 322.4 m, the dry zone within 2e-5 m; bounds twice the measurement. The contact point is read on 10 m columns with a 5 cm tolerance, as on the reference (281.6 m): measured 3.4 m off, the bound sits half a column above and fails on the next column. The head may not exceed the land surface by more than the solver closure (1e-6 m). Row spread: 9e-16 m measured, bound 1e-8 m. Until 2026-10-09 the reference ignored the seepage face and the solve started from that reference and stopped at 20 iterations.
  • Thresholds of boussinesq_local: The default local engine, regularized partition closure, against the exact seepage-face solution, started from the outlet head over the whole hillslope, with the Newton closure of config_boussinesq_local.toml (1e-8 m3/s): 12 iterations. Head profile: RMSE 0.0071 m, max 0.0375 m in the column that holds the tangent point, as PETSc; the dry heads sit 0.003 m low, the partition releasing a little water where the water table is within a few of its 0.05 m depth scale of the surface. Bounds twice the measurement. The contact point, read on 10 m columns with a 5 cm tolerance as on the reference, is 3.4 m off: the bound sits half a column above. Row spread 1.9e-7 m, bound twice that. The head may not exceed the land surface by more than 1e-6 m. Until 2026-10-10 the release scaled with the saturated share of the cell: RMSE 0.0105 m, dry heads 0.009 m low.
  • Thresholds of modflow6: MODFLOW 6, 40 x 3 cells of 10 m, the land surface a DRN of conductance K * area / b with b = 1 m, against the exact seepage-face solution; same model, same numbers as MODFLOW-NWT. Head profile: RMSE 6.6e-3 m, max 8.6e-3 m; bounds twice the measurement. The dry heads sit 8.5e-3 m low, the error of placing the free boundary on a 10 m cell (first order in the cell, as for NWT). The contact point, read on 10 m columns with a 5 cm tolerance (281.6 m), is 3.4 m off: bound twice that. The DRN lets the head stand above the surface by (R + K S^2) b / K = 3.9e-4 m (measured 3.9e-4 m): bound twice the measure. Row spread 2.3e-9 m measured (the IMS closes at 1e-9 m), bound 5e-9 m.
  • Thresholds of modflow6_irregular_tri: MODFLOW 6 on 586 irregular triangles of about 6 m (DISV), the land surface a DRN of conductance K * area / b with b = 1 m, so the leakance K / b is the same on every triangle. The surface comes from a 2.5 m raster, so no flat strip lies along the east face (on a 10 m raster the last 10 m column stood 4.1e-3 m above the reference, its end cells 8.6e-3 m above the surface). The east head, 5.0214 m, is the surface at the mean centroid of the two boundary triangles. The reference is evaluated at each centroid and averaged over the same 10 m bins as the model. Head profile: RMSE 2.0e-3 m, max 3.0e-3 m, dry heads 2.6e-3 to 3.0e-3 m low (the free boundary is placed to the cell); bounds twice the measurement. The contact point (281.6 m, 5 cm tolerance, 10 m bins) is 3.4 m off: bound twice that. Head above the surface (R + K S^2) b / K = 3.9e-4 m, measured 4.1e-4 m: bound twice the measure. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: MODFLOW 6 on the 315-node Voronoi dual of the same triangles, one cell per node, the land surface a DRN of conductance K * area / b with b = 1 m. The surface is sampled at the nodes from a 2.5 m raster, and the east head, 5.015625 m, is the surface on the three nodes at x = 400 m. Each cell is read at its node, and the profile is the area-weighted mean per 10 m column for the model and the reference alike. Head profile: RMSE 4.0e-3 m, max 5.2e-3 m, dry heads 5.2e-3 m low; bounds twice the measurement. The contact point (281.6 m) is 3.4 m off: bound twice that. The head stands above the surface by 4e-4 m on the seepage face, and by 2.4e-3 m in the last column, where the three held nodes take the whole outflow: the node 3.4 m from the face stands 6.1e-3 m above the surface, the nodes 7 m away 1.5e-3 to 2e-3 m. Bound twice the largest. The row spread is zero by construction. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: profile.rmse 0.0081 to 0.00806 (measure 0.00403); contact.max_positive_clearance_m 0.0048 to 0.00473 (measure 0.00236). Already at twice the measure: profile.max_abs_error 0.0105 (measure 0.00525); interception.x_error_m 6.8 (measure 3.4). Kept at a numerical floor, where twice the measure guarantees nothing: uniformity.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).
  • Thresholds of modflow_nwt: MODFLOW-NWT, 40 x 3 cells of 10 m, the land surface a DRN of conductance K * area / b with b = 1 m, against the exact seepage-face solution. The surface is sampled at the cell centers and the east head is the surface at the center of the last column (5.0625 m, x = 395 m). Head profile: RMSE 6.6e-3 m, max 8.6e-3 m; bounds twice the measurement. The dry heads sit 8.5e-3 m low at the divide, and the offset fades to zero at the tangent point: the free boundary is placed to the cell, and the error halves with the cell (4.2e-3 m at 5 m, measured). It is not the drain: with b = 0.01 m the dry offset stays 8.7e-3 m. The contact point is read on 10 m columns with a 5 cm tolerance as on the reference (281.6 m): measured 3.4 m off, bound twice that. The DRN lets the head stand above the surface by the head that passes what the face drains, the recharge plus the through flow lost to the slope, (R + K S^2) b / K = 3.9e-4 m (measured 3.9e-4 m, 3.8e-6 m with b = 0.01 m): bound twice the measure. Row spread is zero by construction of the rows; bound 1e-9 m.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0130.0130.00410.008060.0130.014
Head-profile max abs error (m) <0.0170.0170.0060.01050.0750.076
Interception x error (m) <6.86.86.86.88.48.4
Maximum positive clearance above topography (m) <0.000780.000780.000820.004731e-061e-06
Cross-row head spread (m) <1e-095e-091e-091e-091e-084e-07

From validation_cases/analytical/steady/boussinesq_hillslope_interception_1d/: modflow_nwt reads tolerances_modflow_nwt.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_hillslope_interception_1d.run_case

Test functions

  • Boussinesq hillslope interception 1d matches reference position.

File tests/validation/analytical/steady/test_boussinesq_hillslope_interception_1d.py. Markers: analytical, fast, steady, validation.

Steady sloping-substratum constant-thickness case#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap, 17 times the triangle strip (RMSE 4.0e-4 m). The reference is the uniform flow at constant thickness, which a flux error of a few tenths of a percent bends into a thickness drift of 0.03 m over the strip. The flux error comes from the face of the strip. The mesh bundle holds 3 face nodes 25 m apart, so the Voronoi cells of three interior nodes (x = 10.5, 388 and 390 m) own 2.6, 1.0 and 4.5 m of the held face, a no-flow edge there, and only the face nodes hold the head. Controls with the same case: the same nodes on a new Delaunay triangulation, RMSE 7.08e-3 m and max 1.49e-2 m, unchanged; face nodes added every 5 m so that they own the whole face, RMSE 8.4e-4 m and max 1.3e-3 m; a raster of 400 columns instead of 40, which removes the bilinear clamp in the half column at the ends, RMSE 7.05e-3 m and max 1.49e-2 m, unchanged. So the clamp is not the cause.

Compared with: exact steady profile H(x) = z_b(x) + b* with b* = 8 m.

\[H(x)=z_b(x)+b^\ast,\qquad z_b(x)=z_{b,0}+\Delta z_b\left(1-\frac{x-x_{\min}}{L}\right)\]
\[q=-K\,b^\ast\,\frac{\mathrm{d}H}{\mathrm{d}x}=K\,b^\ast\,S_0,\qquad S_0=\frac{z_b(x_{\min})-z_b(x_{\max})}{L}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE2.72e-07 m< 6e-07 m0.0% / 0.0%
Head-profile max abs error4.65e-07 m< 1e-06 m0.0% / 0.0%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE8.26e-05 m< 0.0002 m0.0% / 0.0%
Head-profile max abs error0.000117 m< 0.00025 m0.0% / 0.0%
Cross-row head spread2.93e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.000399 m< 0.0008 m0.0% / 0.0%
Head-profile max abs error0.00245 m< 0.005 m0.0% / 0.1%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass, known gap
Head-profile RMSE0.00708 m< 0.0078 m0.1% / 0.2%
Head-profile max abs error0.0149 m< 0.0165 m0.3% / 0.3%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE4.48e-07 m< 9e-07 m0.0% / 0.0%
Head-profile max abs error6.32e-07 m< 1.3e-06 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE4.48e-07 m< 9e-07 m0.0% / 0.0%
Head-profile max abs error6.32e-07 m< 1.3e-06 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 4.95 to 5 m.

5395x (m)813m+0.015-0.015minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt: Equal end thicknesses carry a uniform flow at constant thickness, which both conductance formulations reproduce exactly on a column grid. What is left is the solver closure. Twice the MODFLOW-NWT measurement with the validation profile (head closure 1e-9 m): RMSE 2.7e-7 m, max error 4.6e-7 m.
  • Thresholds of boussinesq: Equal end thicknesses carry a uniform flow at constant thickness, which the solver reproduces exactly; what is left is the solver closure. Twice the measurement, PETSc and the local engine alike: RMSE 4.5e-07 m, max error 6.3e-07 m. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Equal end thicknesses carry a uniform flow at constant thickness, which the solver reproduces exactly; what is left is the solver closure. Twice the measurement, PETSc and the local engine alike: RMSE 4.5e-07 m, max error 6.3e-07 m. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6: MODFLOW 6 stops at its default head closure of 1e-4 m, and the error of this exact case is that closure. Twice the measurement: RMSE 8.3e-5 m, max error 1.2e-4 m. MODFLOW-NWT closes at 1e-9 m and reads 2.7e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 4.0e-4 m, max error 2.5e-3 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: RMSE 7.08e-3 m, max error 1.49e-2 m, at x = 375 m. The gap below explains why the margin is not 2x. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 1.78e-15, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <6e-070.00020.00080.00789e-079e-07
Head-profile max abs error (m) <1e-060.000250.0050.01651.3e-061.3e-06
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_sloping_substratum_constant_thickness_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_sloping_substratum_constant_thickness_1d.run_case

Test functions

  • Boussinesq sloping substratum constant thickness 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_sloping_substratum_constant_thickness_1d.py. Markers: analytical, fast, steady, validation.

Steady sloping-substratum fixed-head case#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: steady no-recharge Boussinesq relation on b(x) above a linear substratum, solved through its implicit integral law.

\[q=K\,b\left(S_0-\frac{\mathrm{d}b}{\mathrm{d}x}\right),\qquad S_0=-\frac{\mathrm{d}z_b}{\mathrm{d}x}\]
\[x-x_{\min}=\int_{b_w}^{b(x)} \frac{K\,\eta}{K\,\beta\,\eta-q}\,\mathrm{d}\eta,\qquad \beta=S_0,\qquad H(x)=z_b(x)+b(x)\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.0146 m< 0.03 m0.1% / 0.3%
Head-profile max abs error0.0215 m< 0.043 m0.2% / 0.4%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.0145 m< 0.03 m0.1% / 0.3%
Head-profile max abs error0.0214 m< 0.043 m0.2% / 0.4%
Cross-row head spread3.23e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.0157 m< 0.032 m0.2% / 0.3%
Head-profile max abs error0.0236 m< 0.048 m0.2% / 0.5%
Cross-row head spread1.78e-15 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.0154 m< 0.031 m0.2% / 0.3%
Head-profile max abs error0.028 m< 0.056 m0.3% / 0.6%
Cross-row head spread1.78e-15 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE8.47e-05 m< 0.00017 m0.0% / 0.0%
Head-profile max abs error0.000295 m< 0.0006 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE8.47e-05 m< 0.00017 m0.0% / 0.0%
Head-profile max abs error0.000295 m< 0.0006 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 9.84 to 10 m.

5395x (m)515m+0.028-0.028minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 1.5e-2 m, max error 2.1e-2 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 8.5e-05 m, max error 0.0003 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 8.5e-05 m, max error 0.0003 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 1.6e-2 m, max error 2.4e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 1.54e-2 m, max error 2.80e-2 m, against 1.57e-2 m and 2.36e-2 m on the triangle strip. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is the float noise of the area-weighted mean. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.031 to 0.0308 (measure 0.0154). Already at twice the measure: head_profile.max_abs_error 0.056 (measure 0.028). Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 1.78e-15, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.030.030.0320.03080.000170.00017
Head-profile max abs error (m) <0.0430.0430.0480.0560.00060.0006
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_sloping_substratum_fixed_head_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_sloping_substratum_fixed_head_1d.run_case

Test functions

  • Boussinesq sloping substratum fixed head 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_sloping_substratum_fixed_head_1d.py. Markers: analytical, fast, steady, validation.

Steady sloping-substratum uniform-recharge case#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: steady 1D sloping-substratum system dq/dx = R, db/dx = S0 - q / (K b) solved by shooting on the west discharge and RK4 integration of the thickness profile.

\[\frac{\mathrm{d}q}{\mathrm{d}x}=R,\qquad q(x)=q_w+R\left(x-x_{\min}\right)\]
\[\frac{\mathrm{d}b}{\mathrm{d}x}=S_0-\frac{q(x)}{K\,b(x)},\qquad S_0=-\frac{\mathrm{d}z_b}{\mathrm{d}x},\qquad H(x)=z_b(x)+b(x)\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.0194 m< 0.039 m0.2% / 0.4%
Head-profile max abs error0.0286 m< 0.05 m0.3% / 0.5%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.0193 m< 0.039 m0.2% / 0.4%
Head-profile max abs error0.0285 m< 0.05 m0.3% / 0.5%
Cross-row head spread3.36e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.0207 m< 0.042 m0.2% / 0.4%
Head-profile max abs error0.031 m< 0.062 m0.3% / 0.6%
Cross-row head spread1.78e-15 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.0184 m< 0.037 m0.2% / 0.4%
Head-profile max abs error0.0292 m< 0.059 m0.3% / 0.6%
Cross-row head spread1.78e-15 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE0.000117 m< 0.00024 m0.0% / 0.0%
Head-profile max abs error0.000423 m< 0.00085 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE0.000117 m< 0.00024 m0.0% / 0.0%
Head-profile max abs error0.000423 m< 0.00085 m0.0% / 0.0%
Cross-row head spread1.78e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 9.82 to 10 m.

5395x (m)515m+0.031-0.031minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 1.9e-2 m, max error 2.9e-2 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The max error keeps its previous bound of 0.05 m, still 1.75 times the measurement. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 0.00012 m, max error 0.00042 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 0.00012 m, max error 0.00042 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 2.1e-2 m, max error 3.1e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 1.84e-2 m, max error 2.92e-2 m, against 2.07e-2 m and 3.10e-2 m on the triangle strip. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is the float noise of the area-weighted mean. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.037 to 0.0368 (measure 0.0184); head_profile.max_abs_error 0.059 to 0.0585 (measure 0.0292). Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 1.78e-15, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0390.0390.0420.03680.000240.00024
Head-profile max abs error (m) <0.050.050.0620.05850.000850.00085
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_sloping_substratum_uniform_recharge_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_sloping_substratum_uniform_recharge_1d.run_case

Test functions

  • Boussinesq sloping substratum uniform recharge 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_sloping_substratum_uniform_recharge_1d.py. Markers: analytical, fast, steady, validation.

Steady Boussinesq recharge piecewise-K case#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap. A Voronoi cell that straddles a K break takes the area-weighted arithmetic K of its two zones, while the reference jumps sharply, so the error peaks just east of the first break (-0.024 m at x = 135 m). Control on a lattice strip of 3 node rows and 16 m columns: with the breaks on cell edges RMSE 6.6e-3 m, max 9.8e-3 m; with the breaks through the cell nodes RMSE 1.86e-2 m, max 3.33e-2 m.

Compared with: steady 1D Boussinesq profile with uniform recharge and piecewise K.

\[U=h^2,\qquad \frac{\mathrm{d}}{\mathrm{d}x}\left(K(x)\,\frac{\mathrm{d}U}{\mathrm{d}x}\right)+2R=0\]
\[U(x)=h_w^2+C\int_{x_{\min}}^{x}\frac{\mathrm{d}s}{K(s)}-2R\int_{x_{\min}}^{x}\frac{s\,\mathrm{d}s}{K(s)}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00416 m< 0.0085 m0.4% / 0.8%
Head-profile max abs error0.00592 m< 0.012 m0.5% / 1.1%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.004 m< 0.0085 m0.4% / 0.8%
Head-profile max abs error0.00574 m< 0.012 m0.5% / 1.1%
Cross-row head spread3.4e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.00764 m< 0.016 m0.7% / 1.4%
Head-profile max abs error0.0147 m< 0.03 m1.3% / 2.6%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass, known gap
Head-profile RMSE0.0112 m< 0.0124 m1.0% / 1.1%
Head-profile max abs error0.024 m< 0.0265 m2.1% / 2.3%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE0.000262 m< 0.00053 m0.0% / 0.0%
Head-profile max abs error0.000489 m< 0.00098 m0.0% / 0.1%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE0.000262 m< 0.00053 m0.0% / 0.0%
Head-profile max abs error0.000489 m< 0.00098 m0.0% / 0.1%
Cross-row head spread0 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 1.13 to 1.17 m.

5395x (m)56.14m+0.015-0.015minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesBoussinesqBoussinesq default
5395x (m)56.17m+0.024-0.024minus the reference
Head profile, head
referenceMF6 Voronoi

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 4.2e-3 m, max error 5.9e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 0.00026 m, max error 0.00049 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The run goes through the launcher. Before 2026-10-09 the strip had one diagonal everywhere and the recharge mound came out 7 cm too high (RMSE 4.5e-2 m): the x conductance was about 7 % low. The launcher stores one profile per column and the loader tiles it: the row spread is zero by construction. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 0.00026 m, max error 0.00049 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The run goes through the launcher. Before 2026-10-09 the strip had one diagonal everywhere and the recharge mound came out 7 cm too high (RMSE 4.5e-2 m): the x conductance was about 7 % low. The launcher stores one profile per column and the loader tiles it: the row spread is zero by construction. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 7.6e-3 m, max error 1.5e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: RMSE 1.12e-2 m, max error 2.40e-2 m, at x = 135 m. The gap below explains why the margin is not 2x. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is zero by construction: the loader tiles one profile.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.00850.00850.0160.01240.000530.00053
Head-profile max abs error (m) <0.0120.0120.030.02650.000980.00098
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/boussinesq_uniform_recharge_piecewise_k_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.boussinesq_uniform_recharge_piecewise_k_1d.run_case

Test functions

  • Boussinesq uniform recharge piecewise k 1d matches reference profile.

File tests/validation/analytical/steady/test_boussinesq_uniform_recharge_piecewise_k_1d.py. Markers: analytical, fast, steady, validation.

Steady circular-island 2D case using the ocean boundary condition#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap. MODFLOW 6 on the Voronoi dual sits up to 0.08 m below the reference inside 120 m (radial RMSE 0.067 m), where MODFLOW-NWT on the Cartesian grid sits 0.050 m away. MODFLOW 6 reads a computational top that gives every cell the same thickness, so the full-thickness weighting of its Newton conductance is gone. What is left is the saturation of the upstream cell, first order on 625 cells whose node rings are 10 to 30 m apart: without Newton the same input files give 0.003 m, the heads within 4 mm of the reference.

Compared with: steady radial Dupuit-Boussinesq solution with fixed coastal head.

\[\frac{1}{r}\frac{\mathrm{d}}{\mathrm{d}r}\left(r\,K\,H\,\frac{\mathrm{d}H}{\mathrm{d}r}\right)+R=0\]
\[H(r)^2=H(a)^2+\frac{R}{2K}\left(a^2-r^2\right)\]
\[h(r)=z_b+\sqrt{\left(h_{\mathrm{sea}}-z_b\right)^2+\frac{R}{2K}\left(a^2-r^2\right)}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Radial head-profile RMSE0.0496 m< 0.25 m1.8% / 9.0%
Radial head-profile max abs error0.092 m< 0.5 m3.3% / 17.9%
Azimuthal spread0.112 m< 0.25 m4.0% / 9.0%
Minimum land freeboard0.787 m>= 0.1 m28.2% / 3.6%
modflow6
pass
Radial head-profile RMSE0.0499 m< 0.1 m1.8% / 3.6%
Radial head-profile max abs error0.0921 m< 0.19 m3.3% / 6.8%
Azimuthal spread0.112 m< 0.23 m4.0% / 8.2%
Minimum land freeboard0.787 m>= 0.39 m28.2% / 14.0%
modflow6_irregular_tri
pass
Radial head-profile RMSE0.0851 m< 0.25 m3.1% / 9.0%
Radial head-profile max abs error0.169 m< 0.5 m6.1% / 17.9%
Azimuthal spread0.18 m< 0.25 m6.5% / 9.0%
Minimum land freeboard0.707 m>= 0.1 m25.3% / 3.6%
modflow6_voronoi
pass, known gap
Radial head-profile RMSE0.0669 m< 0.074 m2.2% / 2.5%
Radial head-profile max abs error0.0803 m< 0.089 m2.7% / 3.0%
Azimuthal spread9.88e-05 m< 0.0002 m0.0% / 0.0%
Minimum land freeboard1.9 m>= 1.7 m63.1% / 56.5%
boussinesq
pass
Radial head-profile RMSE0.0238 m< 0.048 m0.8% / 1.7%
Radial head-profile max abs error0.0325 m< 0.066 m1.1% / 2.3%
Azimuthal spread0.0547 m< 0.11 m1.9% / 3.8%
Minimum land freeboard1.9 m>= 0.95 m65.9% / 32.9%
boussinesq_local
pass
Radial head-profile RMSE0.0238 m< 0.048 m0.8% / 1.7%
Radial head-profile max abs error0.0325 m< 0.066 m1.1% / 2.3%
Azimuthal spread0.0547 m< 0.11 m1.9% / 3.8%
Minimum land freeboard1.9 m>= 0.95 m65.9% / 32.9%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 2.79 to 3.01 m.

0184radius (m)0.6553.49m+0.17-0.17minus the reference
Head profile, head
referenceNWTMF6MF6 triangles
0190radius (m)0.4243.44m+0.08-0.08minus the reference
Head profile, head
referenceMF6 Voronoi
5.02187radius (m)0.5533.47m+0.033-0.033minus the reference
Head profile, head
referenceBoussinesqBoussinesq default
Plan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultPlan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of boussinesq: Twice the error measured with PETSc (SNESVI obstacle) on the triangles themselves, the reference at each centroid: radial RMSE 0.024 m, max error 0.033 m, spread of the error in a 10 m bin 0.055 m, and half the measured freeboard of 1.90 m. PETSc and the default engine agree to 1e-3 m. The mesh has near-equilateral triangles of 10 m, a node ring on the coast and one ring of ocean triangles held at the sea level. Until 2026-10-09 it was a ring mesh of 18 sectors cut along one diagonal: there the two-point flux sat 0.25 m high with the reference imposed beyond 180 m, and refining that mesh made it worse (+1.1 m at 1476 and 5832 cells), while near-equilateral meshes converge (+0.08, +0.07, +0.02 m at 257, 886, 3147 cells). Half of its ocean triangles were capped at the sea floor (-1 m), a coastal sink that hid most of that bias.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine (scipy_sparse on 3147 cells) on the triangles themselves, the reference at each centroid: radial RMSE 0.024 m, max error 0.033 m, spread of the error in a 10 m bin 0.055 m, and half the measured freeboard of 1.90 m. PETSc and the default engine agree to 1e-3 m. The mesh has near-equilateral triangles of 10 m, a node ring on the coast and one ring of ocean triangles held at the sea level. Until 2026-10-09 it was a ring mesh of 18 sectors cut along one diagonal: there the two-point flux sat 0.25 m high with the reference imposed beyond 180 m, and refining that mesh made it worse (+1.1 m at 1476 and 5832 cells), while near-equilateral meshes converge (+0.08, +0.07, +0.02 m at 257, 886, 3147 cells). Half of its ocean triangles were capped at the sea floor (-1 m), a coastal sink that hid most of that bias.
  • Thresholds of modflow6: Twice the error measured on the 10 m grid: radial RMSE 0.0499 m, max error 0.0921 m, spread 0.112 m, and half the measured freeboard of 0.787 m. MODFLOW 6 reads a computational top that gives every cell of the layer the same thickness, so its Newton conductance is the one of MODFLOW-NWT, and the two sit at the same distance from the reference (NWT 0.0495 m). What is left is the error of the grid. On a 5 m grid the RMSE falls to 0.0349 m and the max error to 0.0606 m, for MF6 and NWT alike; the spread stays at 0.111 m and the freeboard drops to 0.69 m, the first land ring being closer to the coast. Until 2026-10-12 the top was the DEM, the conductance followed the full thickness of the cells, and the RMSE was 0.221 m.
  • Thresholds of modflow6_voronoi: Measured values with a 10 % margin: radial RMSE 0.067 m, max error 0.080 m, freeboard 1.90 m. Twice the azimuthal spread of 9.9e-5 m: every cell of the coast ring holds the sea level, so the rings are symmetric. The run reads a 1 m raster whose shoreline lies 1 m inside the coast ring (config_modflow6_voronoi.toml). The profile is read on the node rings (5 m bins). The freeboard is read on the land surface the run was given, at the 196 m ring. Until 2026-10-12 the top was the DEM and the RMSE 0.102 m. Twice the error would let that bias back unnoticed, hence the 10 % margin. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: radial_profile.azimuthal_spread 2e-4 (measure 4.67e-6, the head closure is 1e-4 m, and the measure read 9.9e-5 on 2026-10-14 on the same mesh).
  • Radial head-profile RMSE: modflow_nwt allows 0.25, 5 times the 0.048 of boussinesq. No reason is written for this difference.
  • Radial head-profile RMSE: modflow6_irregular_tri allows 0.25, 5 times the 0.048 of boussinesq. No reason is written for this difference.
  • Radial head-profile max abs error: modflow_nwt allows 0.5, 8 times the 0.066 of boussinesq. No reason is written for this difference.
  • Radial head-profile max abs error: modflow6_irregular_tri allows 0.5, 8 times the 0.066 of boussinesq. No reason is written for this difference.
  • Azimuthal spread: modflow_nwt allows 0.25, 1250 times the 0.0002 of modflow6_voronoi. No reason is written for this difference.
  • Azimuthal spread: modflow6_irregular_tri allows 0.25, 1250 times the 0.0002 of modflow6_voronoi. No reason is written for this difference.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Radial head-profile RMSE (m) <0.250.10.250.0740.0480.048
Radial head-profile max abs error (m) <0.50.190.50.0890.0660.066
Azimuthal spread (m) <0.250.230.250.00020.110.11

From validation_cases/analytical/steady/dupuit_circular_island_ocean_2d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.dupuit_circular_island_ocean_2d.run_case

Test functions

  • Dupuit circular island ocean 2d matches reference profile.

File tests/validation/analytical/steady/test_dupuit_circular_island_ocean_2d.py. Markers: analytical, fast, steady, validation.

Steady Dupuit 1D case with west-side divide and east-side river#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: steady Dupuit profile with west-side divide and east-side river head.

\[\frac{\mathrm{d}}{\mathrm{d}x}\left(K\,h\,\frac{\mathrm{d}h}{\mathrm{d}x}\right)+R=0,\qquad \frac{\mathrm{d}h}{\mathrm{d}x}(0)=0,\qquad h(L)=h_r\]
\[h(x)^2=h_r^2+\frac{R}{K}\left(L^2-x^2\right)\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00561 m< 0.012 m0.4% / 0.8%
Head-profile max abs error0.00659 m< 0.014 m0.4% / 0.9%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00516 m< 0.012 m0.3% / 0.8%
Head-profile max abs error0.00596 m< 0.014 m0.4% / 0.9%
Cross-row head spread9.3e-07 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.00593 m< 0.012 m0.4% / 0.8%
Head-profile max abs error0.00748 m< 0.015 m0.5% / 1.0%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.00356 m< 0.0072 m0.2% / 0.5%
Head-profile max abs error0.00987 m< 0.02 m0.6% / 1.3%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE3.34e-05 m< 6.7e-05 m0.0% / 0.0%
Head-profile max abs error5.51e-05 m< 0.00012 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE3.34e-05 m< 6.7e-05 m0.0% / 0.0%
Head-profile max abs error5.51e-05 m< 0.00012 m0.0% / 0.0%
Cross-row head spread5.84e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 1.56 to 1.57 m.

5395x (m)56.6m+0.0099-0.0099minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 5.6e-3 m, max error 6.6e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 3.3e-05 m, max error 5.5e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 3.3e-05 m, max error 5.5e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 5.9e-3 m, max error 7.5e-3 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 3.6e-3 m, max error 9.9e-3 m. The west divide is a no-flow face, which the nodes of the face sit on, and the east river head sits on the cells seeded on the east face. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is the float noise of the area-weighted mean. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.0072 to 0.00713 (measure 0.00356); head_profile.max_abs_error 0.02 to 0.0198 (measure 0.00987). Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0120.0120.0120.007136.7e-056.7e-05
Head-profile max abs error (m) <0.0140.0140.0150.01980.000120.00012
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/dupuit_divide_river_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.dupuit_divide_river_1d.run_case

Test functions

  • Dupuit divide river 1d matches reference profile.

File tests/validation/analytical/steady/test_dupuit_divide_river_1d.py. Markers: analytical, fast, steady, validation.

Steady Dupuit fixed-head case against its analytical profile#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: Dupuit steady fixed-head solution.

\[\frac{\mathrm{d}}{\mathrm{d}x}\left(K\,h\,\frac{\mathrm{d}h}{\mathrm{d}x}\right)=0\]
\[h(x)=\sqrt{h_w^2+\left(h_e^2-h_w^2\right)\frac{x-x_{\min}}{x_{\max}-x_{\min}}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00538 m< 0.011 m0.1% / 0.2%
Head-profile max abs error0.00771 m< 0.016 m0.2% / 0.3%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00528 m< 0.011 m0.1% / 0.2%
Head-profile max abs error0.00758 m< 0.016 m0.2% / 0.3%
Cross-row head spread3.09e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.00626 m< 0.013 m0.1% / 0.3%
Head-profile max abs error0.00895 m< 0.018 m0.2% / 0.4%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.00727 m< 0.015 m0.1% / 0.3%
Head-profile max abs error0.0176 m< 0.036 m0.4% / 0.7%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE4.07e-05 m< 8.2e-05 m0.0% / 0.0%
Head-profile max abs error9.91e-05 m< 0.0002 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE4.07e-05 m< 8.2e-05 m0.0% / 0.0%
Head-profile max abs error9.91e-05 m< 0.0002 m0.0% / 0.0%
Cross-row head spread1.59e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 4.92 to 5 m.

5395x (m)510m+0.018-0.018minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 5.4e-3 m, max error 7.7e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.1e-05 m, max error 9.9e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.1e-05 m, max error 9.9e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 6.3e-3 m, max error 9.0e-3 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 7.3e-3 m, max error 1.76e-2 m. A side head sits on the cells seeded on the face, so the reference poses it on the faces. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The largest cell error, 3.3e-2 m, is the interior node 10 m from the east face, between face nodes 25 m apart; the column mean halves it. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.015 to 0.0146 (measure 0.00727); head_profile.max_abs_error 0.036 to 0.0352 (measure 0.0176). Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0110.0110.0130.01468.2e-058.2e-05
Head-profile max abs error (m) <0.0160.0160.0180.03520.00020.0002
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/dupuit_fixed_head_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.dupuit_fixed_head_1d.run_case

Test functions

  • Dupuit fixed head 1d matches reference profile.

File tests/validation/analytical/steady/test_dupuit_fixed_head_1d.py. Markers: analytical, fast, steady, validation.

PETSc Boussinesq variants on the steady Dupuit fixed-head case#

pass end to endboussinesqpetscpetsc_partition

Not run on

  • NWT: The file runs the Boussinesq surface-interaction closures (regularized partition, complementarity, VI obstacle) selected through runtime_backend = petsc, which have no MODFLOW counterpart. The same Dupuit profile runs on NWT in test_dupuit_fixed_head_1d.py.
  • MF6: The file runs the Boussinesq surface-interaction closures (regularized partition, complementarity, VI obstacle) selected through runtime_backend = petsc, which have no MODFLOW counterpart. The same Dupuit profile runs on MF6 in test_dupuit_fixed_head_1d.py.
  • MF6 triangles: The file runs the Boussinesq surface-interaction closures (regularized partition, complementarity, VI obstacle) selected through runtime_backend = petsc, which have no MODFLOW counterpart. The same Dupuit profile runs on MF6 triangles in test_dupuit_fixed_head_1d.py.
  • MF6 Voronoi: The file runs the Boussinesq surface-interaction closures (regularized partition, complementarity, VI obstacle) selected through runtime_backend = petsc, which have no MODFLOW counterpart. A MF6 Voronoi run of this Dupuit profile belongs in test_dupuit_fixed_head_1d.py, not here.
  • Boussinesq default: The complementarity and VI obstacle closures exist only in the PETSc engine; the local engine supports head_only_regularized_partition only. The regularized-partition profile on the default engine is already test_dupuit_fixed_head_1d[boussinesq_local].

Compared with: Dupuit steady fixed-head solution.

\[\frac{\mathrm{d}}{\mathrm{d}x}\left(K\,h\,\frac{\mathrm{d}h}{\mathrm{d}x}\right)=0\]
\[h(x)=\sqrt{h_w^2+\left(h_e^2-h_w^2\right)\frac{x-x_{\min}}{x_{\max}-x_{\min}}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Dupuit fixed head petsc variants match reference profile [petsc_complementarity]
pass
Head-profile RMSE4.07e-05 m< 8.2e-05 m0.0% / 0.0%
Head-profile max abs error9.91e-05 m< 0.0002 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
Dupuit fixed head petsc variants match reference profile [petsc_partition]
pass
Head-profile RMSE4.07e-05 m< 8.2e-05 m0.0% / 0.0%
Head-profile max abs error9.91e-05 m< 0.0002 m0.0% / 0.0%
Cross-row head spread1.38e-15 m< 1e-08 m0.0% / 0.0%
Dupuit fixed head petsc vi obstacle reaches reference profile
pass
Head-profile RMSE4.07e-05 m< 8.2e-05 m0.0% / 0.0%
Head-profile max abs error9.91e-05 m< 0.0002 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%

Measured on 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 4.95 m.

5395x (m)5.039.98m+0.0001-0.0001minus the reference
Head profile, head
referencerunpetsc_complementaritypetsc_partition

Why these thresholds

  • Thresholds of petsc: Twice the error measured with this PETSc variant on 40 columns: RMSE 4.1e-05 m, max error 9.9e-05 m. No surface contact here, so the closures agree with the default Boussinesq variant to 1e-8 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of petsc_partition: Twice the error measured with this PETSc variant on 40 columns: RMSE 4.1e-05 m, max error 9.9e-05 m. No surface contact here, so the closures agree with the default Boussinesq variant to 1e-8 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.

Schedule. , petsc, petsc_partition: runs in Nightly / validation PETSc, Solver / PETSc smoke Linux (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

Run it alone: python -m validation_cases.analytical.steady.dupuit_fixed_head_1d.run_case

Test functions

  • Dupuit fixed head petsc variants match reference profile.
  • Dupuit fixed head petsc vi obstacle reaches reference profile.

File tests/validation/analytical/steady/test_dupuit_fixed_head_petsc_1d.py. Markers: analytical, fast, petsc, steady, validation.

Steady Dupuit seepage limit and its invariance in K/R#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localboussinesq_k_onlyboussinesq_local_k_onlyboussinesq_local_scaled_downboussinesq_local_scaled_upboussinesq_scaled_downboussinesq_scaled_upmodflow6_irregular_tri_k_onlymodflow6_irregular_tri_scaled_downmodflow6_irregular_tri_scaled_upmodflow6_k_onlymodflow6_scaled_downmodflow6_scaled_upmodflow6_voronoi_k_onlymodflow6_voronoi_scaled_downmodflow6_voronoi_scaled_upmodflow_nwt_k_onlymodflow_nwt_scaled_downmodflow_nwt_scaled_up

Compared with: Dupuit seepage limit x_e = L / (1 + slope**2 K/R) and the free Dupuit water table above it.

\[x_e=\frac{L}{1+s^2\,K/R}\]
\[h(x)=s\,x \quad (x<x_e),\qquad h(x)^2=(s\,x_e)^2+\frac{2R}{K}\left(L\,(x-x_e)-\frac{x^2-x_e^2}{2}\right) \quad (x\ge x_e)\]

\(s\) is the slope of the surface, \(L\) the length of the hillslope, \(x\) the distance upslope from the toe, \(K\) the hydraulic conductivity and \(R\) the recharge.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Conductivity alone moves the mask but not the discharge [boussinesq_k_only]
pass
Drain-outflow drift when K alone doubles5.84e-07< 1.2e-06
Conductivity alone moves the mask but not the discharge [boussinesq_local_k_only]
pass
Drain-outflow drift when K alone doubles0.000236< 0.0005
Conductivity alone moves the mask but not the discharge [modflow6_irregular_tri_k_only]
pass
Drain-outflow drift when K alone doubles1.08e-09< 3e-09
Conductivity alone moves the mask but not the discharge [modflow6_k_only]
pass
Drain-outflow drift when K alone doubles5.04e-07< 0.0001
Conductivity alone moves the mask but not the discharge [modflow6_voronoi_k_only]
pass
Drain-outflow drift when K alone doubles3.73e-09< 8e-09
Conductivity alone moves the mask but not the discharge [modflow_nwt_k_only]
pass
Drain-outflow drift when K alone doubles1.32e-08< 3e-08
Every declared scenario is exercised
pass
no metric recorded; the asserts of the test decide
Seepage limit matches the closed form [modflow_nwt]
pass
modflow_nwt seepage-limit position error0 m< 3.4 m0.0% / 60.6%
modflow_nwt head-profile max abs error0.00821 m< 0.024 m0.1% / 0.4%
Seepage limit matches the closed form [modflow6]
pass
modflow6 seepage-limit position error0 m< 10 m0.0% / 178.4%
modflow6 head-profile max abs error0.0082 m< 0.02 m0.1% / 0.4%
Seepage limit matches the closed form [modflow6_irregular_tri]
pass
modflow6_irregular_tri seepage-limit position error0 m< 3.4 m0.0% / 60.9%
modflow6_irregular_tri head-profile max abs error0.00473 m< 0.012 m0.1% / 0.2%
Seepage limit matches the closed form [modflow6_voronoi]
pass
modflow6_voronoi seepage-limit position error0 m< 3.4 m0.0% / 60.7%
modflow6_voronoi head-profile max abs error0.00862 m< 0.025 m0.2% / 0.4%
Seepage limit matches the closed form [boussinesq]
pass
boussinesq seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq head-profile max abs error0.000208 m< 0.00042 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_local]
pass
boussinesq_local seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq_local head-profile max abs error0.000425 m< 0.00086 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_k_only]
pass
boussinesq_k_only seepage-limit position error1.67 m< 3.4 m36.5% / 74.4%
boussinesq_k_only head-profile max abs error7e-05 m< 0.00042 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_local_k_only]
pass
boussinesq_local_k_only seepage-limit position error1.67 m< 3.4 m36.5% / 74.4%
boussinesq_local_k_only head-profile max abs error8.21e-05 m< 0.00086 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_local_scaled_down]
pass
boussinesq_local_scaled_down seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq_local_scaled_down head-profile max abs error0.000425 m< 0.00086 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_local_scaled_up]
pass
boussinesq_local_scaled_up seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq_local_scaled_up head-profile max abs error0.000425 m< 0.00086 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_scaled_down]
pass
boussinesq_scaled_down seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq_scaled_down head-profile max abs error0.000208 m< 0.00042 m0.0% / 0.0%
Seepage limit matches the closed form [boussinesq_scaled_up]
pass
boussinesq_scaled_up seepage-limit position error0 m< 3.4 m0.0% / 60.6%
boussinesq_scaled_up head-profile max abs error0.000208 m< 0.00042 m0.0% / 0.0%
Seepage limit matches the closed form [modflow6_irregular_tri_k_only]
pass
modflow6_irregular_tri_k_only seepage-limit position error1.67 m< 3.4 m36.6% / 74.8%
modflow6_irregular_tri_k_only head-profile max abs error0.00579 m< 0.012 m0.1% / 0.3%
Seepage limit matches the closed form [modflow6_irregular_tri_scaled_down]
pass
modflow6_irregular_tri_scaled_down seepage-limit position error0 m< 3.4 m0.0% / 60.9%
modflow6_irregular_tri_scaled_down head-profile max abs error0.00473 m< 0.012 m0.1% / 0.2%
Seepage limit matches the closed form [modflow6_irregular_tri_scaled_up]
pass
modflow6_irregular_tri_scaled_up seepage-limit position error0 m< 3.4 m0.0% / 60.9%
modflow6_irregular_tri_scaled_up head-profile max abs error0.00473 m< 0.012 m0.1% / 0.2%
Seepage limit matches the closed form [modflow6_k_only]
pass
modflow6_k_only seepage-limit position error1.67 m< 10 m36.5% / 218.9%
modflow6_k_only head-profile max abs error0.0117 m< 0.02 m0.3% / 0.4%
Seepage limit matches the closed form [modflow6_scaled_down]
pass
modflow6_scaled_down seepage-limit position error0 m< 10 m0.0% / 178.4%
modflow6_scaled_down head-profile max abs error0.00807 m< 0.02 m0.1% / 0.4%
Seepage limit matches the closed form [modflow6_scaled_up]
pass
modflow6_scaled_up seepage-limit position error0 m< 10 m0.0% / 178.4%
modflow6_scaled_up head-profile max abs error0.0082 m< 0.02 m0.1% / 0.4%
Seepage limit matches the closed form [modflow6_voronoi_k_only]
pass
modflow6_voronoi_k_only seepage-limit position error1.67 m< 3.4 m36.5% / 74.5%
modflow6_voronoi_k_only head-profile max abs error0.0123 m< 0.025 m0.3% / 0.5%
Seepage limit matches the closed form [modflow6_voronoi_scaled_down]
pass
modflow6_voronoi_scaled_down seepage-limit position error0 m< 3.4 m0.0% / 60.7%
modflow6_voronoi_scaled_down head-profile max abs error0.00862 m< 0.025 m0.2% / 0.4%
Seepage limit matches the closed form [modflow6_voronoi_scaled_up]
pass
modflow6_voronoi_scaled_up seepage-limit position error0 m< 3.4 m0.0% / 60.7%
modflow6_voronoi_scaled_up head-profile max abs error0.00862 m< 0.025 m0.2% / 0.4%
Seepage limit matches the closed form [modflow_nwt_k_only]
pass
modflow_nwt_k_only seepage-limit position error1.67 m< 3.4 m36.5% / 74.4%
modflow_nwt_k_only head-profile max abs error0.0117 m< 0.024 m0.3% / 0.5%
Seepage limit matches the closed form [modflow_nwt_scaled_down]
pass
modflow_nwt_scaled_down seepage-limit position error0 m< 3.4 m0.0% / 60.6%
modflow_nwt_scaled_down head-profile max abs error0.00821 m< 0.024 m0.1% / 0.4%
Seepage limit matches the closed form [modflow_nwt_scaled_up]
pass
modflow_nwt_scaled_up seepage-limit position error0 m< 3.4 m0.0% / 60.6%
modflow_nwt_scaled_up head-profile max abs error0.00821 m< 0.024 m0.1% / 0.4%
Seepage mask and head are invariant in conductivity over recharge [boussinesq_local_scaled_down]
pass
boussinesq_local_scaled_down water-table difference vs the reference scenario2.75e-09 m< 4e-08 m
Seepage mask and head are invariant in conductivity over recharge [boussinesq_local_scaled_up]
pass
boussinesq_local_scaled_up water-table difference vs the reference scenario3.12e-09 m< 4e-08 m
Seepage mask and head are invariant in conductivity over recharge [boussinesq_scaled_down]
pass
boussinesq_scaled_down water-table difference vs the reference scenario8.88e-16 m< 1e-12 m
Seepage mask and head are invariant in conductivity over recharge [boussinesq_scaled_up]
pass
boussinesq_scaled_up water-table difference vs the reference scenario8.88e-16 m< 1e-12 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_irregular_tri_scaled_down]
pass
modflow6_irregular_tri_scaled_down water-table difference vs the reference scenario1.75e-07 m< 4e-07 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_irregular_tri_scaled_up]
pass
modflow6_irregular_tri_scaled_up water-table difference vs the reference scenario8.29e-11 m< 4e-07 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_scaled_down]
pass
modflow6_scaled_down water-table difference vs the reference scenario0.000134 m< 0.002 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_scaled_up]
pass
modflow6_scaled_up water-table difference vs the reference scenario6.02e-07 m< 0.002 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_voronoi_scaled_down]
pass
modflow6_voronoi_scaled_down water-table difference vs the reference scenario1e-07 m< 2e-07 m
Seepage mask and head are invariant in conductivity over recharge [modflow6_voronoi_scaled_up]
pass
modflow6_voronoi_scaled_up water-table difference vs the reference scenario3.92e-09 m< 2e-07 m
Seepage mask and head are invariant in conductivity over recharge [modflow_nwt_scaled_down]
pass
modflow_nwt_scaled_down water-table difference vs the reference scenario4.77e-07 m< 1e-06 m
Seepage mask and head are invariant in conductivity over recharge [modflow_nwt_scaled_up]
pass
modflow_nwt_scaled_up water-table difference vs the reference scenario4.77e-07 m< 1e-06 m

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 4.55 to 5.61 m.

2.5398x (m)0.055.66m+0.0086-0.0086minus the reference
Water table, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq defaultboussinesq_local_scaled_downboussinesq_local_scaled_upboussinesq_scaled_downboussinesq_scaled_upmodflow6_irregular_tri_scaled_downmodflow6_irregular_tri_scaled_upmodflow6_scaled_downmodflow6_scaled_upmodflow6_voronoi_scaled_downmodflow6_voronoi_scaled_upmodflow_nwt_scaled_downmodflow_nwt_scaled_up
2.5398x (m)0.054.62m+0.012-0.012minus the reference
Water table, head
reference of each runboussinesq_k_onlyboussinesq_local_k_onlymodflow6_irregular_tri_k_onlymodflow6_k_onlymodflow6_voronoi_k_onlymodflow_nwt_k_only

Why these thresholds

  • Thresholds of modflow6, boussinesq_k_only, boussinesq_local_k_only, boussinesq_local_scaled_down, boussinesq_local_scaled_up, boussinesq_scaled_down, boussinesq_scaled_up, modflow6_irregular_tri_k_only, modflow6_irregular_tri_scaled_down, modflow6_irregular_tri_scaled_up, modflow6_k_only, modflow6_scaled_down, modflow6_scaled_up, modflow6_voronoi_k_only, modflow6_voronoi_scaled_down, modflow6_voronoi_scaled_up, modflow_nwt_k_only, modflow_nwt_scaled_down, modflow_nwt_scaled_up: MODFLOW 6, 80 x 5 cells of 5 m, the land surface a DRN of conductance K * area / b with b = 1 m. Measured, the seepage limit sits at 200 m (error 0) in the three scenarios of x_e = 200 m and at 135 m against 133.3 m for the doubled K (1.67 m, the 5 m column edge). Head profile: max error 8.2e-3 m, 1.17e-2 m for the doubled K. The K/R invariance holds to 1.3e-4 m (x 0.01) and 6e-7 m (x 100), the IMS closure being absolute. Doubling K alone leaves the drain outflow at R * area to 5e-7. The bounds are those of the original case, looser than twice the measure, and are left as they were.
  • Thresholds of boussinesq: PETSc VI obstacle, the exact h <= z_top complementarity, on 320 triangles (80 columns of 5 m, 2 rows). It has no drain: a cell seeps when its head is within 1e-6 m of its surface, read on the mean of each 5 m bin, and the water that leaves is the surface-excess flux. Measured, the seepage limit sits at 200 m (error 0) in the three scenarios of x_e = 200 m and at 135 m against 133.3 m for the doubled K (1.67 m): bound twice that. Head profile: max error 2.1e-4 m, 7.0e-5 m for the doubled K; bound twice the largest. The K/R invariance holds to 8.9e-16 m, roundoff, and moves no cell: bound 1e-12 m. The absolute residual closure follows the recharge (1e-9, 1e-11, 1e-7 m3/s). Doubling K alone moves 26 cells and leaves the surface outflow at R * area to 5.8e-7, bound 1.2e-6. The flat start at 2 m above the surface converges in 30 iterations.
  • Thresholds of boussinesq_local: Default local engine, the regularized partition closure, on 320 triangles (80 columns of 5 m, 2 rows). The partition releases a little water wherever the water table is within a few of its 0.05 m depth scale of the surface, so a cell seeps when its head is within 1e-6 m of the surface, read on the mean of each 5 m bin, and the water that leaves is the surface-excess flux. Measured, the seepage limit sits at 200 m (error 0) in the three scenarios of x_e = 200 m and at 135 m against 133.3 m for the doubled K (1.67 m): bound twice that. Head profile: max error 4.2e-4 m, 8.2e-5 m for the doubled K; bound twice the largest. The K/R invariance holds to 1.8e-8 m and moves no cell, but only with the Newton closures scaled with the recharge (residual 1e-8, 1e-10, 1e-6 m3/s). Doubling K alone moves 26 cells; the release is 2.4e-4 of R * area off, bound 5e-4. From a flat start the dense Newton of the doubled K drives tens of toe cells below the bottom and its Jacobian solve fails (300 iterations, with a flat start from 0.5 to 10 m, the surface or an offset below it): the control starts from the solution of the reference scenario, 86 iterations to 1.8e-10 m3/s.
  • Thresholds of modflow6_irregular_tri: MODFLOW 6 on 594 irregular triangles of about 6 m (DISV), the land surface a DRN of conductance K * area / b with b = 1 m, so the leakance K / b is the same on every triangle whatever its area. The 5 m raster the tops are sampled from is flat past the center of its end columns: the reference is read at the same positions, at each centroid, and averaged over the same 5 m columns as the model. Measured, the seepage limit sits at 200 m (error 0) in the three scenarios of x_e = 200 m and at 135 m against 133.3 m for the doubled K (1.67 m): bound twice that. Head profile: max error 4.7e-3 m, 5.8e-3 m for the doubled K; bound twice the largest. Three cells (the limit falls inside one column) differ from the seepage state of their column, as in the doubled-K scenario; bound twice that. The K/R invariance holds to 1.8e-7 m and moves no cell: bound 4e-7 m. Doubling K alone moves 107 cells and leaves the drain outflow at R * area to 1.1e-9, bound 3e-9. Needs the ILUT fill of the case config: with the stock fill the inner solves hit their cap.
  • Thresholds of modflow6_voronoi: MODFLOW 6 on the 320-node Voronoi dual of the same triangles, one cell per node, the land surface a DRN of conductance K * area / b with b = 1 m. Each head sits at its node, so a column is the area-weighted mean of the cells whose node falls in it, for the model and the reference alike. The surface is sampled at the nodes from the 5 m raster, flat past the center of its end columns: the toe nodes at x = 400 m read 0.05 m, not the 0 m of the plane, so no cell is dry, and the reference is read at the same positions. Measured, the seepage limit sits at 200 m (error 0) in the three scenarios of x_e = 200 m and at 135 m against 133.3 m for the doubled K (1.67 m): bound twice that. Head profile: max error 8.6e-3 m, 1.23e-2 m for the doubled K; bound twice the largest. One cell differs from the seepage state of its column in the doubled-K scenario: bound twice that. The K/R invariance holds to 1.0e-7 m and moves no cell: bound 2e-7 m. Doubling K alone moves 57 cells and leaves the drain outflow at R * area to 3.7e-9, bound 8e-9. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: seepage_limit.head_profile_max_abs_error 0.025 to 0.0247 (measure 0.0123); seepage_limit.position_error 3.4 to 3.34 (measure 1.67). Kept at a numerical floor, where twice the measure guarantees nothing: control.drain_outflow_ratio_error 8e-9 (measure 3.35e-9, solver closure of the scaled system); invariance.head_max_abs_error 2e-7 (measure 9.93e-8, solver closure of the scaled system).
  • Thresholds of modflow_nwt: MODFLOW-NWT, 80 x 5 cells of 5 m, the land surface a DRN of conductance K * area / b with b = 1 m, in the four scenarios. Measured, the seepage limit sits at 200 m in the three scenarios of x_e = 200 m (error 0) and at 135 m against 133.3 m for the doubled K (1.67 m, the 5 m column edge): bound twice that. Head profile: max error 8.2e-3 m in the three, 1.17e-2 m for the doubled K, the cell-size error of placing the free boundary; bound twice the largest. The K/R invariance holds to 4.8e-7 m, the float32 resolution of the stored heads: bound 1e-6 m. This needs the run to use the NWT validation profile (headtol 1e-9 m, fluxtol 1e-10 m3/s) in every scenario; without it the scaled scenarios differ from the reference by 7e-3 m. Doubling K alone moves 65 cells and leaves the drain outflow at R * area to 1.3e-8, bound 3e-8. The quasi-1D rows agree.

Schedule. modflow_nwt, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local, , boussinesq_local_k_only, boussinesq_local_scaled_down, boussinesq_local_scaled_up, modflow6_irregular_tri_k_only, modflow6_irregular_tri_scaled_down, modflow6_irregular_tri_scaled_up, modflow6_voronoi_k_only, modflow6_voronoi_scaled_down, modflow6_voronoi_scaled_up, modflow_nwt_k_only, modflow_nwt_scaled_down, modflow_nwt_scaled_up: runs in Nightly / validation no PETSc, Weekly / Cross Platform. modflow6, modflow6_k_only, modflow6_scaled_down, modflow6_scaled_up: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq, boussinesq_k_only, boussinesq_scaled_down, boussinesq_scaled_up: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

Three claims, in decreasing order of importance:

1. the seepage mask starts where the Dupuit closed form says it does, 2. scaling K and R by the same factor leaves the mask identical cell for cell and the head equal to a tight band - the property the whole calibration method rests on, 3. the same factor on K alone moves the mask, while the total drain discharge does not move at all.

Claim 3 is why claim 2 never looks at the discharge: mass balance pins the total drain outflow at R * area whatever the conductance does, so a discharge-based invariance check passes on a model that ignores K entirely.

Six solvers run it, each on four scenarios (the reference, K and R scaled down and up, K alone doubled): MODFLOW-NWT and MODFLOW 6 on a structured grid, MODFLOW 6 on irregular triangles and on their Voronoi dual, with a drain at the land surface, and the in-house Boussinesq solver on its PETSc VI obstacle and its default local engine. A Boussinesq run has no drain: its seepage mask is read from the heads, and the water that leaves is its surface-excess flux.

Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localboussinesq_k_onlyboussinesq_local_k_onlyboussinesq_local_scaled_downboussinesq_local_scaled_upboussinesq_scaled_downboussinesq_scaled_upmodflow6_irregular_tri_k_onlymodflow6_irregular_tri_scaled_downmodflow6_irregular_tri_scaled_upmodflow6_k_onlymodflow6_scaled_downmodflow6_scaled_upmodflow6_voronoi_k_onlymodflow6_voronoi_scaled_downmodflow6_voronoi_scaled_upmodflow_nwt_k_onlymodflow_nwt_scaled_downmodflow_nwt_scaled_up
f'{solver} seepage-limit position error' (m) <3.4103.43.343.43.4101010101010101010101010101010101010
f'{solver} head-profile max abs error' (m) <0.0240.020.0120.02470.000420.000860.020.020.020.020.020.020.020.020.020.020.020.020.020.020.020.020.020.02
f'{solver} water-table difference vs the reference scenario' (m) <1e-060.0024e-072e-071e-124e-080.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.0020.002
Drain-outflow drift when K alone doubles <3e-080.00013e-098e-091.2e-060.00050.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.00010.0001

From validation_cases/analytical/steady/dupuit_seepage_limit_1d/: modflow_nwt reads tolerances_modflow_nwt.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml, boussinesq_k_only reads tolerances.toml, boussinesq_local_k_only reads tolerances.toml, boussinesq_local_scaled_down reads tolerances.toml, boussinesq_local_scaled_up reads tolerances.toml, boussinesq_scaled_down reads tolerances.toml, boussinesq_scaled_up reads tolerances.toml, modflow6_irregular_tri_k_only reads tolerances.toml, modflow6_irregular_tri_scaled_down reads tolerances.toml, modflow6_irregular_tri_scaled_up reads tolerances.toml, modflow6_k_only reads tolerances.toml, modflow6_scaled_down reads tolerances.toml, modflow6_scaled_up reads tolerances.toml, modflow6_voronoi_k_only reads tolerances.toml, modflow6_voronoi_scaled_down reads tolerances.toml, modflow6_voronoi_scaled_up reads tolerances.toml, modflow_nwt_k_only reads tolerances.toml, modflow_nwt_scaled_down reads tolerances.toml, modflow_nwt_scaled_up reads tolerances.toml.

Run it alone: python -m validation_cases.analytical.steady.dupuit_seepage_limit_1d.run_case

Test functions

  • Every declared scenario is exercised.
  • Seepage limit matches the closed form.
  • Seepage mask and head are invariant in conductivity over recharge.
  • Conductivity alone moves the mask but not the discharge.

File tests/validation/analytical/steady/test_dupuit_seepage_limit_1d.py. Markers: analytical, steady, validation, xdist_group.

Steady Dupuit 1D case with uniform recharge#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: steady Dupuit profile with uniform recharge.

\[\frac{\mathrm{d}}{\mathrm{d}x}\left(K\,h\,\frac{\mathrm{d}h}{\mathrm{d}x}\right)+R=0\]
\[h(x)^2=h_w^2+\left(h_e^2-h_w^2\right)\frac{\xi}{L}+\frac{R}{K}\,\xi\left(L-\xi\right),\quad \xi=x-x_{\min}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE0.00662 m< 0.014 m0.6% / 1.2%
Head-profile max abs error0.00793 m< 0.016 m0.7% / 1.4%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.00641 m< 0.014 m0.5% / 1.2%
Head-profile max abs error0.00764 m< 0.016 m0.6% / 1.4%
Cross-row head spread1.36e-06 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.0077 m< 0.016 m0.6% / 1.3%
Head-profile max abs error0.011 m< 0.022 m0.9% / 1.8%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.00448 m< 0.009 m0.4% / 0.7%
Head-profile max abs error0.0131 m< 0.027 m1.1% / 2.2%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE9.93e-05 m< 0.0002 m0.0% / 0.0%
Head-profile max abs error0.000146 m< 0.0003 m0.0% / 0.0%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Head-profile RMSE9.93e-05 m< 0.0002 m0.0% / 0.0%
Head-profile max abs error0.000146 m< 0.0003 m0.0% / 0.0%
Cross-row head spread9.44e-15 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 1.18 to 1.24 m.

5395x (m)56.2m+0.011-0.011minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesBoussinesqBoussinesq default
5395x (m)56.24m+0.013-0.013minus the reference
Head profile, head
referenceMF6 Voronoi

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 6.6e-3 m, max error 7.9e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 9.9e-05 m, max error 0.00015 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 9.9e-05 m, max error 0.00015 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 7.7e-3 m, max error 1.1e-2 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 4.5e-3 m, max error 1.31e-2 m. A side head sits on the cells seeded on the face, so the reference poses it on the faces. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.009 to 0.00896 (measure 0.00448); head_profile.max_abs_error 0.027 to 0.0262 (measure 0.0131).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Head-profile RMSE (m) <0.0140.0140.0160.008960.00020.0002
Head-profile max abs error (m) <0.0160.0160.0220.02620.00030.0003
Cross-row head spread (m) <1e-051e-051e-091e-091e-081e-07

From validation_cases/analytical/steady/dupuit_uniform_recharge_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.steady.dupuit_uniform_recharge_1d.run_case

Test functions

  • Dupuit uniform recharge 1d matches reference profile.

File tests/validation/analytical/steady/test_dupuit_uniform_recharge_1d.py. Markers: analytical, fast, steady, validation.

Grid convergence of the steady Dupuit fixed-head case on the production path#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localmodflow6_irregular_tri_no_newtonmodflow6_no_newtonmodflow6_voronoi_no_newton

Compared with: Dupuit steady fixed-head solution.

\[\frac{\mathrm{d}}{\mathrm{d}x}\left(K\,h\,\frac{\mathrm{d}h}{\mathrm{d}x}\right)=0\]
\[h(x)=\sqrt{h_w^2+\left(h_e^2-h_w^2\right)\frac{x-x_{\min}}{x_{\max}-x_{\min}}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Distance of the observed order from 10.0107< 0.2
modflow6
pass
Distance of the observed order from 10.0113< 0.2
modflow6_irregular_tri
pass
Distance of the observed order from 10.0269< 0.2
modflow6_voronoi
pass
Distance of the observed order from 10.0312< 0.2
boussinesq
pass
Distance of the observed order from 20.071< 0.2
boussinesq_local
pass
Distance of the observed order from 20.071< 0.2
modflow6_irregular_tri_no_newton
pass
Distance of the observed order from 20.0356< 0.2
modflow6_no_newton
pass
Distance of the observed order from 20.051< 0.2
modflow6_voronoi_no_newton
pass
Distance of the observed order from 20.0741< 0.2

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

6.225cell size (m)0.00320.013m
Head RMSE against the cell size, head rmse, log scales
reference of each runNWTMF6MF6 Voronoi
6.225cell size (m)0.00180.0072m
Head RMSE against the cell size, head rmse, log scales
referenceMF6 triangles
6.225cell size (m)1.6e-050.00028m
Head RMSE against the cell size, head rmse, log scales
referenceBoussinesqBoussinesq default
6.225cell size (m)1.4e-050.00023m
Head RMSE against the cell size, head rmse, log scales
referencemodflow6_irregular_tri_no_newton
6.225cell size (m)4.4e-050.00075m
Head RMSE against the cell size, head rmse, log scales
referencemodflow6_no_newton
6.225cell size (m)4.2e-050.00068m
Head RMSE against the cell size, head rmse, log scales
referencemodflow6_voronoi_no_newton

Why these thresholds

  • Thresholds of modflow_nwt, modflow6, modflow6_irregular_tri_no_newton, modflow6_no_newton, modflow6_voronoi_no_newton: Twice the error measured on the 40-column grid, MODFLOW-NWT and MODFLOW 6 alike: RMSE 5.4e-3 m, max error 7.7e-3 m. Both upstream-weight the saturated thickness between cells, a first-order scheme: refining the grid by 2 halves the error. The heads are posed where the model holds them, at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc VI on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.1e-05 m, max error 9.9e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 columns; PETSc and the local engine agree to 1e-8 m: RMSE 4.1e-05 m, max error 9.9e-05 m. The strip splits each 10 m square into two right triangles, the diagonal alternating like a checkerboard. On it the solver reproduces the h^2 profile at the triangle centroids to 1e-8 m (checked cell by cell with recharge), far below the MODFLOW band of this case. What is left comes from the column average of two triangles, centroids at dx/3 and 2 dx/3, against the reference at the column center. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 176-triangle strip: RMSE 6.3e-3 m, max error 9.0e-3 m. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 101-node Voronoi dual of the triangle strip: RMSE 7.3e-3 m, max error 1.76e-2 m. A side head sits on the cells seeded on the face, so the reference poses it on the faces. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The largest cell error, 3.3e-2 m, is the interior node 10 m from the east face, between face nodes 25 m apart; the column mean halves it. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: head_profile.rmse 0.015 to 0.0146 (measure 0.00727); head_profile.max_abs_error 0.036 to 0.0352 (measure 0.0176). Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, modflow6_irregular_tri_no_newton, modflow6_no_newton, modflow6_voronoi_no_newton: runs in Nightly / validation no PETSc, Weekly / Cross Platform. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

The case runs through the launcher, the route of test_dupuit_fixed_head_1d.py, on copies of its configuration refined twice by 2 (cells of 25, 12.5 and 6.25 m). The slope of the head RMSE against the cell size is the observed order of the scheme.

Without Newton, MODFLOW 6 takes the harmonic mean of the two cell transmissivities, a centered scheme of order 2. A head posed half a cell away from where the reference expects it adds an error of order 1 and drops the observed order to 1. This is the check the MMS tests cannot make: they import nothing from hydromodpy.

Under Newton, the HydroModPy default, MODFLOW 6 weights the saturated thickness of the upstream cell, and so does MODFLOW-NWT. That scheme is of order 1 by construction: the RMSE halves when the cells halve (13.3, 6.7 and 3.4 mm here). Both runs are checked against order 1.

The same refinement runs on the other grids of the strip. The triangle and Voronoi grids are built in tmp_path from the uniform right-triangle strip (write_uniform_strip_bundle and write_gmsh22_triangle_mesh_from_bundle_csv), with dx = dy so that the centroid line across a diagonal stays normal to the edge; no bundle is committed. MODFLOW 6 on triangles and on the Voronoi dual observes the same orders as the structured grid, 2 without Newton and 1 under Newton (the upstream thickness weighting). The Boussinesq solver averages the thickness of the two cells in the edge flux, which is exact in h^2 at the centroids. Its second-order error is that of the aggregation: the profile is the column mean of the centroids at dx/3 and 2dx/3, read against the reference at the column center. PETSc and the default local engine give the same errors to 1e-9 m; the local engine goes from the dense solver (64 and 256 cells) to scipy_sparse (1024 cells at 64 columns) inside the refinement without moving the result.

Every run closes the head to 1e-9 m, far below the discretization error, so the observed order is the order of the scheme. The bands are those of the MMS orders, |p - 2| < 0.2 and |p - 1| < 0.2 (tests/TOLERANCES.md).

Run it alone: python -m validation_cases.analytical.steady.dupuit_fixed_head_1d.run_case

Thresholds from tests/TOLERANCES.md

  • Row 135: Grid convergence, Dupuit fixed head 1D (Boussinesq, PETSc and local engine), Observed order of the head RMSE on 16/32/64 columns, |p - 2|: 0.2 (MMS order band, measured order 2.07 on both engines)
  • Row 135: Grid convergence, Dupuit fixed head 1D (Boussinesq, PETSc and local engine), Observed order of the head RMSE on 16/32/64 columns, |p - 2|: 0.2 (MMS order band, measured order 2.07 on both engines)
  • Row 134: Grid convergence, Dupuit fixed head 1D (MODFLOW 6 triangles, Voronoi dual), Observed order of the head RMSE on 16/32/64 columns, |p - 2| without Newton and |p - 1| under Newton: 0.2 (MMS order bands, measured orders 1.96/0.97 (triangles) and 1.93/0.97 (Voronoi))
  • Row 134: Grid convergence, Dupuit fixed head 1D (MODFLOW 6 triangles, Voronoi dual), Observed order of the head RMSE on 16/32/64 columns, |p - 2| without Newton and |p - 1| under Newton: 0.2 (MMS order bands, measured orders 1.96/0.97 (triangles) and 1.93/0.97 (Voronoi))

Test functions

  • Grid convergence dupuit fixed head 1d.

File tests/validation/analytical/steady/test_grid_convergence_dupuit_1d.py. Markers: analytical, steady, validation.

Rotated horizontal K tensor: uniform flow along a confined strip, plan view#

pass end to endmodflow6modflow6_mirrored

Not run on

  • NWT: MODFLOW-NWT reads K and Kv only: the load refuses K22 and the angles of the K tensor for it.
  • Boussinesq, Boussinesq default: The Boussinesq solver takes a scalar K: the load refuses K22 and the angles of the K tensor for it.
  • MF6 triangles: Not run: the case checks the tensor conventions on the structured grid. XT3D carries a linear head on triangles too (patch test), but this strip has no triangle variant.
  • MF6 Voronoi: Not run: the case checks the tensor conventions on the structured grid. A Voronoi variant of this strip is not set up.

Compared with: exact uniform flow of the rotated tensor, read in a window of +/- 100 m around the middle of the strip.

MODFLOW 6 turns the K11 axis by ANGLE1 = a from +x toward +y (Langevin et al., 2017, USGS TM 6-A55), so the tensor reads in the plane

\[K_{xx}=K_{11}\cos^2 a+K_{22}\sin^2 a,\quad K_{yy}=K_{11}\sin^2 a+K_{22}\cos^2 a,\quad K_{xy}=\left(K_{11}-K_{22}\right)\sin a\cos a\]

Far from the ends no water crosses the sides, so the exact head is a plane with

\[\frac{\partial h/\partial y}{\partial h/\partial x}=-\frac{K_{xy}}{K_{yy}},\qquad Q=\frac{K_{11}K_{22}}{K_{yy}}\left(-\frac{\partial h}{\partial x}\right)w\,b\]

where \(Q\) is the flow along the strip, \(w\) its width and \(b\) its thickness.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow6
pass
Gradient direction relative error2.19e-10< 1e-07
Head max abs error3.93e-09 m< 2e-07 m0.0% / 0.0%
End flow relative error4.21e-08< 4e-06
modflow6_mirrored
pass
Gradient direction relative error4.33e-09< 1e-07
Head max abs error1.31e-08 m< 2e-07 m0.0% / 0.0%
End flow relative error1.47e-07< 4e-06

Measured on 2026-10-26, commit d0f510b65 with uncommitted changes, version 2.0.0a5, a local run. The last column gives the measured value and the threshold as shares of the head drop across the strip in the window, 0.561 to 0.561 m.

2.547.5y (m)105105m+1-1minus the reference
Head across the strip at its middle, head
referenceMF6
2.547.5y (m)105105m+1-1minus the reference
Head across the strip at its middle, head
referencemodflow6_mirrored
Plan-view map of simulated minus reference head, one panel per solver: MF6, modflow6_mirroredPlan-view map of simulated minus reference head, one panel per solver: MF6, modflow6_mirrored
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of modflow6, modflow6_mirrored: Derived from the solver closure. XT3D carries a linear head exactly, so the window holds no discretization error: the errors do not fall with the cell size (head 3.5e-9 m on 10 m cells, 2.7e-7 m on 2.5 m cells), they follow the conditioning of the solve. What is left is the linear solve, closed at 1e-9 m, and end effects 22 decay lengths away. The bounds are about ten times the largest error of the four runs of the two K tensor cases, both signs. Measured here at +30 and -30 deg: gradient direction 2.2e-10 and 4.3e-9, head 3.9e-9 and 1.3e-8 m, end flow 4.2e-8 and 1.5e-7. A sign error on ANGLE1 gives a direction error of 2, the two-point flux without XT3D a direction error of 1 and a head error of 0.33 m.

Schedule. modflow6, modflow6_mirrored: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

The flow sets K, K22 and ANGLE1 through [flow.param], HydroModPy writes them to the NPF package with XT3D, and the run stores the heads and the constant-head flows. A sign error on ANGLE1 flips the slope across the strip, an axis error changes its size, and the two-point flux without XT3D leaves it at zero: each moves the heads by a share of the 0.56 m drop across the strip. The mirrored variant runs ANGLE1 = -30 deg against its own reference.

Thresholdmodflow6modflow6_mirrored
Gradient direction relative error <1e-071e-07
Head max abs error (m) <2e-072e-07
End flow relative error <4e-064e-06

From validation_cases/analytical/steady/k_tensor_rotated_plan_2d/: modflow6 reads tolerances.toml, modflow6_mirrored reads tolerances.toml.

Run it alone: python -m validation_cases.analytical.steady.k_tensor_rotated_plan_2d.run_case

Test functions

  • K tensor rotated plan 2d carries the exact uniform flow.

File tests/validation/analytical/steady/test_k_tensor_rotated_plan_2d.py. Markers: analytical, fast, steady, validation.

Tilted K tensor: uniform flow along a confined layered section#

pass end to endmodflow6modflow6_mirrored

Not run on

  • NWT: MODFLOW-NWT reads K and Kv only: the load refuses the angles of the K tensor for it.
  • Boussinesq, Boussinesq default: The Boussinesq solver is a single-layer vertically integrated model with a scalar K: the load refuses the angles of the K tensor for it.
  • MF6 triangles: The section is one row of cells: the tensor tilts in the vertical plane, which a triangle mesh of the plan view does not change.
  • MF6 Voronoi: The section is one row of cells: the tensor tilts in the vertical plane, which a Voronoi mesh of the plan view does not change.

Compared with: exact uniform flow of the tilted tensor, read in a window of +/- 25 m around the middle of the section.

MODFLOW 6 turns the K11 axis by ANGLE2 = a from +x toward +z when ANGLE1 = 0 (Langevin et al., 2017, USGS TM 6-A55), so the tensor reads in the plane

\[K_{xx}=K_{11}\cos^2 a+K_{33}\sin^2 a,\quad K_{zz}=K_{11}\sin^2 a+K_{33}\cos^2 a,\quad K_{xz}=\left(K_{11}-K_{33}\right)\sin a\cos a\]

Far from the ends no water crosses the top and the bottom, so the exact head is a plane with

\[\frac{\partial h/\partial z}{\partial h/\partial x}=-\frac{K_{xz}}{K_{zz}},\qquad Q=\frac{K_{11}K_{33}}{K_{zz}}\left(-\frac{\partial h}{\partial x}\right)w\,D\]

where \(Q\) is the flow along the section, \(w\) its width and \(D\) its thickness.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow6
pass
Gradient direction relative error4.23e-10< 1e-07
Head max abs error5.21e-10 m< 2e-07 m0.0% / 0.0%
End flow relative error1.75e-08< 4e-06
modflow6_mirrored
pass
Gradient direction relative error7.37e-09< 1e-07
Head max abs error9.39e-09 m< 2e-07 m0.0% / 0.0%
End flow relative error3.49e-07< 4e-06

Measured on 2026-10-26, commit d0f510b65 with uncommitted changes, version 2.0.0a5, a local run. The last column gives the measured value and the threshold as shares of the head drop over the depth of the window, 0.288 to 0.288 m.

-9-1elevation (m)105105m+1-1minus the reference
Head against elevation at the middle of the section, head
referenceMF6
-9-1elevation (m)105105m+1-1minus the reference
Head against elevation at the middle of the section, head
referencemodflow6_mirrored

Why these thresholds

  • Thresholds of modflow6, modflow6_mirrored: Derived from the solver closure. XT3D carries a linear head exactly, so the window holds no discretization error. What is left is the linear solve, closed at 1e-9 m, and end effects 33 decay lengths away. The bounds are about ten times the largest error of the four runs of the two K tensor cases, both signs. Measured here at +20 and -20 deg: gradient direction 4.2e-10 and 7.4e-9, head 5.2e-10 and 9.4e-9 m, end flow 1.8e-8 and 3.5e-7. A sign error on ANGLE2 gives a direction error of 2, the two-point flux without XT3D, which drops ANGLE2, a direction error of 1, a head error of 0.17 m and 2.2 times the flow.

Schedule. modflow6, modflow6_mirrored: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

The flow sets K, Kv (K33) and ANGLE2 through [flow.param], HydroModPy writes them to the NPF package with ANGLE1 and ANGLE3 at zero and XT3D on, and the run stores the heads of the five layers and the constant-head flows. MODFLOW 6 turns K11 from +x toward +z for a positive ANGLE2, so the head rises with elevation when the flow runs east. The opposite sign flips the vertical head gradient, and an axis error or the two-point flux without XT3D changes or removes it: each moves the heads by a share of the 0.29 m drop over the depth. The mirrored variant runs ANGLE2 = -20 deg against its own reference.

Thresholdmodflow6modflow6_mirrored
Gradient direction relative error <1e-071e-07
Head max abs error (m) <2e-072e-07
End flow relative error <4e-064e-06

From validation_cases/analytical/steady/k_tensor_tilted_section_2d/: modflow6 reads tolerances.toml, modflow6_mirrored reads tolerances.toml.

Run it alone: python -m validation_cases.analytical.steady.k_tensor_tilted_section_2d.run_case

Test functions

  • K tensor tilted section 2d carries the exact uniform flow.

File tests/validation/analytical/steady/test_k_tensor_tilted_section_2d.py. Markers: analytical, fast, steady, validation.

Steady linearized unconfined drainage case#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq

Not run on

  • Boussinesq default: The default local engine closes the land surface with a regularized partition that releases at the surface all the water a cell receives once its head reaches the drain elevation. It cannot hold a head above the drain, so the finite-conductance drain flux stays at zero.

Compared with: steady linearized unconfined profile with distributed top drainage.

\[T_0\,\frac{\mathrm{d}^2u}{\mathrm{d}x^2}-\lambda_d\,u=0,\qquad u=h-z_d,\qquad \lambda_d=\frac{C_d}{A}=\frac{K}{b}\]
\[u(x)=u_w\frac{\sinh\left(\beta(L-x)\right)}{\sinh\left(\beta L\right)}+u_e\frac{\sinh\left(\beta x\right)}{\sinh\left(\beta L\right)},\qquad \beta=\sqrt{\frac{\lambda_d}{T_0}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE3.15e-07 m< 7e-07 m0.0% / 0.0%
Head-profile max abs error6.06e-07 m< 1.3e-06 m0.0% / 0.0%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE0.000123 m< 0.00025 m0.0% / 0.1%
Head-profile max abs error0.000193 m< 0.0004 m0.0% / 0.1%
Cross-row head spread1.08e-06 m< 5e-06 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.000273 m< 0.00055 m0.1% / 0.1%
Head-profile max abs error0.000369 m< 0.00075 m0.1% / 0.2%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE8.78e-05 m< 0.00018 m0.0% / 0.0%
Head-profile max abs error0.00018 m< 0.00036 m0.0% / 0.1%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE4.21e-06 m< 8.5e-06 m0.0% / 0.0%
Head-profile max abs error4.3e-06 m< 8.6e-06 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 0.397 to 0.4 m.

199x (m)5.86.2m+0.00037-0.00037minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesq

Why these thresholds

  • Thresholds of modflow_nwt: Twice the MODFLOW-NWT measurement with the validation profile (head closure 1e-9 m): RMSE 3.2e-7 m, max error 6.1e-7 m. The case is linear (heads above the cell top, full cell thickness), and the centered scheme gives about 4e-7 m on the 50-column grid.
  • Thresholds of boussinesq: Twice the error measured with the PETSc VI engine on the 50 x 5 strip of equal-area triangles (2 m2): RMSE 4.2e-6 m, max error 4.3e-6 m, an almost uniform offset. The drain is C * max(h - z_top, 0) with the explicit conductance C = K * A / b = 5e-8 m2/s on every cell; a positive value is what lifts the upper obstacle, and a scalar per cell gives the leakance K / b only because the cells have equal areas. A column holds two triangles whose centroids sit at dx/3 and 2 dx/3; their mean exceeds the reference at the column center by u'' (dx/6)^2 / 2 = 4.1e-6 m. Against the reference averaged over the two centroids the strip reads RMSE 8.8e-8 m. The heads sit at the centroid of the triangle that owns a side edge, dx/3 inside the face. The drain moves the profile by up to 9.0e-2 m and a 10 % change of the leakance by 8.9e-3 m, three orders above the bound. The strip is uniform across rows, so a row spread is solver noise: 9e-16 m measured; the bound is 1e-8 m.
  • Thresholds of modflow6: MODFLOW 6 stops at its default head closure of 1e-4 m, which is the whole error of this case. Twice the measurement: RMSE 1.2e-4 m, max error 1.9e-4 m. MODFLOW-NWT closes at 1e-9 m and reads 3.2e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 352-triangle strip: RMSE 2.7e-4 m, max error 3.7e-4 m. Each drain takes C = K * cell_area / b, so the leakance K / b is the same on every triangle and the 1D reference holds on this mesh. With a head closure of 1e-7 m the strip gives an RMSE of 1.8e-4 m, and 3.6e-5 m on a mesh of 1588 triangles: the triangle error falls with the mesh, and the rest is the default MODFLOW 6 head closure of 1e-4 m, as on the grid. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: RMSE 8.8e-5 m, max error 1.8e-4 m, below the triangles (2.7e-4 m and 3.7e-4 m). Each drain takes C = K * dual_cell_area / b, so the leakance K / b is the same on every dual cell and the 1D reference holds on this mesh. The heads are posed on the faces, where the cells are seeded. Each cell is read at its node and the profile is the area-weighted mean per 2 m column, for the model and the reference alike; one column holds no node and is filled by index. What is left is the default MODFLOW 6 head closure of 1e-4 m, as on the triangles. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.rmse 1.8e-4 (measure 8.78e-5, default head closure of 1e-4 m); head_profile.max_abs_error 3.6e-4 (measure 1.8e-4, default head closure of 1e-4 m).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq
Head-profile RMSE (m) <7e-070.000250.000550.000188.5e-06
Head-profile max abs error (m) <1.3e-060.00040.000750.000368.6e-06
Cross-row head spread (m) <1e-055e-061e-091e-091e-08

From validation_cases/analytical/steady/linearized_unconfined_drainage_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml.

Run it alone: python -m validation_cases.analytical.steady.linearized_unconfined_drainage_1d.run_case

Test functions

  • Linearized unconfined drainage 1d matches reference profile.

File tests/validation/analytical/steady/test_linearized_unconfined_drainage_1d.py. Markers: analytical, fast, steady, validation.

Steady linearized unconfined hillslope-drainage case#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq

Not run on

  • Boussinesq default: The default local engine closes the land surface with a regularized partition that releases at the surface all the water a cell receives once its head reaches the drain elevation. It cannot hold a head above the drain, so the finite-conductance drain flux stays at zero.

Compared with: steady linearized solution of T h'' - (K / b) (h - z_top) = 0.

\[T_0\,\frac{\mathrm{d}^2u}{\mathrm{d}x^2}-\lambda_d\,u=0,\qquad u=h-z_{\mathrm{top}}(x),\qquad \lambda_d=\frac{K}{b}\]
\[z_{\mathrm{top}}(x)=z_0+A\left(1-\frac{x-x_{\min}}{L}\right),\qquad u(x)=u_w\frac{\sinh\left(\beta(L-x)\right)}{\sinh\left(\beta L\right)}+u_e\frac{\sinh\left(\beta x\right)}{\sinh\left(\beta L\right)}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Head-profile RMSE1.54e-05 m< 3.2e-05 m0.0% / 0.0%
Head-profile max abs error2.01e-05 m< 4.1e-05 m0.0% / 0.0%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
modflow6
pass
Head-profile RMSE4.68e-05 m< 0.0001 m0.0% / 0.0%
Head-profile max abs error7.04e-05 m< 0.00015 m0.0% / 0.0%
Cross-row head spread4.55e-07 m< 1e-05 m0.0% / 0.0%
modflow6_irregular_tri
pass
Head-profile RMSE0.000233 m< 0.00047 m0.0% / 0.0%
Head-profile max abs error0.000641 m< 0.0013 m0.0% / 0.1%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Head-profile RMSE0.000222 m< 0.00044 m0.0% / 0.0%
Head-profile max abs error0.000615 m< 0.0012 m0.0% / 0.1%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Head-profile RMSE1.19e-05 m< 2.4e-05 m0.0% / 0.0%
Head-profile max abs error1.25e-05 m< 2.6e-05 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference, 1.99 to 2 m.

199x (m)5.257.25m+0.00064-0.00064minus the reference
Head profile, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesq

Why these thresholds

  • Thresholds of modflow_nwt: Twice the MODFLOW-NWT measurement with the validation profile: RMSE 1.5e-5 m, max error 2.0e-5 m on the 50-column grid. The heads sit above the cell top, so the case is linear and Newton plays no part.
  • Thresholds of boussinesq: Twice the error measured with the PETSc VI engine on the 50 x 5 strip of equal-area triangles (2 m2): RMSE 1.19e-5 m, max error 1.25e-5 m, an almost uniform offset. The drain is C * max(h - z_top, 0) with the explicit conductance C = K * A / b = 5e-6 m2/s on every cell, at the cell top sampled at the centroid; a positive value is what lifts the upper obstacle, and a scalar per cell gives the leakance K / b only because the cells have equal areas. A column holds two triangles whose centroids sit at dx/3 and 2 dx/3; their mean exceeds the reference at the column center by 7.3e-6 m, and against the reference averaged over the two centroids the strip reads RMSE 5.0e-6 m, max 6.6e-6 m. The remaining 5e-6 m was not traced. The drain moves the profile by up to 0.136 m and a 10 % change of the leakance by 6.9e-3 m, so the bound still tests the drain. The strip is uniform across rows, so a row spread is solver noise: 9e-16 m measured; the bound is 1e-8 m.
  • Thresholds of modflow6: MODFLOW 6 stops at its default head closure of 1e-4 m, three times the error of the case. Twice the measurement: RMSE 4.7e-5 m, max error 7.0e-5 m. MODFLOW-NWT closes at 1e-9 m and reads 1.5e-5 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the 352-triangle strip: RMSE 2.3e-4 m, max error 6.4e-4 m. Each drain takes C = K * cell_area / b, so the leakance K / b is the same on every triangle and the 1D reference holds on this mesh. With a head closure of 1e-6 m the RMSE goes from 2.7e-4 m on this strip to 1.2e-4 m on a mesh of 1588 triangles, and the max error from 6.1e-4 m to 5.2e-4 m, then in the first bin, next to the fixed head. The heads are posed at the mean centroid of the triangles that own a boundary edge, and the reference is averaged over the same x bins as the model. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: RMSE 2.2e-4 m, max error 6.1e-4 m, equal to the triangles (2.3e-4 m and 6.4e-4 m). The topography is sampled at the nodes and each drain sits at the cell top, with C = K * dual_cell_area / b, so the leakance K / b is the same on every dual cell. The heads are posed on the faces, where the cells are seeded. Each cell is read at its node and the profile is the area-weighted mean per 2 m column, for the model and the reference alike. What is left is the default MODFLOW 6 head closure of 1e-4 m, as on the triangles. The row spread is zero by construction: the loader tiles one profile. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: head_profile.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq
Head-profile RMSE (m) <3.2e-050.00010.000470.000442.4e-05
Head-profile max abs error (m) <4.1e-050.000150.00130.00122.6e-05
Cross-row head spread (m) <1e-051e-051e-091e-091e-08

From validation_cases/analytical/steady/linearized_unconfined_hillslope_drainage_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml.

Run it alone: python -m validation_cases.analytical.steady.linearized_unconfined_hillslope_drainage_1d.run_case

Test functions

  • Linearized unconfined hillslope drainage 1d matches reference profile.

File tests/validation/analytical/steady/test_linearized_unconfined_hillslope_drainage_1d.py. Markers: analytical, fast, steady, validation.

Closed-form solutions, transient#

A 50 mm pulse through the soil reservoir, driven end to end by the orchestrator#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The test calls compute_soil_forcings (the soil reservoir kernel) and reads the recharge it returns; no groundwater solver is run. The result is a forcing, so it cannot depend on the solver.

Compared with: the closed form of a 50 mm pulse on a full soil routed through a linear reservoir, Q(0) = 50 (1 - k a), Q(t >= 1) = 50 k a^2 exp(-(t - 1) / k), a = 1 - exp(-1 / k).

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
2.0
pass
Largest daily recharge error3.55e-15 mm< 1e-12 mm
Recharge volume error0 mm< 1e-12 mm
Error on the day 95 % of the pulse has drained0.00854 d<= 1 d
20.0
pass
Largest daily recharge error1.24e-14 mm< 1e-12 mm
Recharge volume error7.11e-15 mm< 1e-12 mm
Error on the day 95 % of the pulse has drained0.0854 d<= 1 d
5.0
pass
Largest daily recharge error2.66e-15 mm< 1e-12 mm
Recharge volume error0 mm< 1e-12 mm
Error on the day 95 % of the pulse has drained0.0213 d<= 1 d

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run. The last column gives the measured value and the threshold as shares of the peak recharge of the closed form, 2.38 to 15.5 mm/d.

0129day2.48e-2710.7mm/d+1-1minus the reference
Daily recharge after a 50 mm pulse, recharge
reference2.0
01.21e+03day1.4e-261.23mm/d+1-1minus the reference
Daily recharge after a 50 mm pulse, recharge
reference20.0
0309day1.45e-264.68mm/d+1-1minus the reference
Daily recharge after a 50 mm pulse, recharge
reference5.0

Schedule. This file: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Same closed form as the kernel-level unit test (tests/unit/model/soil/test_kernel.py), but reached the way a run reaches it: through compute_soil_forcings, with a single SAFRAN cell's precipitation and ETP passed in as FieldRecord and the recharge read back from the FieldRecord it returns.

spinup = "none" starts the soil full - "the state of a soil in a wet winter", its own description says - which is exactly the soil a year of rain has already filled. Section 7 gives the closed form for a pulse landing on that full soil and then routed through a linear reservoir of time constant k: Q(0) = 50(1 - k a), Q(t>=1) = 50 k a^2 exp(-(t-1)/k) with a = 1 - exp(-1/k). t95, the day the cumulative recharge first reaches 95 % of the 50 mm pulse, follows the continuous crossing -k ln(0.05) within the one day the discretization can miss it by.

Thresholds from tests/TOLERANCES.md

  • Row 82: Soil transit store impulse volume, |sum_t Q - 50| over 60 k days, mm: 1e-12 (Machine epsilon. The tail beyond 60 k days holds 50 exp(-60), below 1e-24 mm)
  • Row 86: Routed impulse validation case, t95 against -k ln 0.05, days: 1 (Discretisation. Daily steps: the cumulative recharge crosses 95 % within the day that follows the continuous crossing)

Test functions

  • A routed impulse matches the exponential reservoir.

File tests/validation/analytical/transient/test_a_routed_impulse_matches_the_exponential_reservoir.py. Markers: analytical, fast, transient, validation.

Transient Boussinesq hillslope recharge-step interception case#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: linearized unconfined response around H0 = 5 m, used for the onset time and the early trajectory of the interception front only.

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2}+R_0\,H(t),\qquad \eta_{\mathrm{steady}}(x)=\frac{R_0}{2T_0}\left(L^2-x^2\right)\]
\[z_{\mathrm{top}}(x)=z_{\mathrm{toe}}+S\left(L-x\right),\qquad h(x,t)=z_{\mathrm{top}}(x)\ \text{defines the interception front}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Onset-time error0 day< 5 day
Interception-trajectory RMSE0 m< 1 m0.0% / 2.5%
Interception-trajectory max abs error0 m< 5 m0.0% / 12.5%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
modflow6
pass
Onset-time error0 day< 5 day
Interception-trajectory RMSE0 m< 1 m0.0% / 2.5%
Interception-trajectory max abs error0 m< 5 m0.0% / 12.5%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread3.74e-09 m< 1e-08 m0.0% / 0.0%
modflow6_irregular_tri
pass
Onset-time error10 day< 15 day
Interception-trajectory RMSE4.08 m< 8.2 m13.6% / 27.3%
Interception-trajectory max abs error10 m< 15 m33.3% / 50.0%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
modflow6_voronoi
pass
Onset-time error10 day< 15 day
Interception-trajectory RMSE5 m< 10 m16.7% / 33.3%
Interception-trajectory max abs error10 m< 15 m33.3% / 50.0%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-09 m0.0% / 0.0%
boussinesq
pass
Onset-time error10 day< 15 day
Interception-trajectory RMSE5 m< 9 m16.7% / 30.0%
Interception-trajectory max abs error10 m< 15 m33.3% / 50.0%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread8.88e-16 m< 1e-08 m0.0% / 0.0%
boussinesq_local
pass
Onset-time error20 day< 25 day
Interception-trajectory RMSE5.77 m< 12 m19.2% / 40.0%
Interception-trajectory max abs error10 m< 15 m33.3% / 50.0%
Trajectory reversal0 m< 1e-06 m0.0% / 0.0%
Maximum positive clearance above topography0 m< 1e-06 m0.0% / 0.0%
Cross-row head spread7.99e-09 m< 1e-07 m0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the travel of the reference front, 30 to 40 m.

10120time (d)355395m+1-1minus the reference
Seepage front position, front position
referenceNWTMF6
10120time (d)355395m+10-10minus the reference
Seepage front position, front position
referenceMF6 triangles
10120time (d)355395m+10-10minus the reference
Seepage front position, front position
referenceMF6 Voronoi
0110time (d)365395m+10-10minus the reference
Seepage front position, front position
referenceBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of boussinesq: PETSc TS VI, the boussinesq variant. The onset is read on 10-day periods and the contact on 10 m columns, so both errors move in steps: measured 10 days and 10 m, one step each, and the bounds sit half a step above. The trajectory RMSE, 5.0 m, keeps its previous bound of 9 m, 1.8 times the measurement. Reversal and clearance are solver-closure bounds. Row spread: 9e-16 m measured, bound 1e-8 m.
  • Thresholds of boussinesq_local: The default local engine, regularized partition closure, one backward-Euler step a period. The onset is read on 10-day periods and the contact on 10 m columns: measured 20 days (two periods, PETSc reads one) and 10 m, and the bounds sit half a step above. Trajectory RMSE twice the measured 5.77 m (6.45 m until 2026-10-10, when the release followed the saturated share of the cell). Reversal and clearance are solver-closure bounds. Row spread: 8e-9 m measured, bound 1e-7 m.
  • Thresholds of modflow6: MODFLOW 6, same model as MODFLOW-NWT (40 x 3 cells of 10 m, 12 periods of 10 days, DRN at the land surface with b = 1 m), IMS closed at 1e-8 m. The front sits on the reference column at every period: onset error 0 d, trajectory error 0 m, so the bounds sit half a step above, 5 d and 5 m, and fail on any miss (a miss reads 10 m, RMSE 2.9 m). The closest the contact test comes to its threshold is 1.6e-3 m. The head stays below the surface for the 120 days, so the DRN never acts: the largest clearance is 0 on the held cell. Reversal is a solver-closure bound. Row spread: 3.7e-9 m measured, bound 1e-8 m.
  • Thresholds of modflow6_irregular_tri: MODFLOW 6 on 586 irregular triangles of about 6 m (DISV), 12 periods of 10 days, DRN at the land surface with b = 1 m. The surface is 5.0 m at the mean centroid of the two boundary triangles of the east face (x = 398.29 m), where the reference poses its outlet, and comes from a 2.5 m raster. Model and reference are averaged over the same 10 m bins, weighted by triangle area. The onset is one period late (50 d against 40 d): at x = 385 m and 40 d the reference sits 0.2 mm inside the 7.5 cm contact threshold and the model 1.7 mm below it, so the column turns one step later. The front is one column behind at 40 d and ahead at 120 d: trajectory RMSE 4.1 m, max 10 m. The bounds sit half a step above the onset and max and twice the RMSE. The head stays below the surface for the 120 days (largest clearance -2.8e-3 m), so the DRN never acts. Reversal is a solver-closure bound. The row spread is zero by construction: the loader tiles one profile.
  • Thresholds of modflow6_voronoi: MODFLOW 6 on the 315-node Voronoi dual of the same triangles, 12 periods of 10 days, DRN at the land surface with b = 1 m. The surface is 5.0 m on the nodes of the east face (x = 400 m), from a 2.5 m raster. Each cell is read at its node and the profile is the area-weighted mean per 10 m column, for the model and the reference alike. The onset is one period early (50 d against 60 d: the reference reads 2.6e-4 m from its own contact threshold), so the front is one column ahead at 3 of 12 periods (50, 80 and 120 d): onset error 10 d, trajectory RMSE 5.0 m, max 10 m. The bounds sit half a step above the onset and max and twice the RMSE. The head stays below the surface for the 120 days (largest clearance -2.8e-3 m), so the DRN never acts. Reversal is a solver-closure bound. The row spread is zero by construction. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: uniformity.row_spread 1e-9 (measure 8.88e-16, float rounding of the area-weighted mean).
  • Thresholds of modflow_nwt: MODFLOW-NWT, 40 x 3 cells of 10 m, 12 periods of 10 days, the land surface a DRN of conductance K * area / b with b = 1 m. The surface is 5.0 m, the outlet head, at the center of the last column (x = 395 m, where the model holds the head), and the reference is the linearized response with its outlet there. The onset is read on 10-day periods and the contact on 10 m columns with a 7.5 cm tolerance: the front sits on the reference column at every period (onset error 0 d, trajectory error 0 m), so the bounds sit half a step above, 5 d and 5 m, and fail on any miss (a miss reads 10 m, RMSE 2.9 m). The closest the contact test comes to its threshold is 1.6e-3 m. The head stays below the surface for the 120 days, so the DRN never acts: the largest clearance is 0 on the held cell. Where it acts the head stands above the surface by (R + K S^2) b / K = 3.9e-4 m (measured on the steady case), so the 1e-6 m bound fails a run in which the water table reaches the surface. Reversal is a solver-closure bound. Row spread is zero by construction of the rows.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc. boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Onset-time error (day) <5515151525
Interception-trajectory RMSE (m) <118.210912
Interception-trajectory max abs error (m) <5515151515
Trajectory reversal (m) <1e-061e-061e-061e-061e-061e-06
Maximum positive clearance above topography (m) <1e-061e-061e-061e-061e-061e-06
Cross-row head spread (m) <1e-091e-081e-091e-091e-081e-07

From validation_cases/analytical/transient/boussinesq_hillslope_recharge_step_interception_1d/: modflow_nwt reads tolerances_modflow_nwt.toml, modflow6 reads tolerances_modflow6.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.boussinesq_hillslope_recharge_step_interception_1d.run_case

Test functions

  • Boussinesq hillslope recharge step interception 1d matches onset approximation.

File tests/validation/analytical/transient/test_boussinesq_hillslope_recharge_step_interception_1d.py. Markers: analytical, transient, validation.

Thin-aquifer Brutsaert recession benchmark#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: nonlinear late recession of Brutsaert and Nieber (1977) for a strip drained on one side, Q(t) = (Q*^(-1/2) + a t / 2)^(-2).

\[-\frac{dQ}{dt}=a\,Q^{3/2},\qquad Q(t)=\left(Q_*^{-1/2}+\frac{a\,t}{2}\right)^{-2},\qquad a=\frac{C\,\sqrt{K}\,W}{S_y\,(B\,W)^{3/2}}\]

\(K\) is the hydraulic conductivity, \(S_y\) the specific yield, \(B\) the drainage length, \(W\) the outlet width and \(C = 3\,I^{3/2} = 2.4025\) with \(I=\int_0^1 p\,(1-p^3)^{-1/2}\,dp\). Twice \(C\) is the 4.804 of Brutsaert and Nieber (1977), written for a channel drained from both banks (validation_cases/analytical/transient/brutsaert_reference.py).

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Recession coefficient relative error0.0398< 0.05
Recession exponent error0.00111< 0.01
Late relative discharge RMSE0.0325< 0.04
Cross-row head spread0 m< 1e-05 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6
pass
Recession coefficient relative error0.0404< 0.05
Recession exponent error0.00167< 0.01
Late relative discharge RMSE0.0329< 0.04
Cross-row head spread4.46e-06 m< 1e-05 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6_irregular_tri
pass
Recession coefficient relative error0.0231< 0.05
Recession exponent error0.000942< 0.01
Late relative discharge RMSE0.0188< 0.04
Cross-row head spread3.33e-16 m< 1e-05 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6_voronoi
pass
Recession coefficient relative error0.0202< 0.05
Recession exponent error0.000702< 0.01
Late relative discharge RMSE0.0165< 0.04
Cross-row head spread3.33e-16 m< 1e-05 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
boussinesq
pass
Recession coefficient relative error0.00233< 0.0047
Recession exponent error0.00107< 0.0023
Late relative discharge RMSE0.00213< 0.0043
Cross-row head spread3.33e-16 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
boussinesq_local
pass
Recession coefficient relative error0.00233< 0.0047
Recession exponent error0.00107< 0.0023
Late relative discharge RMSE0.00213< 0.0043
Cross-row head spread3.33e-16 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the initial discharge of the reference, 1.24e-05 to 1.42e-05 m3/s.

16128time (d)1.21e-061.35e-05m3/s+1.1e-06-1.1e-06minus the reference
Discharge at the outlet, discharge
reference of each runNWTMF6
16128time (d)1.27e-061.41e-05m3/s+6.8e-07-6.8e-07minus the reference
Discharge at the outlet, discharge
reference of each runMF6 trianglesMF6 Voronoi
16128time (d)1.31e-061.42e-05m3/s+9.1e-08-9.1e-08minus the reference
Discharge at the outlet, discharge
reference of each runBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of boussinesq: Twice the error measured with PETSc on 40 x 24 cells and 4 backward-Euler steps a day, the steps MODFLOW takes: coefficient error -0.0023, |b - 3/2| 0.0011, late RMSE 0.0021. MODFLOW reads +4 % on the coefficient from upstream weighting next to the dry outlet; the Boussinesq solver takes the mean thickness at a face and does not carry that error. The row spread (3e-16 m measured) and monotonicity bounds are those of tolerances.toml.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine, which runs scipy_sparse on these 1920 cells and takes the 4 backward-Euler steps a day of the case: coefficient error -0.0023, |b - 3/2| 0.0011, late RMSE 0.0021, the PETSc values to three digits. The Newton closure of the case is 1e-12 m3/s (see config_boussinesq_local.toml): with the default 1e-9 m3/s the coefficient reads 2.2 % off. The row spread (3e-16 m measured) and monotonicity bounds are those of the PETSc variant.
  • Thresholds of modflow6_voronoi: Twice the error measured on 2026-10-26 on the Voronoi dual of the triangle strip (rule B9 of the unified mesh): coefficient error +2.03 %, |b - 3/2| 7.8e-4, late RMSE 1.65 %. The outlet nodes lie on the east edge, so the drainage length is the full 50 m and the first-order upstream weighting next to the dry outlet is the only error. The shared band of tolerances.toml (0.05, 0.01, 0.04) was written for the MODFLOW 6 structured grid and MODFLOW-NWT, which read +4 %; the triangles read +2.3 %. The row spread (3.3e-16 m measured) and the monotonicity bound stay at the values of tolerances.toml: they sit at a numerical floor, where twice the measure guarantees nothing.
  • Recession coefficient relative error: modflow_nwt allows 0.05, 11 times the 0.0047 of boussinesq. No reason is written for this difference.
  • Recession coefficient relative error: modflow6 allows 0.05, 11 times the 0.0047 of boussinesq. No reason is written for this difference.
  • Recession coefficient relative error: modflow6_irregular_tri allows 0.05, 11 times the 0.0047 of boussinesq. No reason is written for this difference.
  • Recession exponent error: modflow_nwt allows 0.01, 6 times the 0.00157 of modflow6_voronoi. No reason is written for this difference.
  • Recession exponent error: modflow6 allows 0.01, 6 times the 0.00157 of modflow6_voronoi. No reason is written for this difference.
  • Recession exponent error: modflow6_irregular_tri allows 0.01, 6 times the 0.00157 of modflow6_voronoi. No reason is written for this difference.
  • Late relative discharge RMSE: modflow_nwt allows 0.04, 9 times the 0.0043 of boussinesq. No reason is written for this difference.
  • Late relative discharge RMSE: modflow6 allows 0.04, 9 times the 0.0043 of boussinesq. No reason is written for this difference.
  • Late relative discharge RMSE: modflow6_irregular_tri allows 0.04, 9 times the 0.0043 of boussinesq. No reason is written for this difference.
  • Cross-row head spread: modflow_nwt allows 1e-05, 10 times the 1e-06 of boussinesq. No reason is written for this difference.
  • Cross-row head spread: modflow6 allows 1e-05, 10 times the 1e-06 of boussinesq. No reason is written for this difference.
  • Cross-row head spread: modflow6_irregular_tri allows 1e-05, 10 times the 1e-06 of boussinesq. No reason is written for this difference.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. boussinesq: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Recession coefficient relative error <0.050.050.050.04060.00470.0047
Recession exponent error <0.010.010.010.001570.00230.0023
Late relative discharge RMSE <0.040.040.040.0330.00430.0043
Cross-row head spread (m) <1e-051e-051e-051e-051e-061e-06
Maximum positive discharge increment (m3/s) <1e-121e-121e-121e-121e-121e-12

From validation_cases/analytical/transient/brutsaert_recession_boussinesq_thin_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.brutsaert_recession_boussinesq_thin_1d.run_case

Test functions

  • Brutsaert recession boussinesq thin 1d matches reference recession.

File tests/validation/analytical/transient/test_brutsaert_recession_boussinesq_thin_1d.py. Markers: analytical, slow, transient, validation.

Deep-aquifer Brutsaert recession benchmark#

pass, known gap end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Known gap: modflow6_voronoi

Known gap. The fitted decay rate is 0.66 % under the linearized law, 0.22 % on the triangles. Backward Euler explains 0.33 % at 100 steps a period (0.09 % at 400, as on the structured grid, which has no space error). The rest, 0.32 % at 400 steps, is spatial. The lowest eigenvalue of the dual operator, assembled from the stored cell polygons (K D L / d between nodes, Sy times the polygon area, the 3 outlet nodes held, no time stepping), is 0.346 % under pi^2 K D / (4 Sy B^2) with B = 400 m. With B = 400.69 m, the length that eigenvalue implies, the same run reads -0.318 % on the rate and 0.52 % on the late RMSE, the time-stepping values. The mesh is irregular and its outlet face holds 3 nodes, 15 m apart; a finer bundle was not built.

Compared with: linearized Boussinesq recession of a deep strip after steady recharge, whose tail is the exponential law of Brutsaert and Nieber (1977).

\[Q(t)=Q_0\,\frac{B}{B-d}\sum_{n\ge 1}\frac{8\cos\!\left(\frac{k\pi d}{2B}\right)}{k^2\pi^2}\,e^{-k^2 a t},\qquad k=2n-1,\qquad a=\frac{\pi^2\,K\,D}{4\,S_y\,B^2}\]

\(Q_0\) is the steady discharge at the end of the warm-up, \(K\) the hydraulic conductivity, \(S_y\) the specific yield, \(D\) the saturated thickness at the outlet, \(B\) the drainage length and \(d\) the length near the outlet that the model does not recharge. The first term alone is the late exponential law (validation_cases/analytical/transient/brutsaert_reference.py).

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Relative discharge RMSE0.000845< 0.002
Relative discharge max abs error0.00223< 0.005
Recession coefficient relative error0.00325< 0.005
Recession exponent error0.000271< 0.002
Late relative discharge RMSE0.00575< 0.015
Cross-row head spread0 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6
pass
Relative discharge RMSE0.000836< 0.002
Relative discharge max abs error0.00221< 0.005
Recession coefficient relative error0.00343< 0.005
Recession exponent error0.000472< 0.002
Late relative discharge RMSE0.00613< 0.015
Cross-row head spread3.4e-08 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6_irregular_tri
pass
Relative discharge RMSE0.000935< 0.002
Relative discharge max abs error0.00243< 0.005
Recession coefficient relative error0.00224< 0.005
Recession exponent error0.00031< 0.002
Late relative discharge RMSE0.00324< 0.015
Cross-row head spread7.11e-15 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
modflow6_voronoi
pass, known gap
Relative discharge RMSE0.000438< 0.0009
Relative discharge max abs error0.000692< 0.0014
Recession coefficient relative error0.00663< 0.0073
Recession exponent error0.000349< 0.0007
Late relative discharge RMSE0.0195< 0.022
Cross-row head spread7.11e-15 m< 1e-09 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
boussinesq
pass
Relative discharge RMSE0.000837< 0.002
Relative discharge max abs error0.00221< 0.005
Recession coefficient relative error0.00312< 0.005
Recession exponent error0.000271< 0.002
Late relative discharge RMSE0.00537< 0.015
Cross-row head spread7.11e-15 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%
boussinesq_local
pass
Relative discharge RMSE0.000837< 0.002
Relative discharge max abs error0.00221< 0.005
Recession coefficient relative error0.00312< 0.005
Recession exponent error0.000271< 0.002
Late relative discharge RMSE0.00537< 0.015
Cross-row head spread4.46e-14 m< 1e-06 m
Maximum positive discharge increment0 m3/s< 1e-12 m3/s0.0% / 0.0%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the initial discharge of the reference, 0.000166 to 0.000169 m3/s.

1090time (d)6.81e-070.000169m3/s+6.7e-07-6.7e-07minus the reference
Discharge at the outlet, discharge
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default

Why these thresholds

  • Thresholds of modflow_nwt, modflow6, modflow6_irregular_tri: The run stores the mean discharge of each 10-day period, over its 100 backward-Euler steps, and the reference is the mean of the series solution over the same period. Twice the measured error: relative RMSE 8.4e-4 to 9.3e-4, maximum 2.2e-3 to 2.4e-3, on the first period, where the fast modes decay within a few steps. The maximum falls with the step, 6.4e-3, 2.2e-3 and 1.15e-3 at 25, 100 and 400 steps a period on MODFLOW 6, down to a floor of 1.1e-3 on the first two periods that a 5 m grid leaves where it is. Until 2026-10-10 the run stored the discharge of the last step of each period and the reference was read at the period end: RMSE 1.3e-4, maximum 2e-4.
  • Thresholds of boussinesq: The band of tolerances.toml, shared with MODFLOW. The PETSc runtime takes the 100 backward-Euler steps a period of the case, as MODFLOW does, stores the mean discharge of each period and reads relative RMSE 8.4e-4, maximum 2.2e-3 against the period means of the series solution, decay rate -0.31 %, |b - 1| 2.7e-4 and late RMSE 0.0054, against 8.4e-4 to 9.0e-4, 2.2e-3 to 2.3e-3, -0.32 to -0.34 %, 2.7e-4 to 4.7e-4 and 0.0057 to 0.0061 for MODFLOW on the grid. With 4 steps a period (before 2026-10-09) the rate came out 7.6 % low.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. The default 'auto' engine runs local on these 240 cells and takes the 100 backward-Euler steps a period of the case, as MODFLOW does, and stores the mean discharge of each period. With the Newton closure of the case (1e-12 m3/s, see config_boussinesq_local.toml) it reads relative RMSE 8.4e-4, maximum 2.2e-3 against the period means of the series solution, decay rate -0.31 %, |b - 1| 2.7e-4 and late RMSE 0.0054, the PETSc values to three digits, against 8.4e-4 to 9.0e-4, 2.2e-3 to 2.3e-3, -0.32 to -0.34 %, 2.7e-4 to 4.7e-4 and 0.0057 to 0.0061 for MODFLOW on the grid. Before 2026-10-09 this engine took one step a period whatever the case asked.
  • Thresholds of modflow6_voronoi: The outlet nodes lie on the east edge, so the drainage length is the full 400 m. Measured on the 321-node dual: discharge RMSE 4.4e-4 and maximum 6.9e-4 (twice that), rate error -0.663 % and late RMSE 1.955 % (1.1 times, with the gap), exponent error 3.5e-4 (twice that). The run is deterministic: a relative perturbation of K by 1e-12 to 5e-12 moves the rate error by less than 1e-11. The dual keeps the ILUT fill of 40 of the triangle config, which stops the linear solver from stalling on this matrix. The row spread is zero by construction: the loader bins the dual by node abscissa into one profile (7e-15 m measured). B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: recession.exponent_abs_error 7e-4 to 6.99e-4 (measure 3.49e-4); discharge.relative_rmse 9e-4 to 8.76e-4 (measure 4.38e-4); discharge.relative_max_error 0.0014 to 0.00139 (measure 6.92e-4). Kept at a numerical floor, where twice the measure guarantees nothing: uniformity.row_spread 1e-9 (measure 7.11e-15, float rounding of the area-weighted mean).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. boussinesq: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Relative discharge RMSE <0.0020.0020.0020.0008760.0020.002
Relative discharge max abs error <0.0050.0050.0050.001390.0050.005
Recession coefficient relative error <0.0050.0050.0050.00730.0050.005
Recession exponent error <0.0020.0020.0020.0006990.0020.002
Late relative discharge RMSE <0.0150.0150.0150.0220.0150.015
Cross-row head spread (m) <1e-061e-061e-061e-091e-061e-06
Maximum positive discharge increment (m3/s) <1e-121e-121e-121e-121e-121e-12

From validation_cases/analytical/transient/brutsaert_recession_linearized_deep_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.brutsaert_recession_linearized_deep_1d.run_case

Test functions

  • Brutsaert recession linearized deep 1d matches reference recession.

File tests/validation/analytical/transient/test_brutsaert_recession_linearized_deep_1d.py. Markers: analytical, slow, transient, validation.

Check the Brutsaert recession laws against a fine Dupuit solution of the same strip#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: It compares the closed-form recession helpers with a SciPy BDF solve of the strip written inside the test; no HydroModPy solver is called. The solver runs of the same laws are the test_brutsaert_recession_* files.

No reference named. The text of the test says what it checks.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Linear series matches a fine deep strip with an unrecharged outlet strip
pass
no metric recorded; the asserts of the test decide
Nonlinear law matches a fine dupuit strip drained on one side
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. This file: runs in Nightly / validation no PETSc, Weekly / Cross Platform. Jobs.

What the test does, all thresholds, the file

The reference of the two Brutsaert cases is a closed form. This test solves the Boussinesq equation of the strip on a fine finite-volume grid with SciPy, from the same steady water table under recharge, and asks the closed forms to match it. It pins the constant of the nonlinear law for a strip drained on one side and the modal weights of the linear series, without running a solver.

Test functions

  • Nonlinear law matches a fine dupuit strip drained on one side.
  • Linear series matches a fine deep strip with an unrecharged outlet strip.

File tests/validation/analytical/transient/test_brutsaert_reference.py. Markers: analytical, transient, validation.

MODFLOW 6 GWT first-order decay against its closed form#

pass modflow6

Not run on

  • NWT: MODFLOW-NWT has no GWT. HydroModPy transports on NWT with MT3DMS, a separate code whose decay rate is in 1/day, so the per-second GWT clock this file guards does not exist there.
  • MF6 triangles, MF6 Voronoi: The case is one closed cell with no flow, advection or dispersion, so its result cannot depend on the mesh. A triangle or Voronoi DISV would repeat the same cell.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no transport: the registry holds no transport adapter for it and the solver page lists its transport as refused. This file runs MODFLOW 6 GWT.

Compared with: the first-order decay C(t) = C0 exp(-k t) of a closed cell.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
Largest relative concentration error at 3 times0.00265< 0.01

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. This file: runs in Nightly / validation no PETSc, Weekly / Cross Platform. Jobs.

What the test does, all thresholds, the file

With no advection and no dispersion, a uniform initial concentration decays as C(t) = C0 * exp(-k t) under the MF6 MST first-order decay term. The MF6 GWT clock is SECONDS, so the decay rate k is in 1/s. This guards the per-second unit contract for transport.modflow6gwt.parameters.rate_decay: a per-day value would be ~86400x too large and annihilate the solute.

Tolerance rationale - tests/TOLERANCES.md row 35: max relative concentration error < 1 % (decay is exact in MST; the allowance covers finite time-stepping).

Thresholds from tests/TOLERANCES.md

  • Row 35: MF6 GWT first-order decay 0D, max relative concentration error vs C0*exp(-k t): < 1 % (First-order decay is exact in MF6 MST with no advection or dispersion; small allowance for finite time-stepping)

Test functions

  • Gwt first order decay per second.

File tests/validation/analytical/transient/test_gwt_first_order_decay.py. Markers: allow_subprocess, analytical, mf6, slow, transient, validation.

Growth of a groundwater mound under a rectangle of recharge against Hantush (1967)#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: Hantush (1967) mound under a rectangle of uniform recharge, linearized with the mean saturated thickness b = (hi + hm(t)) / 2 taken at the center hm, solved at each time; S* integrated with scipy.integrate.quad_vec. Carleton (2010, USGS SIR 2010-5102) gives the same form.

\[h^2-h_i^2=\frac{w}{2K}\,\nu t\left[S^*\!\left((l+x)n,(a+y)n\right)+S^*\!\left((l+x)n,(a-y)n\right)+S^*\!\left((l-x)n,(a+y)n\right)+S^*\!\left((l-x)n,(a-y)n\right)\right]\]
\[S^*(\alpha,\beta)=\int_0^1\operatorname{erf}\left(\frac{\alpha}{\sqrt{\tau}}\right)\operatorname{erf}\left(\frac{\beta}{\sqrt{\tau}}\right)d\tau,\qquad \nu=\frac{K\bar b}{S_y},\qquad n=\frac{1}{\sqrt{4\nu t}},\qquad \bar b=\frac{h_i+h_m(t)}{2}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Recharge mound matches hantush boussinesq petsc [boussinesq]
pass
Transect space-time RMSE0.00108 m< 0.0022 m0.1% / 0.3%
Transect space-time max abs error0.00469 m< 0.0094 m0.6% / 1.2%
Centre rise max abs error0.00221 m< 0.0045 m0.3% / 0.6%
Final transect RMSE0.00177 m< 0.0036 m0.2% / 0.5%
Final map max abs error0.00902 m< 0.018 m1.2% / 2.4%
Recharge mound matches hantush default engine [boussinesq_local]
pass
Transect space-time RMSE0.00137 m< 0.0028 m0.2% / 0.4%
Transect space-time max abs error0.00462 m< 0.0093 m0.6% / 1.2%
Centre rise max abs error0.00445 m< 0.0089 m0.6% / 1.2%
Final transect RMSE0.00122 m< 0.0025 m0.2% / 0.3%
Final map max abs error0.0104 m< 0.021 m1.4% / 2.8%
Recharge mound matches hantush modflow [modflow_nwt]
pass
Transect space-time RMSE0.0016 m< 0.0033 m0.2% / 0.4%
Transect space-time max abs error0.00478 m< 0.0096 m0.6% / 1.3%
Centre rise max abs error0.00478 m< 0.0096 m0.6% / 1.3%
Final transect RMSE0.0013 m< 0.0027 m0.2% / 0.4%
Final map max abs error0.00543 m< 0.011 m0.7% / 1.5%
Recharge mound matches hantush modflow [modflow6]
pass
Transect space-time RMSE0.0016 m< 0.0033 m0.2% / 0.4%
Transect space-time max abs error0.00478 m< 0.0096 m0.6% / 1.3%
Centre rise max abs error0.00478 m< 0.0096 m0.6% / 1.3%
Final transect RMSE0.0013 m< 0.0027 m0.2% / 0.4%
Final map max abs error0.00542 m< 0.011 m0.7% / 1.5%
Recharge mound matches hantush modflow [modflow6_irregular_tri]
pass
Transect space-time RMSE0.00143 m< 0.0029 m0.2% / 0.4%
Transect space-time max abs error0.00473 m< 0.0095 m0.6% / 1.3%
Centre rise max abs error0.00457 m< 0.0092 m0.6% / 1.2%
Final transect RMSE0.0012 m< 0.0024 m0.2% / 0.3%
Final map max abs error0.0104 m< 0.021 m1.4% / 2.8%
Recharge mound matches hantush modflow [modflow6_voronoi]
pass
Transect space-time RMSE0.00199 m< 0.004 m0.3% / 0.5%
Transect space-time max abs error0.00525 m< 0.0105 m0.7% / 1.4%
Centre rise max abs error0.00525 m< 0.0105 m0.7% / 1.4%
Final transect RMSE0.00202 m< 0.0041 m0.3% / 0.5%
Final map max abs error0.0045 m< 0.009 m0.6% / 1.2%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference over space and time, 0.752 to 0.752 m.

-600600x (m)5050.8m+0.0047-0.0047minus the reference
Head profile at the last output time, head
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default
0.2510time (d)0.03310.754m+0.0052-0.0052minus the reference
Head rise at the centre, head rise
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesqBoussinesq default
Plan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultPlan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error over position and time, simulated minus reference, one symmetric scale for all panels.

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured against the Hantush mound on the 101 x 101 grid of 20 m with steps of 6 h, MODFLOW-NWT and MODFLOW 6 alike: transect space-time RMSE 1.6e-3 m, max error 4.8e-3 m (the center at day 3), final transect RMSE 1.3e-3 m, final map max 5.4e-3 m, for a mound of 0.75 m. Refined with MODFLOW 6, steps of 3 and 1 h read RMSE 9.5e-4 and 9.1e-4 m on 20 m cells, the floor of the 20 m grid; cells of 6.7 m read 2.0e-3 m with 6 h steps and 4.2e-4 m with 1 h steps (max 1.2e-3 m). That limit is the linearization: a nonlinear finite-difference solution on 6.7 m cells and 45 min steps reads 3.5e-4 m and 1.1e-3 m against the reference.
  • Thresholds of boussinesq: Twice the error measured with PETSc TS VI (4 backward-Euler steps a period) on the conforming triangles of the MODFLOW 6 triangle grid: transect space-time RMSE 1.1e-3 m, max error 4.7e-3 m, center max 2.2e-3 m, final transect RMSE 1.8e-3 m, final map max 9.0e-3 m. The map max sits in the cells where MODFLOW 6 reads its own on these triangles, 20 to 40 m outside the long sides of the rectangle.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine, which runs scipy_sparse on these 6806 conforming triangles with one backward-Euler step a period: transect space-time RMSE 1.37e-3 m, max error 4.6e-3 m, center max 4.4e-3 m, final transect RMSE 1.2e-3 m, final map max 1.04e-2 m. MODFLOW 6 on the same triangles reads the same within 4 %, and its refinement converges to Hantush: the error is the mesh and the step. The run stores the whole recharge, 0.99999999 of the recharged volume. Until 2026-10-10 the surface closure released 3.6 % of the recharge with the water table 10 m under the top, and the mound ended 1.7 cm low.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the conforming triangles, 6806 cells of 10 m under the rectangle and up to 80 m at the sides, whose edges follow the rectangle so each triangle takes all or none of the recharge: transect space-time RMSE 1.4e-3 m, max error 4.7e-3 m, center max 4.6e-3 m, final transect RMSE 1.2e-3 m. The final map max, 1.0e-2 m, sits 20 to 40 m outside the long sides, where triangles of 12 m meet the recharge edge: the two-point flux between centroids is not consistent on a general triangle, and the Boussinesq runtime on the same triangles reads the same cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the Voronoi dual, 3556 cells centered on nodes that face each other across the rectangle edges, so each cell takes all or none of the recharge: transect space-time RMSE 2.0e-3 m, max error 5.3e-3 m (the center at day 3.75), final transect RMSE 2.0e-3 m, final map max 4.5e-3 m. The dual is K-orthogonal: its map error stays at the level of the structured grid. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: final_time.rmse 0.0041 to 0.00404 (measure 0.00202); space_time.rmse 0.004 to 0.00399 (measure 0.00199). Already at twice the measure: final_time.map_max_abs_error 0.009 (measure 0.0045).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. boussinesq: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Transect space-time RMSE (m) <0.00330.00330.00290.003990.00220.0028
Transect space-time max abs error (m) <0.00960.00960.00950.01050.00940.0093
Centre rise max abs error (m) <0.00960.00960.00920.01050.00450.0089
Final transect RMSE (m) <0.00270.00270.00240.004040.00360.0025
Final map max abs error (m) <0.0110.0110.0210.0090.0180.021

From validation_cases/analytical/transient/hantush_recharge_mound_2d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.hantush_recharge_mound_2d.run_case

Test functions

  • Recharge mound matches hantush modflow.
  • Recharge mound matches hantush default engine.
  • Recharge mound matches hantush boussinesq petsc.

File tests/validation/analytical/transient/test_hantush_recharge_mound_2d.py. Markers: analytical, fast, petsc, slow, transient, validation.

Transient unconfined pumping case against a late-time radial reference#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: Theis well function at late time with T = K * href and S = Sy, early delayed-yield effects left out.

\[s(r,t)=\frac{Q}{4\pi T}E_1(u)\]
\[u=\frac{r^2S}{4Tt},\qquad T=K\,h_{\mathrm{ref}},\qquad S=S_y\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Late time unconfined pumping 2d matches late time reference boussinesq
pass
Space-time RMSE0.00283 m< 0.0057 m0.3% / 0.7%
Space-time max abs error0.00819 m< 0.017 m1.0% / 2.0%
Final-time RMSE0.00426 m< 0.0086 m0.5% / 1.0%
Final-time max abs error0.00819 m< 0.017 m1.0% / 2.0%
Azimuthal spread0.00128 m< 0.0026 m0.1% / 0.3%
Late time unconfined pumping 2d matches late time reference default engine [boussinesq_local]
pass
Space-time RMSE0.0048 m< 0.0086 m0.6% / 1.0%
Space-time max abs error0.014 m< 0.026 m1.6% / 3.0%
Final-time RMSE0.00354 m< 0.0077 m0.4% / 0.9%
Final-time max abs error0.00451 m< 0.009 m0.5% / 1.1%
Azimuthal spread0.00122 m< 0.0027 m0.1% / 0.3%
Late time unconfined pumping 2d matches late time reference fast solvers [modflow_nwt]
pass
Space-time RMSE0.00442 m< 0.009 m0.5% / 1.0%
Space-time max abs error0.00971 m< 0.02 m1.1% / 2.3%
Final-time RMSE0.00534 m< 0.011 m0.6% / 1.3%
Final-time max abs error0.00971 m< 0.02 m1.1% / 2.3%
Azimuthal spread9.54e-07 m< 1e-05 m0.0% / 0.0%
Late time unconfined pumping 2d matches late time reference fast solvers [modflow6]
pass
Space-time RMSE0.00442 m< 0.009 m0.5% / 1.0%
Space-time max abs error0.00972 m< 0.02 m1.1% / 2.3%
Final-time RMSE0.00534 m< 0.011 m0.6% / 1.3%
Final-time max abs error0.00972 m< 0.02 m1.1% / 2.3%
Azimuthal spread2.81e-07 m< 1e-05 m0.0% / 0.0%
Late time unconfined pumping 2d matches late time reference fast solvers [modflow6_irregular_tri]
pass
Space-time RMSE0.00441 m< 0.0089 m0.5% / 1.0%
Space-time max abs error0.0145 m< 0.029 m1.7% / 3.4%
Final-time RMSE0.00338 m< 0.0068 m0.4% / 0.8%
Final-time max abs error0.00495 m< 0.0099 m0.6% / 1.2%
Azimuthal spread0.02 m< 0.04 m2.3% / 4.7%
Late time unconfined pumping 2d matches late time reference fast solvers [modflow6_voronoi]
pass
Space-time RMSE0.00941 m< 0.019 m1.1% / 2.2%
Space-time max abs error0.0227 m< 0.046 m2.6% / 5.3%
Final-time RMSE0.00625 m< 0.013 m0.7% / 1.5%
Final-time max abs error0.00766 m< 0.016 m0.9% / 1.8%
Azimuthal spread0.00217 m< 0.0044 m0.2% / 0.5%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the largest drawdown of the reference, 0.854 to 0.871 m.

415time (d)0.4640.881m+0.023-0.023minus the reference
Drawdown at 59 m from the well, drawdown
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesq defaultrun
Plan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq default, runPlan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq default, run
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured against the Theis drawdown, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 4.4e-3 m, max error 9.8e-3 m, final RMSE 5.3e-3 m. The azimuthal spread bound is ten times the MODFLOW 6 head closure, 1e-6 m: the grid is symmetric about the well. Until 2026-10-09 the reference evaluated E1 by an asymptotic series that is wrong between u = 1 and 8, which doubled the space-time error at the outer monitor points.
  • Thresholds of boussinesq_local: About twice the error measured with the default 'auto' engine, which runs scipy_sparse on the 10082 triangles of 71 x 71 squares (397 m2, the cell area of the MODFLOW grid) with one backward-Euler step a period: space-time RMSE 0.0048 m, max error 0.0140 m, final RMSE 0.0035 m, final max error 0.0045 m, azimuthal spread 0.0012 m. MODFLOW on its 101 x 101 grid, with the same single step a period, reads a space-time RMSE of 0.0044 m: the error is the time step and the fixed-transmissivity Theis reference. The reference is read at the centroid of the triangle each monitor point reads, with the well at the centroid of the triangle that holds it, 6.6 m off the well point. Read from the well point, that offset alone gave an azimuthal spread of 0.136 m on the former 31 x 31 mesh. Until 2026-10-10 the surface closure sent up to 3.4 m3/day of the pumping out of the well cell, 10 m under the top: space-time RMSE 0.0043 m, final max error 0.0064 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the refined triangle mesh: space-time RMSE 4.4e-3 m, max error 1.45e-2 m, final RMSE 3.4e-3 m, final max error 5.0e-3 m, azimuthal spread 0.020 m. The reference is read at the centroid of the triangle each monitor point reads, with the well at the centroid of the triangle that holds it. The well point is a mesh node, and MODFLOW 6 puts the well in the first triangle that holds it, whose centroid lies 15.4 m away: read from the well point, that offset gave an azimuthal spread of 0.087 m. The spread left, 0.020 m at 60 m where the drawdown is 0.85 m, is the asymmetry of the gmsh refinement (165 to 221 triangles per quadrant within 300 m).
  • Thresholds of modflow6_voronoi: Twice the error measured on the Voronoi dual of the refined mesh, the reference read at the node of the cell each monitor point reads: space-time RMSE 9.4e-3 m, max error 2.3e-2 m, final RMSE 6.3e-3 m, final max error 7.7e-3 m, azimuthal spread of the error 2.2e-3 m. A node sits on the well, so the cell that holds the well is centered on it. Read at the monitor radius instead, 1 to 18 m from that node, the error was twice as large. Until 2026-10-10 the spread was taken on the drawdown, not on the error, and read 0.040 m: the cells read sit at different radii. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: space_time.azimuthal_spread 0.0044 to 0.00435 (measure 0.00217); final_time.rmse 0.013 to 0.0126 (measure 0.00625); final_time.max_abs_error 0.016 to 0.0154 (measure 0.00766); space_time.rmse 0.019 to 0.0189 (measure 0.00941); space_time.max_abs_error 0.046 to 0.0454 (measure 0.0227).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. This file: runs in Nightly / validation PETSc. boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq_local
Space-time RMSE (m) <0.0090.0090.00890.01890.0086
Space-time max abs error (m) <0.020.020.0290.04540.026
Final-time RMSE (m) <0.0110.0110.00680.01260.0077
Final-time max abs error (m) <0.020.020.00990.01540.009
Azimuthal spread (m) <1e-051e-050.040.004350.0027

From validation_cases/analytical/transient/late_time_unconfined_pumping_2d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.late_time_unconfined_pumping_2d.run_case

Test functions

  • Late time unconfined pumping 2d matches late time reference fast solvers.
  • Late time unconfined pumping 2d matches late time reference boussinesq.
  • Late time unconfined pumping 2d matches late time reference default engine.

File tests/validation/analytical/transient/test_late_time_unconfined_pumping_2d.py. Markers: analytical, fast, petsc, slow, transient, validation.

Propagation of a tide into an unconfined strip against the Ferris solution#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: Ferris (1951) tidal propagation into a semi-infinite linearized unconfined aquifer, T = K b with the saturated thickness b, S = Sy.

\[S_y\frac{\partial h}{\partial t}=T\frac{\partial^2 h}{\partial x^2},\qquad h(0,t)=h_0+A\cos\left(\frac{2\pi t}{t_0}\right)\]
\[h(x,t)=h_0+A\,e^{-x/\lambda}\cos\left(\frac{2\pi t}{t_0}-\frac{x}{\lambda}\right),\qquad \lambda=\sqrt{\frac{t_0\,T}{\pi\,S_y}}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Tide matches ferris boussinesq petsc [boussinesq]
pass
Space-time RMSE0.00348 m< 0.007 m0.7% / 1.4%
Space-time max abs error0.0289 m< 0.058 m5.9% / 11.9%
Cross-row head spread1.38e-15 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.00113 m< 0.0023 m0.2% / 0.5%
Final-profile max abs error0.00277 m< 0.0056 m0.6% / 1.2%
Decay length relative error0.0189< 0.038
Lag length relative error0.0245< 0.049
Tide matches ferris default engine [boussinesq_local]
pass
Space-time RMSE0.00511 m< 0.0103 m1.1% / 2.1%
Space-time max abs error0.0308 m< 0.062 m6.3% / 12.8%
Cross-row head spread1.12e-15 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE0.00344 m< 0.0069 m0.7% / 1.4%
Final-profile max abs error0.0102 m< 0.021 m2.1% / 4.3%
Decay length relative error0.0589< 0.12
Lag length relative error0.0746< 0.15
Tide matches ferris modflow [modflow_nwt]
pass
Space-time RMSE0.00532 m< 0.011 m1.1% / 2.2%
Space-time max abs error0.0325 m< 0.066 m6.5% / 13.2%
Cross-row head spread1.66e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.00343 m< 0.0069 m0.7% / 1.4%
Final-profile max abs error0.0102 m< 0.021 m2.0% / 4.2%
Decay length relative error0.0596< 0.12
Lag length relative error0.0777< 0.155
Tide matches ferris modflow [modflow6]
pass
Space-time RMSE0.00532 m< 0.011 m1.1% / 2.2%
Space-time max abs error0.0325 m< 0.066 m6.5% / 13.2%
Cross-row head spread8.55e-07 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.00343 m< 0.0069 m0.7% / 1.4%
Final-profile max abs error0.0102 m< 0.021 m2.0% / 4.2%
Decay length relative error0.0596< 0.12
Lag length relative error0.0771< 0.155
Tide matches ferris modflow [modflow6_irregular_tri]
pass
Space-time RMSE0.00491 m< 0.0099 m1.1% / 2.1%
Space-time max abs error0.0294 m< 0.059 m6.3% / 12.7%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.0035 m< 0.0071 m0.8% / 1.5%
Final-profile max abs error0.0104 m< 0.021 m2.2% / 4.5%
Decay length relative error0.0596< 0.12
Lag length relative error0.0711< 0.143
Tide matches ferris modflow [modflow6_voronoi]
pass
Space-time RMSE0.00643 m< 0.013 m1.4% / 2.8%
Space-time max abs error0.0364 m< 0.073 m7.9% / 15.9%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.00589 m< 0.012 m1.3% / 2.6%
Final-profile max abs error0.0183 m< 0.037 m4.0% / 8.0%
Decay length relative error0.0592< 0.12
Lag length relative error0.0715< 0.143

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference over space and time, 0.46 to 0.5 m.

199x (m)9.9810.2m+0.01-0.01minus the reference
Head profile at the last output time, head
reference of each runNWTMF6BoussinesqBoussinesq default
234distance from the sea (m)0.04570.843-+0.023-0.023minus the reference
Tide amplitude over the sea amplitude, amplitude / a
referenceNWTMF6
234distance from the sea (m)0.65111.1h+0.45-0.45minus the reference
Tide lag behind the sea, lag
referenceNWTMF6
199x (m)9.9810.2m+0.018-0.018minus the reference
Head profile at the last output time, head
reference of each runMF6 trianglesMF6 Voronoi
2.7834.8distance from the sea (m)0.04250.787-+0.023-0.023minus the reference
Tide amplitude over the sea amplitude, amplitude / a
referenceMF6 triangles
2.7834.8distance from the sea (m)0.90511.3h+0.44-0.44minus the reference
Tide lag behind the sea, lag
referenceMF6 triangles
335distance from the sea (m)0.04010.777-+0.044-0.044minus the reference
Tide amplitude over the sea amplitude, amplitude / a
referenceMF6 Voronoi
335distance from the sea (m)0.95411.4h+0.56-0.56minus the reference
Tide lag behind the sea, lag
referenceMF6 Voronoi
2.3334.3distance from the sea (m)0.04440.82-+0.023-0.023minus the reference
Tide amplitude over the sea amplitude, amplitude / a
referenceBoussinesqBoussinesq default
2.3334.3distance from the sea (m)0.7611.2h+0.44-0.44minus the reference
Tide lag behind the sea, lag
referenceBoussinesqBoussinesq default
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error over position and time, simulated minus reference, one symmetric scale for all panels.

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 50-column grid of 2 m over the last four tides, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 5.3e-3 m, max error 3.3e-2 m, final RMSE 3.4e-3 m, final max 1.0e-2 m; decay length 11.03 m and lag length 12.63 m against 11.73 m, errors of 6.0 % and 7.7 %. The error is backward Euler with one step per hourly period, 24 a tide: theory shortens the decay length and stretches the lag length by about w dt / 4 = 6.5 %. Periods of 4, 2 and 1 h give a space-time RMSE of 2.0e-2, 1.0e-2 and 5.3e-3 m, and lag-length errors of 45, 17 and 7.7 %; 16 sub-steps a period bring the decay and lag errors to 0.9 and 1.7 %, and 100 columns change the RMSE by 5 %. The max error sits in the sea column, which holds the mean tide of each hour while the reference holds the tide at the output time: A w dt / 2 = 3.3e-2 m. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc on 50 x 5 square cells of 2 m split into triangles: space-time RMSE 3.5e-3 m, max error 2.9e-2 m, final RMSE 1.1e-3 m, final max 2.8e-3 m; decay and lag length errors 1.9 and 2.5 %. PETSc takes 4 backward-Euler steps a period (TS VI), and MODFLOW 6 with 4 sub-steps a period reads 2.0 and 2.8 % on the same tide, so the error is first order in time. The max error sits in the sea column, which holds the mean tide of each hour. The strip is uniform across rows, so a row spread is solver noise: PETSc reads 1e-15 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine, which runs scipy_sparse on these 500 triangles with one backward-Euler step a period: space-time RMSE 5.1e-3 m, max error 3.1e-2 m, final RMSE 3.4e-3 m, final max 1.0e-2 m; decay and lag length errors 5.9 and 7.5 %, the MODFLOW values of tolerances.toml, where the error is explained. The strip is uniform across rows, so a row spread is solver noise: the sparse engine reads 4e-11 m; the bound is 1e-7 m, as on the sibling strips.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip of 1446 cells about 1.5 m across, the sea head posed at the mean centroid of the triangles on the west face: space-time RMSE 4.9e-3 m, max error 2.9e-2 m, final RMSE 3.5e-3 m, final max 1.0e-2 m; decay and lag length errors 6.0 and 7.1 %. As on the structured grid, the error is backward Euler with one step per hourly period (see tolerances.toml). The row spread is zero by construction: the loader collapses the strip to one profile.
  • Thresholds of modflow6_voronoi: Twice the error measured on the Voronoi dual of the triangle strip, 763 cells centered on the nodes, the sea head held on the nodes of the west face and the reference read at the node of each cell: space-time RMSE 6.4e-3 m, max error 3.6e-2 m, final RMSE 5.9e-3 m, final max 1.8e-2 m; decay and lag length errors 5.9 and 7.2 %. The decay and lag match the other grids, so the error is backward Euler with one step per hourly period (see tolerances.toml); the dual cells are twice as large as the triangles, which adds to the RMSE. The row spread is zero by construction: the comparison bins the cells into one profile. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: tide.decay_length_relative_error 0.12 to 0.119 (measure 0.0592); final_profile.rmse 0.012 to 0.0118 (measure 0.00589); final_profile.max_abs_error 0.037 to 0.0366 (measure 0.0183); space_time.rmse 0.013 to 0.0129 (measure 0.00643); space_time.max_abs_error 0.073 to 0.0728 (measure 0.0364).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local
Final-profile RMSE (m) <0.00690.00690.00710.01180.00230.0069
Final-profile max abs error (m) <0.0210.0210.0210.03660.00560.021
Decay length relative error <0.120.120.120.1190.0380.12
Lag length relative error <0.1550.1550.1430.1430.0490.15

From validation_cases/analytical/transient/linearized_unconfined_boundary_periodic_1d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_boundary_periodic_1d.run_case

Test functions

  • Tide matches ferris modflow.
  • Tide matches ferris default engine.
  • Tide matches ferris boussinesq petsc.

File tests/validation/analytical/transient/test_linearized_unconfined_boundary_periodic_1d.py. Markers: analytical, fast, petsc, transient, validation.

Linearized unconfined transient cases against their analytical references#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localpetsc_ts_vi_obstaclepetsc_vi_obstacle

Compared with: linearized 1D unconfined response to a piecewise west-boundary series; linearized 1D unconfined response to a step of the west boundary head; linearized 1D unconfined response to a sinusoidal recharge; linearized 1D unconfined response to a recharge step; linearized 1D unconfined response to a recharge step in a deep aquifer, where the linearization error is smaller.

Case lu_boundary_piecewise_1d

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2},\qquad \eta(L,t)=0\]
\[\eta(x,t)=\sum_k \Delta h_k\,\eta_{\mathrm{step}}(x,t-t_k)\,H(t-t_k)\]

Case lu_boundary_step_1d

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2},\qquad \eta(0,t)=\Delta h\,H(t),\qquad \eta(L,t)=0\]
\[\eta(x,t)=\Delta h\left[1-\frac{x}{L}-\frac{2}{\pi}\sum_{n=1}^{\infty}\frac{\sin\left(n\pi x/L\right)}{n}\exp\left(-D\left(n\pi/L\right)^2 t\right)\right]\]

Case lu_recharge_periodic_1d

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2}+R(t),\qquad h=h_0+\eta\]
\[R(t)=\overline{R}+A\sin\left(2\pi t/P+\phi\right)\]

Case lu_recharge_step_1d

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2}+R_0\,H(t),\qquad h=h_0+\eta\]
\[\eta(x,t)=\frac{R_0}{2T_0}x(L-x)-\frac{4R_0L^2}{T_0\pi^3}\sum_{n=0}^{\infty}\frac{\sin\left((2n+1)\pi x/L\right)}{(2n+1)^3}\exp\left(-D\left((2n+1)\pi/L\right)^2 t\right)\]

Case lu_recharge_step_deep_1d

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2}+R_0\,H(t),\qquad h=h_0+\eta\]
\[T_0=K\,h_{\mathrm{ref}},\qquad D=\frac{T_0}{S_y}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Linearized unconfined transient 1d default engine matches reference profiles [boussinesq_local-boundary_piecewise]
pass
Space-time RMSE0.00606 m< 0.013 m2.0% / 4.4%
Space-time max abs error0.0335 m< 0.067 m11.2% / 22.4%
Cross-row head spread1.12e-15 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE0.00272 m< 0.0056 m0.9% / 1.9%
Linearized unconfined transient 1d default engine matches reference profiles [boussinesq_local-boundary_step]
pass
Space-time RMSE0.00136 m< 0.0028 m1.4% / 2.8%
Space-time max abs error0.0122 m< 0.025 m12.2% / 25.1%
Cross-row head spread3.84e-14 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE9.28e-05 m< 0.00018 m0.1% / 0.2%
Linearized unconfined transient 1d default engine matches reference profiles [boussinesq_local-recharge_periodic]
pass
Space-time RMSE0.0059 m< 0.01 m4.6% / 7.8%
Space-time max abs error0.0137 m< 0.028 m10.7% / 21.9%
Cross-row head spread1.59e-15 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE0.00178 m< 0.0034 m1.4% / 2.7%
Linearized unconfined transient 1d default engine matches reference profiles [boussinesq_local-recharge_step]
pass
Space-time RMSE0.00216 m< 0.0044 m1.6% / 3.2%
Space-time max abs error0.00995 m< 0.015 m7.2% / 10.8%
Cross-row head spread8.96e-14 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE0.000808 m< 0.0015 m0.6% / 1.1%
Linearized unconfined transient 1d default engine matches reference profiles [boussinesq_local-recharge_step_deep]
pass
Space-time RMSE0.00023 m< 0.00046 m1.7% / 3.3%
Space-time max abs error0.00248 m< 0.005 m18.0% / 36.4%
Cross-row head spread0 m< 1e-07 m0.0% / 0.0%
Final-profile RMSE1.57e-06 m< 3.2e-06 m0.0% / 0.0%
Linearized unconfined transient 1d matches reference profiles [modflow_nwt-boundary_piecewise]
pass
Space-time RMSE0.00606 m< 0.013 m2.0% / 4.3%
Space-time max abs error0.0334 m< 0.067 m11.1% / 22.3%
Cross-row head spread0 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.00271 m< 0.0056 m0.9% / 1.9%
Linearized unconfined transient 1d matches reference profiles [modflow_nwt-boundary_step]
pass
Space-time RMSE0.00137 m< 0.0028 m1.4% / 2.8%
Space-time max abs error0.012 m< 0.025 m12.0% / 25.0%
Cross-row head spread3.41e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE6.99e-05 m< 0.00018 m0.1% / 0.2%
Linearized unconfined transient 1d matches reference profiles [modflow_nwt-recharge_periodic]
pass
Space-time RMSE0.00536 m< 0.01 m4.2% / 7.9%
Space-time max abs error0.0131 m< 0.028 m10.3% / 22.1%
Cross-row head spread3.81e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.000523 m< 0.0034 m0.4% / 2.7%
Linearized unconfined transient 1d matches reference profiles [modflow_nwt-recharge_step]
pass
Space-time RMSE0.00203 m< 0.0044 m1.5% / 3.2%
Space-time max abs error0.00916 m< 0.015 m6.6% / 10.8%
Cross-row head spread2.6e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.000647 m< 0.0015 m0.5% / 1.1%
Linearized unconfined transient 1d matches reference profiles [modflow_nwt-recharge_step_deep]
pass
Space-time RMSE0.000259 m< 0.00046 m1.9% / 3.3%
Space-time max abs error0.00157 m< 0.005 m11.3% / 36.0%
Cross-row head spread3.74e-06 m< 1e-05 m0.0% / 0.1%
Final-profile RMSE2.6e-06 m< 2.1e-05 m0.0% / 0.2%
Linearized unconfined transient 1d matches reference profiles [modflow6-boundary_piecewise]
pass
Space-time RMSE0.00609 m< 0.013 m2.0% / 4.3%
Space-time max abs error0.0335 m< 0.067 m11.2% / 22.3%
Cross-row head spread1.44e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.00276 m< 0.0056 m0.9% / 1.9%
Linearized unconfined transient 1d matches reference profiles [modflow6-boundary_step]
pass
Space-time RMSE0.00138 m< 0.0028 m1.4% / 2.8%
Space-time max abs error0.0123 m< 0.025 m12.3% / 25.0%
Cross-row head spread1.5e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE4.73e-05 m< 0.00018 m0.0% / 0.2%
Linearized unconfined transient 1d matches reference profiles [modflow6-recharge_periodic]
pass
Space-time RMSE0.00586 m< 0.01 m4.6% / 7.9%
Space-time max abs error0.0136 m< 0.028 m10.7% / 22.1%
Cross-row head spread7.98e-07 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.00165 m< 0.0034 m1.3% / 2.7%
Linearized unconfined transient 1d matches reference profiles [modflow6-recharge_step]
pass
Space-time RMSE0.00215 m< 0.0044 m1.6% / 3.2%
Space-time max abs error0.00996 m< 0.015 m7.2% / 10.8%
Cross-row head spread1.01e-06 m< 1e-05 m0.0% / 0.0%
Final-profile RMSE0.000747 m< 0.0015 m0.5% / 1.1%
Linearized unconfined transient 1d matches reference profiles [modflow6-recharge_step_deep]
pass
Space-time RMSE0.000228 m< 0.00046 m1.6% / 3.3%
Space-time max abs error0.00246 m< 0.005 m17.7% / 36.0%
Cross-row head spread1.52e-07 m< 1e-05 m0.0% / 0.1%
Final-profile RMSE1.01e-05 m< 2.1e-05 m0.1% / 0.2%
Linearized unconfined transient 1d matches reference profiles [modflow6_irregular_tri-boundary_piecewise]
pass
Space-time RMSE0.00614 m< 0.013 m2.1% / 4.4%
Space-time max abs error0.0334 m< 0.067 m11.2% / 22.4%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.00288 m< 0.0058 m1.0% / 1.9%
Linearized unconfined transient 1d matches reference profiles [modflow6_irregular_tri-boundary_step]
pass
Space-time RMSE0.00142 m< 0.0029 m1.4% / 2.9%
Space-time max abs error0.0123 m< 0.025 m12.3% / 25.1%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.000154 m< 0.00031 m0.2% / 0.3%
Linearized unconfined transient 1d matches reference profiles [modflow6_irregular_tri-recharge_periodic]
pass
Space-time RMSE0.00587 m< 0.012 m4.6% / 9.5%
Space-time max abs error0.0134 m< 0.027 m10.6% / 21.3%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.00178 m< 0.0036 m1.4% / 2.8%
Linearized unconfined transient 1d matches reference profiles [modflow6_irregular_tri-recharge_step]
pass
Space-time RMSE0.00215 m< 0.0044 m1.6% / 3.2%
Space-time max abs error0.0099 m< 0.02 m7.2% / 14.4%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.000634 m< 0.0013 m0.5% / 0.9%
Linearized unconfined transient 1d matches reference profiles [modflow6_irregular_tri-recharge_step_deep]
pass
Space-time RMSE0.00025 m< 0.0005 m1.8% / 3.6%
Space-time max abs error0.00257 m< 0.0052 m18.6% / 37.6%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE1.94e-05 m< 3.9e-05 m0.1% / 0.3%
Linearized unconfined transient 1d matches reference profiles [modflow6_voronoi-boundary_piecewise]
pass
Space-time RMSE0.00611 m< 0.012 m2.0% / 4.0%
Space-time max abs error0.0335 m< 0.067 m11.2% / 22.3%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.00291 m< 0.0058 m1.0% / 1.9%
Linearized unconfined transient 1d matches reference profiles [modflow6_voronoi-boundary_step]
pass
Space-time RMSE0.0014 m< 0.0028 m1.4% / 2.8%
Space-time max abs error0.0124 m< 0.025 m12.4% / 25.0%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE9.89e-05 m< 0.0002 m0.1% / 0.2%
Linearized unconfined transient 1d matches reference profiles [modflow6_voronoi-recharge_periodic]
pass
Space-time RMSE0.00606 m< 0.012 m4.6% / 9.2%
Space-time max abs error0.0141 m< 0.028 m10.7% / 21.4%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.00195 m< 0.0039 m1.5% / 3.0%
Linearized unconfined transient 1d matches reference profiles [modflow6_voronoi-recharge_step]
pass
Space-time RMSE0.00223 m< 0.0045 m1.5% / 3.1%
Space-time max abs error0.0101 m< 0.02 m7.0% / 13.8%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE0.000754 m< 0.0015 m0.5% / 1.0%
Linearized unconfined transient 1d matches reference profiles [modflow6_voronoi-recharge_step_deep]
pass
Space-time RMSE0.00025 m< 0.0005 m1.7% / 3.5%
Space-time max abs error0.00266 m< 0.0053 m18.4% / 36.6%
Cross-row head spread0 m< 1e-09 m0.0% / 0.0%
Final-profile RMSE6.91e-06 m< 1.4e-05 m0.0% / 0.1%
Linearized unconfined transient 1d matches reference profiles [boussinesq-boundary_piecewise]
pass
Space-time RMSE0.00158 m< 0.0032 m0.5% / 1.1%
Space-time max abs error0.00816 m< 0.017 m2.7% / 5.7%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.000711 m< 0.0015 m0.2% / 0.5%
Linearized unconfined transient 1d matches reference profiles [boussinesq-boundary_step]
pass
Space-time RMSE0.000343 m< 0.00069 m0.3% / 0.7%
Space-time max abs error0.00322 m< 0.0065 m3.2% / 6.5%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE7.31e-05 m< 0.00015 m0.1% / 0.2%
Linearized unconfined transient 1d matches reference profiles [boussinesq-recharge_periodic]
pass
Space-time RMSE0.00175 m< 0.0036 m1.4% / 2.9%
Space-time max abs error0.0045 m< 0.0084 m3.6% / 6.7%
Cross-row head spread1.38e-15 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.00048 m< 0.00051 m0.4% / 0.4%
Linearized unconfined transient 1d matches reference profiles [boussinesq-recharge_step]
pass
Space-time RMSE0.000853 m< 0.0018 m0.6% / 1.3%
Space-time max abs error0.00294 m< 0.0059 m2.1% / 4.3%
Cross-row head spread1.26e-15 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.000635 m< 0.0013 m0.5% / 0.9%
Linearized unconfined transient 1d matches reference profiles [boussinesq-recharge_step_deep]
pass
Space-time RMSE5.14e-05 m< 0.00011 m0.4% / 0.8%
Space-time max abs error0.000565 m< 0.0012 m4.1% / 8.7%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE2.89e-06 m< 5.8e-06 m0.0% / 0.0%
Linearized unconfined transient 1d petsc obstacle matches reference profiles [petsc_ts_vi_obstacle-boundary_step]
pass
Space-time RMSE0.000343 m< 0.00069 m0.3% / 0.7%
Space-time max abs error0.00322 m< 0.0065 m3.2% / 6.5%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE7.31e-05 m< 0.00015 m0.1% / 0.2%
Linearized unconfined transient 1d petsc obstacle matches reference profiles [petsc_ts_vi_obstacle-recharge_step]
pass
Space-time RMSE0.000853 m< 0.0018 m0.6% / 1.3%
Space-time max abs error0.00294 m< 0.0059 m2.1% / 4.3%
Cross-row head spread1.26e-15 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.000635 m< 0.0013 m0.5% / 0.9%
Linearized unconfined transient 1d petsc obstacle matches reference profiles [petsc_vi_obstacle-boundary_step]
pass
Space-time RMSE0.000343 m< 0.00069 m0.3% / 0.7%
Space-time max abs error0.00322 m< 0.0065 m3.2% / 6.5%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE7.31e-05 m< 0.00015 m0.1% / 0.2%
Linearized unconfined transient 1d petsc obstacle matches reference profiles [petsc_vi_obstacle-recharge_step]
pass
Space-time RMSE0.000853 m< 0.0018 m0.6% / 1.3%
Space-time max abs error0.00294 m< 0.0059 m2.1% / 4.3%
Cross-row head spread0 m< 1e-08 m0.0% / 0.0%
Final-profile RMSE0.000635 m< 0.0013 m0.5% / 0.9%

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the head range of the reference over space and time, 0.0137 to 0.3 m.

199x (m)1010m+0.0041-0.0041minus the reference
Head profile at the last output time, head
reference of each runmodflow_nwt-boundary_piecewisemodflow6-boundary_piecewisemodflow6_irregular_tri-boundary_piecewiseboussinesq-boundary_piecewiseboussinesq_local-boundary_piecewise
199x (m)1010.1m+0.0003-0.0003minus the reference
Head profile at the last output time, head
reference of each runmodflow_nwt-boundary_stepmodflow6-boundary_stepmodflow6_irregular_tri-boundary_stepmodflow6_voronoi-boundary_step
199x (m)1010m+0.0027-0.0027minus the reference
Head profile at the last output time, head
reference of each runmodflow_nwt-recharge_periodicmodflow6-recharge_periodicmodflow6_irregular_tri-recharge_periodicboussinesq_local-recharge_periodic
199x (m)1010.1m+0.0012-0.0012minus the reference
Head profile at the last output time, head
reference of each runmodflow_nwt-recharge_stepmodflow6-recharge_stepmodflow6_irregular_tri-recharge_step
199x (m)100100m+1-1minus the reference
Head profile at the last output time, head
referencemodflow_nwt-recharge_step_deepmodflow6-recharge_step_deepmodflow6_irregular_tri-recharge_step_deep
199x (m)1010m+0.0042-0.0042minus the reference
Head profile at the last output time, head
referencemodflow6_voronoi-boundary_piecewise
199x (m)1010m+0.0029-0.0029minus the reference
Head profile at the last output time, head
referencemodflow6_voronoi-recharge_periodic
199x (m)1010.1m+0.0012-0.0012minus the reference
Head profile at the last output time, head
referencemodflow6_voronoi-recharge_step
199x (m)100100m+1-1minus the reference
Head profile at the last output time, head
referencemodflow6_voronoi-recharge_step_deep
1.2598.8x (m)1010.1m+0.0002-0.0002minus the reference
Head profile at the last output time, head
referenceboussinesq-boundary_stepboussinesq_local-boundary_steppetsc_ts_vi_obstacle-boundary_steppetsc_vi_obstacle-boundary_step
199x (m)1010m+0.0006-0.0006minus the reference
Head profile at the last output time, head
referenceboussinesq-recharge_periodic
1.2598.8x (m)1010.1m+0.0013-0.0013minus the reference
Head profile at the last output time, head
referenceboussinesq-recharge_stepboussinesq_local-recharge_steppetsc_ts_vi_obstacle-recharge_steppetsc_vi_obstacle-recharge_step
1.2598.8x (m)100100m+1-1minus the reference
Head profile at the last output time, head
referenceboussinesq-recharge_step_deepboussinesq_local-recharge_step_deep
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error over position and time, simulated minus reference, one symmetric scale for all panels.
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, petsc_ts_vi_obstacle-boundary_step, petsc_vi_obstacle-boundary_stepHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, petsc_ts_vi_obstacle-boundary_step, petsc_vi_obstacle-boundary_step
Head error over position and time, simulated minus reference, one symmetric scale for all panels.
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error over position and time, simulated minus reference, one symmetric scale for all panels.
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, petsc_ts_vi_obstacle-recharge_step, petsc_vi_obstacle-recharge_stepHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, petsc_ts_vi_obstacle-recharge_step, petsc_vi_obstacle-recharge_step
Head error over position and time, simulated minus reference, one symmetric scale for all panels.
Head error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq defaultHead error over position and time, simulated minus reference: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default
Head error over position and time, simulated minus reference, one symmetric scale for all panels.

Why these thresholds

  • Thresholds of modflow_nwt, modflow6, petsc_ts_vi_obstacle, petsc_vi_obstacle: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 6.1e-3 m, max error 3.3e-2 m, final RMSE 2.8e-3 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc on 50 x 5 square cells of 2 m: space-time RMSE 0.0016 m, max error 0.0082 m, final RMSE 0.00071 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. On this 500-cell strip the default 'auto' engine runs scipy_sparse, one backward-Euler step a period as MODFLOW does, and on 50 x 5 square cells of 2 m it reads space-time RMSE 0.0061 m, max error 0.033 m, final RMSE 0.0027 m, against 6.1e-3, 3.3e-2 and 2.8e-3 m for MODFLOW. The strip is uniform across rows, so a row spread is solver noise: the sparse engine reads 3e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip: space-time RMSE 6.1e-3 m, max error 3.3e-2 m, final RMSE 2.9e-3 m. The row spread is zero by construction: the loader collapses the strip to one profile. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: space-time RMSE 6.11e-3 m, max error 3.35e-2 m, final RMSE 2.91e-3 m, final max error 4.14e-3 m. The row spread is zero by construction: the loader collapses the dual to one profile, binned by node abscissa with polygon-area weights. Backward Euler is first order in time: on the Voronoi dual of the boundary step, 1, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 3.7e-4 and 1.8e-4 m. The side heads sit on the faces, where the cells are seeded.
  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 1.4e-3 m, max error 1.2e-2 m, final RMSE 9.0e-5 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00034 m, max error 0.0032 m, final RMSE 7.3e-05 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. The default local engine takes one backward-Euler step a period, as MODFLOW does, and on 40 x 4 square cells of 2.5 m it reads space-time RMSE 0.0014 m, max error 0.012 m, final RMSE 9.9e-05 m, against 1.4e-3, 1.2e-2 and 9.0e-5 m for MODFLOW. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip: space-time RMSE 1.4e-3 m, max error 1.2e-2 m, final RMSE 1.5e-4 m. The row spread is zero by construction: the loader collapses the strip to one profile. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: space-time RMSE 1.4e-3 m, max error 1.24e-2 m, final RMSE 9.89e-5 m, final max error 1.36e-4 m. The row spread is zero by construction: the loader collapses the dual to one profile, binned by node abscissa with polygon-area weights. Backward Euler is first order in time: on the Voronoi dual of the boundary step, 1, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 3.7e-4 and 1.8e-4 m. The side heads sit on the faces, where the cells are seeded. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: space_time.max_abs_error 0.025 to 0.0248 (measure 0.0124). Kept at a numerical floor, where twice the measure guarantees nothing: final_profile.rmse 2e-4 (measure 9.89e-5, default head closure of 1e-4 m).
  • Thresholds of petsc_ts_vi_obstacle: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00034 m, max error 0.0032 m, final RMSE 7.3e-05 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of petsc_vi_obstacle: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00034 m, max error 0.0032 m, final RMSE 7.3e-05 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of modflow_nwt, modflow6, petsc_ts_vi_obstacle, petsc_vi_obstacle: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 5.9e-3 m, max error 1.4e-2 m, final RMSE 1.7e-3 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m). The space-time RMSE keeps its previous bound of 0.01 m, 1.7 times the measurement.
  • Thresholds of boussinesq: Twice the error measured with PETSc on 50 x 5 square cells of 2 m: space-time RMSE 0.0018 m, max error 0.0042 m, final RMSE 0.00025 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. On this 500-cell strip the default 'auto' engine runs scipy_sparse, one backward-Euler step a period as MODFLOW does, and on 50 x 5 square cells of 2 m it reads space-time RMSE 0.0059 m, max error 0.014 m, final RMSE 0.0018 m, against 5.9e-3, 1.4e-2 and 1.7e-3 m for MODFLOW. The strip is uniform across rows, so a row spread is solver noise: the sparse engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip: space-time RMSE 5.9e-3 m, max error 1.3e-2 m, final RMSE 1.8e-3 m. The row spread is zero by construction: the loader collapses the strip to one profile. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: space-time RMSE 6.06e-3 m, max error 1.41e-2 m, final RMSE 1.95e-3 m, final max error 2.85e-3 m. The row spread is zero by construction: the loader collapses the dual to one profile, binned by node abscissa with polygon-area weights. Backward Euler is first order in time: on the Voronoi dual of the boundary step, 1, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 3.7e-4 and 1.8e-4 m. The side heads sit on the faces, where the cells are seeded. B9 of the unified mesh, measured again on 2026-10-26. Already at twice the measure: final_profile.rmse 0.0039 (measure 0.00195).
  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 2.2e-3 m, max error 1.0e-2 m, final RMSE 7.5e-4 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The final profile keeps the error of the linearized reference, which holds the transmissivity at its initial value: about 7e-4 m under the 0.14 m recharge mound, whatever the step. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m). The space-time max error keeps its previous bound of 0.015 m, 1.5 times the measurement.
  • Thresholds of boussinesq: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00085 m, max error 0.0029 m, final RMSE 0.00063 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. The default local engine takes one backward-Euler step a period, as MODFLOW does, and on 40 x 4 square cells of 2.5 m it reads space-time RMSE 0.0022 m, max error 0.01 m, final RMSE 0.00081 m, against 2.2e-3, 1.0e-2 and 7.5e-4 m for MODFLOW. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip: space-time RMSE 2.2e-3 m, max error 9.9e-3 m, final RMSE 6.3e-4 m. The row spread is zero by construction: the loader collapses the strip to one profile. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: space-time RMSE 2.23e-3 m, max error 1.01e-2 m, final RMSE 7.54e-4 m, final max error 1.23e-3 m. The row spread is zero by construction: the loader collapses the dual to one profile, binned by node abscissa with polygon-area weights. Backward Euler is first order in time: on the Voronoi dual of the boundary step, 1, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 3.7e-4 and 1.8e-4 m. The side heads sit on the faces, where the cells are seeded. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: space_time.rmse 0.0045 to 0.00447 (measure 0.00223).
  • Thresholds of petsc_ts_vi_obstacle: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00085 m, max error 0.0029 m, final RMSE 0.00063 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of petsc_vi_obstacle: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00085 m, max error 0.0029 m, final RMSE 0.00063 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of modflow_nwt, modflow6, petsc_ts_vi_obstacle, petsc_vi_obstacle: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 2.3e-4 m, max error 2.5e-3 m, final RMSE 1.0e-5 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 5.1e-05 m, max error 0.00056 m, final RMSE 2.9e-06 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: Twice the error measured with the default local engine on 40 x 4 square cells of 2.5 m, split into triangles: space-time RMSE 2.3e-4 m, max error 2.5e-3 m, final RMSE 1.6e-6 m, final max error 2.0e-6 m. It takes one backward-Euler step a period, as MODFLOW does, and the space-time error is that step: it equals MODFLOW's, and PETSc with 4 steps a period reads 5.1e-5 m. The case sets the Newton closure to 1e-12 m3/s (config_boussinesq_local.toml): with the default 1e-9 m3/s per cell, absolute, Newton stopped 1.7e-5 m off the steady 1.5 cm mound, worse than MODFLOW 6 (1.0e-5 m, its head closure). The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-11 m; the bound is 1e-7 m.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangle strip: space-time RMSE 2.5e-4 m, max error 2.6e-3 m, final RMSE 1.9e-5 m. The row spread is zero by construction: the loader collapses the strip to one profile. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells.
  • Thresholds of modflow6_voronoi: Twice the error measured on the 190-node Voronoi dual of the triangle strip: space-time RMSE 2.5e-4 m, max error 2.66e-3 m, final RMSE 6.91e-6 m, final max error 1.85e-5 m. The row spread is zero by construction: the loader collapses the dual to one profile, binned by node abscissa with polygon-area weights. Backward Euler is first order in time: on the Voronoi dual of the boundary step, 1, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 3.7e-4 and 1.8e-4 m. The side heads sit on the faces, where the cells are seeded. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: final_profile.rmse 1.4e-5 (measure 6.91e-6, below the default head closure of 1e-4 m).

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. boussinesq, petsc_ts_vi_obstacle, petsc_vi_obstacle: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file

This driver folds five sibling 1D linearized-unconfined transient benchmarks into one parametrized suite. Each scenario keeps its own forcing (via its own launcher comparison function) and its own tolerances (read from the per-case tolerance TOML through the comparison payload). The references pose the side heads where the model holds them, at the centers of the boundary cells.

Case lu_boundary_piecewise_1d: Linearized Unconfined Boundary Piecewise 1D

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_boundary_piecewise_1d.run_case

Case lu_boundary_step_1d: Linearized Unconfined 1D Boundary Step

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_boundary_step_1d.run_case

Case lu_recharge_periodic_1d: Linearized Unconfined 1D Periodic Recharge

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_recharge_periodic_1d.run_case

Case lu_recharge_step_1d: Linearized Unconfined 1D Recharge Step

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_recharge_step_1d.run_case

Case lu_recharge_step_deep_1d: Linearized Unconfined 1D Recharge Step (Deep Aquifer)

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_recharge_step_deep_1d.run_case

Test functions

  • Linearized unconfined transient 1d matches reference profiles.
  • Linearized unconfined transient 1d default engine matches reference profiles.
  • Linearized unconfined transient 1d petsc obstacle matches reference profiles.

File tests/validation/analytical/transient/test_linearized_unconfined_transient_1d.py. Markers: analytical, petsc, slow, transient, validation.

MODFLOW 6 PRT particle paths in a uniform velocity field#

pass modflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • NWT: MODFLOW-NWT has no PRT. HydroModPy tracks particles on NWT with MODPATH 6, a separate code with its own input; this file runs the MODFLOW 6 PRT package.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no particle tracking: the registry holds no transport adapter for it and the solver page lists its transport as refused. This file runs MODFLOW 6 PRT.

Compared with: the straight particle path x(t) = x0 + v t in a uniform flow, v = q / porosity.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow6
pass
Largest relative position error along the track1.05e-15< 0.01
Largest relative transverse drift of the particle0< 0.01
modflow6_irregular_tri
pass
Largest relative position error along the track0.00025< 0.01
Largest relative transverse drift of the particle1.17e-05< 0.01
modflow6_voronoi
pass
Largest relative position error along the track2.61e-06< 0.01
Largest relative transverse drift of the particle1.85e-05< 0.01

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. modflow6: runs in Nightly / validation no PETSc, Weekly / Cross Platform. modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

For a constant-gradient (uniform) flow field, Pollock's method is exact, so a particle moves as x(t) = x0 + v*t with v = q / porosity (q is the specific discharge). The pore velocity v is read back from the model's DATA-SPDIS instead of being hard-coded, then the track positions are checked against the analytical streamline.

Three grids run the same strip. modflow6 is a rectilinear DIS column. modflow6_irregular_tri and modflow6_voronoi are DISV strips of jittered triangles and Voronoi polygons (tests/validation/helpers/disv_meshes.py), the topology HydroModPy always gives PRT. The end cells hold the exact linear head at their centers, so the flow is uniform for any mesh whose flux is consistent. The triangle strip has a p95 connection non-orthogonality of 40 deg, above the 30 deg trigger, so HydroModPy's rule switches XT3D on and the test runs with it; the Voronoi strip is orthogonal and runs with the two-point flux.

Control run on the same triangles with the two-point flux (XT3D off): the streamline is off by 17 %, so the non-orthogonal flux, not the tracking, is what XT3D repairs. Measured here with XT3D as the rule decides: triangles 2.5e-4, Voronoi 2.6e-6, DIS 1e-15.

Tolerance rationale - tests/TOLERANCES.md row 34: max relative position error < 1 % (Pollock is exact for uniform velocity; the allowance covers cell-crossing arithmetic). The same row holds for the DISV strips, where the polygons are split into sub-cells for tracking. The transverse drift of the particle is held to the same bound.

Thresholds from tests/TOLERANCES.md

  • Row 34: MF6 PRT uniform-velocity streamline, max relative position error |x-x_exp|/|x_exp-x0|: < 1 % (Pollock's method is exact for a uniform velocity field; small allowance for cell-crossing arithmetic)

Test functions

  • Prt uniform velocity streamline.

File tests/validation/analytical/transient/test_prt_uniform_velocity.py. Markers: allow_subprocess, analytical, mf6, transient, validation.

Stream depletion of a well pumping beside a stream held at a fixed head#

pass end to endmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: Glover and Balmer (1954) stream depletion and the image-well Theis drawdown (Theis 1941), with T = K b and S = Sy, read at the stream, well and monitor cell centers.

\[\frac{Q_s}{Q}=\operatorname{erfc}\left(\sqrt{\frac{S a^2}{4 T t}}\right)\]
\[s(x,y,t)=\frac{Q}{4\pi T}\left[E_1\left(\frac{r_1^2 S}{4 T t}\right)-E_1\left(\frac{r_2^2 S}{4 T t}\right)\right]\]
\[T=K\,b,\qquad S=S_y\]

a is the distance from the well to the stream, r1 the distance to the well and r2 the distance to its image across the stream.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Stream depletion glover balmer 2d boussinesq
pass
Stream depletion max abs error0.0136< 0.028
Stream depletion final error0.000552< 0.0011
Drawdown space-time RMSE0.0028 m< 0.0056 m0.9% / 1.7%
Drawdown space-time max abs error0.00648 m< 0.013 m2.0% / 4.0%
Drawdown final-time RMSE0.00311 m< 0.0063 m1.0% / 2.0%
Drawdown final-time max abs error0.00648 m< 0.013 m2.0% / 4.0%
Well drawdown over saturated thickness0.0355< 0.05
Stream depletion glover balmer 2d default engine [boussinesq_local]
pass
Stream depletion max abs error0.0136< 0.028
Stream depletion final error0.000552< 0.0011
Drawdown space-time RMSE0.0028 m< 0.0056 m0.9% / 1.7%
Drawdown space-time max abs error0.00648 m< 0.013 m2.0% / 4.0%
Drawdown final-time RMSE0.00311 m< 0.0063 m1.0% / 2.0%
Drawdown final-time max abs error0.00648 m< 0.013 m2.0% / 4.0%
Well drawdown over saturated thickness0.0355< 0.05
Stream depletion glover balmer 2d modflow [modflow_nwt]
pass
Stream depletion max abs error0.0142< 0.029
Stream depletion final error0.000345< 0.0007
Drawdown space-time RMSE0.00155 m< 0.0031 m0.5% / 1.0%
Drawdown space-time max abs error0.00639 m< 0.013 m2.1% / 4.2%
Drawdown final-time RMSE0.00167 m< 0.0034 m0.5% / 1.1%
Drawdown final-time max abs error0.00355 m< 0.0071 m1.2% / 2.3%
Well drawdown over saturated thickness0.0281< 0.05
Stream depletion glover balmer 2d modflow [modflow6]
pass
Stream depletion max abs error0.0142< 0.029
Stream depletion final error0.000345< 0.0007
Drawdown space-time RMSE0.00155 m< 0.0031 m0.5% / 1.0%
Drawdown space-time max abs error0.00639 m< 0.013 m2.1% / 4.2%
Drawdown final-time RMSE0.00167 m< 0.0034 m0.5% / 1.1%
Drawdown final-time max abs error0.00355 m< 0.0071 m1.2% / 2.3%
Well drawdown over saturated thickness0.0281< 0.05
Stream depletion glover balmer 2d modflow [modflow6_irregular_tri]
pass
Stream depletion max abs error0.0137< 0.028
Stream depletion final error0.000283< 0.0006
Drawdown space-time RMSE0.00252 m< 0.0051 m0.8% / 1.6%
Drawdown space-time max abs error0.00586 m< 0.012 m1.8% / 3.7%
Drawdown final-time RMSE0.00271 m< 0.0055 m0.8% / 1.7%
Drawdown final-time max abs error0.00539 m< 0.011 m1.7% / 3.4%
Well drawdown over saturated thickness0.0353< 0.05
Stream depletion glover balmer 2d modflow [modflow6_voronoi]
pass
Stream depletion max abs error0.0124< 0.025
Stream depletion final error0.000495< 0.001
Drawdown space-time RMSE0.00119 m< 0.0024 m0.4% / 0.8%
Drawdown space-time max abs error0.00802 m< 0.016 m2.6% / 5.2%
Drawdown final-time RMSE0.000496 m< 0.001 m0.2% / 0.3%
Drawdown final-time max abs error0.000969 m< 0.002 m0.3% / 0.6%
Well drawdown over saturated thickness0.0357< 0.05

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log). The last column gives the measured value and the threshold as shares of the largest drawdown of the reference, 0.308 to 0.323 m.

0.520time (d)0.02060.109m+0.0024-0.0024minus the reference
Drawdown at 70 m from the well, drawdown
referenceNWTMF6
0.520time (d)0.009590.755-+0.014-0.014minus the reference
Stream depletion fraction, qs / q
reference of each runNWTMF6MF6 trianglesMF6 VoronoiBoussinesq defaultrun
0.520time (d)0.02150.116m+0.0036-0.0036minus the reference
Drawdown at 68 m from the well, drawdown
referenceMF6 trianglesBoussinesq defaultrun
0.520time (d)0.02250.128m+0.0029-0.0029minus the reference
Drawdown at 68 m from the well, drawdown
referenceMF6 Voronoi
Plan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq default, runPlan-view map of simulated minus reference head, one panel per solver: NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq default, run
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured, MODFLOW-NWT and MODFLOW 6 alike to 1e-5: stream depletion 0.0142 at most, on the first half day, and 0.00034 at day 20; drawdown space-time RMSE 1.6e-3 m, max 6.4e-3 m, final RMSE 1.7e-3 m, final max 3.6e-3 m. The run stores the mean depletion of each period, over its 4 backward-Euler steps, and the reference is the mean of the closed form over the same period. The depletion error is the backward-Euler step: on MODFLOW 6 it falls to 0.0076, 0.0042 and 0.0024 with 8, 16 and 32 steps a period, and moves by 1e-4 on a 5 m grid. Until 2026-10-10 the run stored the depletion of the last step and the reference was read at the period end: 0.0083 at most. The drawdown error is the grid and the unconfined flow: on a 5 m grid the RMSE halves, and at a tenth of the pumping rate the final error near the well falls from 3.6e-3 to 2.2e-4 m, the s^2 / (2 b) of the water table. The closed sides do not count: on a domain 1.5 times wider and longer the results move by 6e-6. The well-cell drawdown stays under 5 % of the saturated thickness, where the linearized theory holds: 2.8 % measured.
  • Thresholds of boussinesq_local: Twice the error measured with the default 'auto' engine, scipy_sparse on these 5783 triangles, 4 backward-Euler steps a period: stream depletion 0.0136 at most and 0.00055 at day 20, both means over the period; drawdown space-time RMSE 2.8e-3 m, max 6.5e-3 m, final RMSE 3.1e-3 m, final max 6.5e-3 m, next to the well. PETSc on the same triangles reads the same to 1e-6. Until 2026-10-10 the surface closure sent 0.4 % of the pumping out of the well cell, 11 m under the top, and the final depletion read 0.0021.
  • Thresholds of modflow6_irregular_tri: Twice the error measured on the triangles of the refined mesh (5783 cells, two-point flux: XT3D stays off, the 95th percentile of the non-orthogonality is 9 degrees), with the stream at the centroids of the triangles on the face, 2.9 m inside it, and the well at the centroid of the triangle that takes it: stream depletion 0.0137 at most and 0.00028 at day 20, both means over the period, the backward-Euler step as on the grid; drawdown space-time RMSE 2.5e-3 m, max 5.9e-3 m, final RMSE 2.7e-3 m, final max 5.4e-3 m, next to the well, 3 m off the mesh node it sits on. The well-cell drawdown is 3.5 % of the saturated thickness.
  • Thresholds of modflow6_voronoi: Twice the error measured on the Voronoi dual of the refined mesh (3011 cells centered on the nodes), with the stream on the face, where the dual cells of the face nodes are centered, and the well on its node: stream depletion 0.0124 at most and 0.0005 at day 20, both means over the period, the backward-Euler step as on the grid; drawdown space-time RMSE 1.2e-3 m, max 8.0e-3 m at day 1 next to the well, final RMSE 5.0e-4 m, final max 9.7e-4 m. The well-cell drawdown is 3.6 % of the saturated thickness. B9 of the unified mesh, measured again on 2026-10-26. Tightened to twice the measure: final_time.rmse 0.001 to 9.92e-4 (measure 4.96e-4); final_time.max_abs_error 0.002 to 0.00194 (measure 9.69e-4); space_time.rmse 0.0024 to 0.00239 (measure 0.00119); depletion.final_abs_error 0.001 to 9.91e-4 (measure 4.95e-4); depletion.max_abs_error 0.025 to 0.0248 (measure 0.0124).

Schedule. modflow_nwt, modflow6, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. modflow6_irregular_tri, boussinesq_local: runs in Nightly / validation no PETSc, Weekly / Cross Platform. This file: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file
Thresholdmodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesq_local
Stream depletion max abs error <0.0290.0290.0280.02480.028
Stream depletion final error <0.00070.00070.00060.0009910.0011
Drawdown space-time RMSE (m) <0.00310.00310.00510.002390.0056
Drawdown space-time max abs error (m) <0.0130.0130.0120.0160.013
Drawdown final-time RMSE (m) <0.00340.00340.00550.0009920.0063
Drawdown final-time max abs error (m) <0.00710.00710.0110.001940.013
Well drawdown over saturated thickness <0.050.050.050.050.05

From validation_cases/analytical/transient/stream_depletion_glover_balmer_2d/: modflow_nwt reads tolerances.toml, modflow6 reads tolerances.toml, modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq_local reads tolerances_boussinesq_local.toml.

Run it alone: python -m validation_cases.analytical.transient.stream_depletion_glover_balmer_2d.run_case

Test functions

  • Stream depletion glover balmer 2d modflow.
  • Stream depletion glover balmer 2d boussinesq.
  • Stream depletion glover balmer 2d default engine.

File tests/validation/analytical/transient/test_stream_depletion_glover_balmer_2d.py. Markers: analytical, petsc, slow, transient, validation.

Time steps inside a stress period against a closed-form step response#

pass end to endmodflow_nwtmodflow6boussinesqboussinesq_local

Not run on

  • MF6 triangles, MF6 Voronoi: The substep count is written to TDIS by a function that takes no mesh, and the closed form is a 1D column. Another mesh would add a spatial error and no information about the time stepping.

Compared with: linearized 1D unconfined response to a step of the west boundary head.

\[S_y\frac{\partial \eta}{\partial t}=T_0\frac{\partial^2 \eta}{\partial x^2},\qquad \eta(0,t)=\Delta h\,H(t),\qquad \eta(L,t)=0\]
\[\eta(x,t)=\Delta h\left[1-\frac{x}{L}-\frac{2}{\pi}\sum_{n=1}^{\infty}\frac{\sin\left(n\pi x/L\right)}{n}\exp\left(-D\left(n\pi/L\right)^2 t\right)\right]\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
A geometric partition cannot beat equal steps [modflow_nwt]
pass
RMSE difference between TSMULT 2 and 1/21.99e-09 m< 1e-06 m
A geometric partition cannot beat equal steps [modflow6]
pass
RMSE difference between TSMULT 2 and 1/22.19e-08 m< 1e-06 m
Adaptive stepping preserves the declared substeps
pass
Relative RMSE difference, ATS on against off0<= 1e-12
One step per period moves the discharge a calibration scores [modflow_nwt]
pass
Largest monthly discharge drift of 1 step against 300.318> 0.1
One step per period moves the discharge a calibration scores [modflow6]
pass
Largest monthly discharge drift of 1 step against 300.291> 0.1
Substeps are what buys transient accuracy [modflow_nwt]
pass
RMSE with 1 step over RMSE with 10 steps13.6> 10
Substeps are what buys transient accuracy [modflow6]
pass
RMSE with 1 step over RMSE with 10 steps13.6> 10
The boussinesq driver takes the requested substeps [boussinesq]
pass
RMSE with 1 step over RMSE with 10 steps9.68> 4.8
The boussinesq driver takes the requested substeps [boussinesq_local]
pass
RMSE with 1 step over RMSE with 10 steps9.68> 4.8
The column stays semi infinite over the period
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Why these thresholds

  • Thresholds of modflow_nwt, modflow6: Twice the error measured on the 50-column grid, MODFLOW-NWT and MODFLOW 6 alike: space-time RMSE 1.4e-3 m, max error 1.2e-2 m, final RMSE 9.0e-5 m. Backward Euler is first order in time: on the boundary step, 1, 2, 4 and 8 sub-steps per period give a space-time RMSE of 1.4e-3, 7.1e-4, 3.4e-4 and 1.6e-4 m. The heads are posed at the centers of the boundary cells. The row spread bound is 0.1 times the MODFLOW 6 head closure (1e-4 m).
  • Thresholds of boussinesq: Twice the error measured with PETSc on 40 x 4 square cells of 2.5 m: space-time RMSE 0.00034 m, max error 0.0032 m, final RMSE 7.3e-05 m. PETSc takes 4 backward-Euler steps a period (TS VI); the error is first order in time, so it sits below the one-step MODFLOW band of this case. The heads sit dx/3 inside the faces. Before 2026-10-09 the 40-column strips had 3 rows, cells of 2.5 x 3.3 m: on right triangles of unequal sides the two-point flux of the solver is not consistent, and the recharge step ended 1.1e-2 m off. The strip is uniform across rows, so a row spread is solver noise: PETSc reads below 1e-14 m; the bound is 1e-8 m.
  • Thresholds of boussinesq_local: The band of tolerances.toml, shared with MODFLOW. The default local engine takes one backward-Euler step a period, as MODFLOW does, and on 40 x 4 square cells of 2.5 m it reads space-time RMSE 0.0014 m, max error 0.012 m, final RMSE 9.9e-05 m, against 1.4e-3, 1.2e-2 and 9.0e-5 m for MODFLOW. The strip is uniform across rows, so a row spread is solver noise: the local engine reads below 1e-8 m (its head closure is 1e-9 m); the bound is 1e-7 m.

Schedule. modflow_nwt, modflow6, boussinesq_local, : runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

A stress period holds a constant forcing, and HydroModPy stores only its end state. Against the closed form of a step at a Dirichlet boundary, h(x, t) = dh * erfc(x / (2 sqrt(D t))) with D = K b / S, this case pins three statements that are easy to get backwards:

1. simulation.time.substeps_per_period is the knob. The default of one backward-Euler step over the whole period carries an order of magnitude more error than ten. 2. A geometric partition (MODFLOW TSMULT) cannot help. Within a period the forcing is constant, so the backward-Euler end state is a commuting product over the steps: it depends on the multiset of step sizes and not on their order, and equal steps minimize its error. A growth ratio and its reciprocal give the same error, both worse than equal steps. This is why HydroModPy declares TSMULT = 1 and exposes no growth field. 3. Adaptive time stepping must not undo the request. MF6 ignores the TDIS NSTP of a period ATS covers, so the ATS record has to carry the declared step as both its starting and its maximum value.

A fourth test leaves the closed form for HydroModPy's own configuration, a seasonal recharge on a hillslope drained by surface DRN cells and a river. There the default of one step per period is not a small bias: it moves the monthly discharge, the quantity a calibration scores against, by tens of percent. The default is left at 1 because the right count is a property of the model (tau = L**2 S / (K b) against the period length) and the cost is linear in it, but a run that leaves it there is making a choice, not accepting a neutral value.

The first, second and fourth tests run on MODFLOW 6 and on MODFLOW-NWT, both built straight in flopy: NWT is backward Euler with TSMULT as well, and the rows 65, 66 and 68 hold for it unchanged. The third test is MODFLOW 6 only, as MODFLOW-NWT has no adaptive time stepping. The fifth test runs the Boussinesq solver, PETSc and default engine, through its own driver. That driver takes substeps_per_period equal backward-Euler steps per period, so statement 1 holds there; it has no growth ratio and no ATS, so statements 2 and 3 do not apply. The PETSc run sets ts_vi_steps_per_period = 1 so that the driver is the only source of sub-steps.

Tolerances: tests/TOLERANCES.md rows 65-68, and the floor of _BOUSSINESQ_RATIO_FLOOR for the fifth test.

Run it alone: python -m validation_cases.analytical.transient.linearized_unconfined_boundary_step_1d.run_case

Thresholds from tests/TOLERANCES.md

  • Row 65: Stress-period sub-stepping (MF6), RMSE ratio between nstp=1 and nstp=10: > 10x (Derived. Backward Euler is first order in time, so halving the step halves the error; ten steps should gain about an order of magnitude on a smooth relaxation, and the assertion is the weakest form of that (a strict factor 10) rather than a fitted ratio)
  • Row 66: Stress-period sub-stepping (MF6), RMSE difference between TSMULT r and 1/r: 1e-6 m (Derived. Within a stress period the forcing is constant, so the backward-Euler end state is a product of commuting operators over the steps: it depends on the multiset of step sizes and not on their order, and a ratio and its reciprocal only reverse that order. The identity is exact in exact arithmetic, so the band is the iterative closure, declared at DVCLOSE = 1e-3 m by COMPLEXITY SIMPLE)
  • Row 67: Adaptive time stepping (MF6), RMSE relative difference, ATS on against ATS off: 1e-12 (Machine epsilon. Nothing fails on this column, so ATS never cuts, and with dt0 = dtmax = perlen / nstp it replays the declared partition step for step. The two runs are the same arithmetic in the same order)
  • Row 68: One step per stress period (MF6), monthly discharge drift against a refined run: 0.10 (Derived. Backward Euler is first order, so the drift scales with the step; on the hillslope this case builds it is measured at 28 % with one step per month against thirty, and it stays above 10 % across the whole plausible bedrock range (K from 1e-7 to 1e-4 m/s gave 4 % to 28 %). The floor is set at 10 %, well inside the measured band, because the row exists to state that the drift is large and not to pin its exact value)
  • Row 132: Stress-period sub-stepping (Boussinesq), RMSE ratio between nstp=1 and nstp=10: > 4.8x (Derived. Backward Euler is first order, so ten steps would gain about ten on the time error alone; the strip's spatial error and the linearization of the closed form hold the ratio just under ten, so the floor is half of what is measured. Head step on a 20 x 2 strip of 5 m cells, one 12 h period, substeps_per_period read by the Boussinesq driver (tests/validation/analytical/transient/test_stress_period_substepping.py))

Test functions

  • The column stays semi infinite over the period.
  • Substeps are what buys transient accuracy.
  • A geometric partition cannot beat equal steps.
  • Adaptive stepping preserves the declared substeps.
  • One step per period moves the discharge a calibration scores.
  • The boussinesq driver takes the requested substeps.

File tests/validation/analytical/transient/test_stress_period_substepping.py. Markers: analytical, fast, mf6, transient, validation.

The linear reservoir against the RK4 reference, played once#

not measured linear_reservoir

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The case runs the kernel of the linear reservoir, a one-cell global model that is not a column of the matrix. No MODFLOW or Boussinesq backend solves this recession.

No reference named. The text of the test says what it checks.

Last measurement

No measurement in the results snapshot: no recorded run has reached this file.

Schedule. This file: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

The case runs the backend's solver of the metadata's recipe (one storm of 5 days at 5 mm/day, then 20 dry days, tau 30 days) through the exact kernel the backend solves with, alongside the RK4 runs of the reference of the case. The tolerance is the one tests/TOLERANCES.md row 188 carries.

Thresholds from tests/TOLERANCES.md

  • Row 188: The linear reservoir on the one-cell mesh, discharge-depth series and released volume, state max abs error: 1e-4` of the tank peak (Derived from the RK4 reference of the case, an integration the backend never runs, at a thousandth of a day)

Test functions

  • The linear reservoir of one cell matches the rk4 reference.

File tests/validation/analytical/transient/test_the_linear_reservoir_runs_a_one_cell_mesh.py. Markers: analytical, fast, transient, validation.

MODFLOW 6 alone against a closed form#

Hantush-Jacob (1955) leaky-aquifer benchmark against MODFLOW 6 and MODFLOW-NWT#

pass solver sanitymodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • Boussinesq, Boussinesq default: The Boussinesq solver is one 2D layer with no confined storage, and its drainage only removes water above the ground, so a leaky aquifer fed by a constant-head source bed cannot be set up.

Compared with: the Hantush-Jacob (1955) drawdown of a leaky confined aquifer, s = Q / (4 pi T) W(u, r / B).

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.99
Largest relative drawdown error at a probe0.00812< 0.02
modflow6
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.99
Largest relative drawdown error at a probe0.0081< 0.02
modflow6_irregular_tri
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.99
Largest relative drawdown error at a probe0.00615< 0.02
modflow6_voronoi
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.99
Largest relative drawdown error at a probe0.0131< 0.02

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run. The last column gives the measured value and the threshold as shares of the largest drawdown of the reference, 0.376 to 0.387 m.

Schedule. modflow_nwt, modflow6: runs in Nightly / validation no PETSc, Weekly / Cross Platform. modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

A fully penetrating well pumps at constant rate Q in a confined aquifer overlain by a leaky aquitard of thickness b' and vertical conductivity K'. A source bed of constant head sits above the aquitard. Under these assumptions the analytical drawdown is the Hantush solution:

s(r, t) = Q / (4 pi T) * W(u, r / B)

with u = r^2 S / (4 T t), B = sqrt(T b' / K') the leakage factor and the Hantush well function

W(u, beta) = int_u^inf (1/y) exp(-y - beta^2 / (4 y)) dy.

The numerical reference is a three-layer MF6 IMS model:

* layer 0: source bed - all cells are CHD at the initial head,
* layer 1: aquitard - thickness ``b'`` and K = ``K'``, no storage,
* layer 2: main pumped aquifer - thickness ``b``, K such that
``T = K b``, specific storage such that ``S = S_s b``.

A telescoping grid concentrates resolution near the well; the outer Dirichlet ring sits well beyond the radius of influence ~sqrt(4 T t / S). Drawdown is compared at radii 10/50/100 m and times 1/3/10 d.

Four grids run the same sandwich, well, time steps and probes:

* ``modflow6``: the MF6 telescoping rectilinear DIS grid above.
* ``modflow_nwt``: the same grid and layers in MODFLOW-NWT (UPW, three
 confined layers, layer 0 and the outer ring of layer 2 at ``ibound = -1``,
 ``headtol = 1e-8`` m so the closure cannot hide the 2 % bound).
* ``modflow6_irregular_tri`` and ``modflow6_voronoi``: three layers on a DISV
 disc of jittered concentric rings (``tests/validation/helpers/disv_meshes.py``),
 cells growing by 1.2 per ring out to 1 km (ten leakage factors, where the
 drawdown is 3e-6 m). Layer 0 holds the head in every cell, layer 2 in the
 cells with a boundary edge, and the well pumps from the layer 2 cell that
 holds the origin. The probe is the cell whose center is the closest to the
 target point; the closed form uses the discrete distance between centers.

XT3D on the triangles follows HydroModPy's rule (DisvMesh.xt3d_reason): the triangle disc has a p95 connection non-orthogonality of 37 deg, above the 30 deg trigger, so XT3D is on (control run with the two-point flux: 1.28 % instead of 0.61 %). The Voronoi disc is orthogonal and runs with the two-point flux.

Tolerance rationale - tests/TOLERANCES.md row 6: NSE > 0.99 and maximum pointwise relative error below 2 %, for every grid. Measured maximum relative error: rectilinear 0.81 %, NWT 0.81 %, triangles 0.61 %, Voronoi 1.31 % (NSE above 0.9995 for all). The drawdown is steady from the first probe time, so the three times of a radius carry one error.

Scope - solver_sanity: The three-layer sandwich (source / aquitard / pumped aquifer) and the telescoping grid are built directly on the flopy SDK because the hydromodpy launcher TOML does not expose this geometry. The test therefore validates MODFLOW 6 against the Hantush analytical solution, not the hydromodpy pipeline. The NWT leg checks the NWT binary against the same closed form.

Test functions

  • Hantush leaky aquifer matches analytical reference.

File tests/validation/analytical/transient/test_hantush.py. Markers: analytical, solver_sanity, transient, validation.

Ogata-Banks (1961) 1D advection-dispersion benchmark against MODFLOW 6 GWT#

pass solver sanitymodflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • NWT: MODFLOW-NWT has no GWT. HydroModPy transports on NWT with MT3DMS, whose adapter sets ICBUND to 1 and feeds solute from recharge only, so it cannot hold the constant inlet concentration this file needs.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no transport: the registry holds no transport adapter for it and the solver page lists its transport as refused. This file runs MODFLOW 6 GWT.

Compared with: the Ogata-Banks (1961) concentration profile of 1D advection and dispersion from a constant-concentration inlet.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Ogata banks 1d transport matches analytical reference [modflow6]
pass
Nash-Sutcliffe efficiency of the concentration1> 0.95
Largest relative concentration error where c > 1e-3 c00.0223< 0.025
Ogata banks 1d transport matches analytical reference [modflow6_irregular_tri]
pass
Nash-Sutcliffe efficiency of the concentration1> 1
Largest relative concentration error where c > 1e-3 c00.0271< 0.03
Ogata banks 1d transport matches analytical reference [modflow6_voronoi]
pass
Nash-Sutcliffe efficiency of the concentration1> 1
Largest relative concentration error where c > 1e-3 c00.0252< 0.0277
Ogata banks error shrinks under refinement [modflow6]
pass
Refined-grid Nash-Sutcliffe efficiency1> 0.99
Refined-grid largest relative concentration error0.00487< 0.01
Refined error over production error0.218< 0.5
Ogata banks error shrinks under refinement [modflow6_irregular_tri]
pass
Refined-grid Nash-Sutcliffe efficiency1> 0.99
Refined-grid largest relative concentration error0.00701< 0.01
Refined error over production error0.258< 0.5
Ogata banks error shrinks under refinement [modflow6_voronoi]
pass
Refined-grid Nash-Sutcliffe efficiency1> 0.99
Refined-grid largest relative concentration error0.00621< 0.01
Refined error over production error0.247< 0.5

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. modflow6, modflow6_irregular_tri: runs in Nightly / validation no PETSc, Weekly / Cross Platform. modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

A semi-infinite column is initially solute-free and subjected to a constant-concentration injection c0 at x = 0 under steady uniform flow of pore velocity v with longitudinal dispersion coefficient D. The analytical solution is the Ogata-Banks profile:

c(x, t) = c0 / 2 * [ erfc((x - v t) / (2 sqrt(D t)))
                    + exp(v x / D) * erfc((x + v t) / (2 sqrt(D t))) ]

The reference is a 1D MF6 GWF + GWT model: flow is driven by a constant injection flux on the left and a CHD sink on the right producing a uniform pore velocity v; transport is solved with a constant concentration c0 at the inlet and an open boundary at the outlet. Numerical and analytical concentrations are compared at probe points along the column at three times.

Three grids run the same column. modflow6 is the rectilinear DIS column above. modflow6_irregular_tri and modflow6_voronoi are DISV strips three cells wide of jittered triangles and Voronoi polygons (tests/validation/helpers/disv_meshes.py), the topology HydroModPy always gives GWT. There the end cells hold the exact linear head h(x) = i (L - x) at their centers (pore velocity v for any consistent flux), the inlet cells hold the concentration c0, and the closed form starts at the mean center of those cells. A probe averages the cells whose center lies within half a cell of x, and the closed form is averaged over the same centers. Dispersion keeps MODFLOW 6's default XT3D, as HydroModPy's GWT does. The flow follows HydroModPy's XT3D rule (DisvMesh.xt3d_reason): the triangle strip has a p95 connection non-orthogonality of 34 deg, above the 30 deg trigger, so XT3D is on; the Voronoi strip is orthogonal and runs with the two-point flux. Control run on the triangles with the two-point flux: 10.2 % instead of 2.7 %.

Tolerance rationale - tests/TOLERANCES.md row 7: NSE > 0.95 across all (x, t) probes with a maximum pointwise relative error below 2.5 % (measured 2.2 % at the production grid). The DISV strips measured 2.52 % (Voronoi, NSE 0.99979) and 2.71 % (triangles, NSE 0.99976) at the same cell size of 0.1 m, so they carry their own limits (DISV_BASE_LIMITS). The gap is the scheme's truncation error (TVD limiter and backward Euler at a Courant number of 0.5), not a mesh defect: the refinement test cuts it by a factor of about 4 on every grid (rectilinear 2.2 to 0.49 %, Voronoi 2.52 to 0.62 %, triangles 2.71 to 0.70 %). A second test refines dt by 4 and dx by 2 and requires the error to fall below that of the production run.

Scope - solver_sanity: The coupled GWF + GWT column with inlet auxiliary concentration is built directly on the flopy SDK because hydromodpy's transport plumbing does not yet expose MF6 GWT through the launcher TOML. The test therefore validates MODFLOW 6 GWT against the Ogata-Banks analytical solution, not the hydromodpy pipeline.

Test functions

  • Ogata banks 1d transport matches analytical reference.
  • Ogata banks error shrinks under refinement.

File tests/validation/analytical/transient/test_ogata_banks.py. Markers: analytical, mf6, slow, solver_sanity, transient, validation.

Theis (1935) transient confined pumping benchmark against MODFLOW 6 and MODFLOW-NWT#

pass solver sanitymodflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • Boussinesq, Boussinesq default: The Boussinesq solver has no confined storage: its only storage property is the specific yield and its transmissivity is K times the saturated thickness, so a confined aquifer with Ss cannot be set up.

Compared with: the Theis (1935) drawdown of a confined aquifer, s = Q / (4 pi T) W(u).

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.999
Largest relative drawdown error at a probe0.00439< 0.01
modflow6
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.999
Largest relative drawdown error at a probe0.00438< 0.01
modflow6_irregular_tri
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes1> 0.999
Largest relative drawdown error at a probe0.00661< 0.01
modflow6_voronoi
pass
Nash-Sutcliffe efficiency of the drawdown, 9 probes0.996> 0.996
Largest relative drawdown error at a probe0.0208< 0.0229

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run. The last column gives the measured value and the threshold as shares of the largest drawdown of the reference, 0.97 to 0.981 m.

Schedule. modflow_nwt, modflow6: runs in Nightly / validation no PETSc, Weekly / Cross Platform. modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Weekly / Cross Platform, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

A fully penetrating well pumps at a constant rate Q in a homogeneous isotropic confined aquifer of transmissivity T and storativity S. The drawdown field is radial:

s(r, t) = Q / (4 pi T) * W(u),  u = r^2 S / (4 T t)

with well function W(u) = E_1(u) (exponential integral). The numerical reference is an MF6 IMS-backed confined GWF model. The grid is telescoping - a fine inner patch resolves the near-well drawdown and coarse outer cells push the Dirichlet boundary far enough that its influence on the observation window stays well below the test tolerance. Drawdown is evaluated at three radial distances (10 m, 50 m, 100 m) and three times (1 d, 3 d, 10 d) and compared pointwise against s(r, t).

Four grids run the same aquifer, well, time steps and probes:

* ``modflow6``: the MF6 telescoping rectilinear DIS grid above.
* ``modflow_nwt``: the same telescoping grid in MODFLOW-NWT (UPW, confined
 layer, ``ibound = -1`` on the outer ring, ``headtol = 1e-8`` m: the NWT
 default of 1e-2 m would hide a 1 % bound on drawdowns of a few decimeters).
* ``modflow6_irregular_tri`` and ``modflow6_voronoi``: DISV discs of
 jittered concentric rings (``tests/validation/helpers/disv_meshes.py``),
 cells growing by 1.2 per ring out to 9 km, the well in the cell that holds
 the origin, the head held in the cells with a boundary edge. The probe is
 the cell whose center is the closest to the target point and the closed
 form uses the discrete distance between the two centers.

XT3D on the triangles follows HydroModPy's rule (DisvMesh.xt3d_reason): the triangle disc has a p95 connection non-orthogonality of 37 deg, above the 30 deg trigger, so XT3D is on (control run with the two-point flux: 1.03 % instead of 0.66 %). The Voronoi disc is orthogonal and runs with the two-point flux.

Tolerance rationale - tests/TOLERANCES.md rows 4/5: * NSE against analytical drawdown must exceed 0.999. * Maximum absolute error across all (r, t) pairs: 1% relative.

Measured: rectilinear 0.44 %, NWT 0.44 % (NSE 0.99986 both), triangles 0.66 % (NSE 0.99990), Voronoi 2.08 % (NSE 0.99606). Rows 4 and 5 hold for the first three. The Voronoi disc keeps a gap of its own (DISV_LIMITS, 1.1 times the measurement). Control runs on the same Voronoi disc: the error comes from the ring step, not from the near-well cell or the jitter. Keeping ring growth 1.2 and moving the first ring from 1.0 to 0.5 m leaves 2.09 %; removing the jitter leaves 1.87 %; growth 1.1 gives 1.22 % (NSE 0.99936) and growth 1.05 gives 0.94 % (NSE 0.99974). At 10 d, the error at r = 100 m falls from 1.35 % to 0.42 % to 0.16 % over the three growths.

Scope - solver_sanity: The model is built directly on the flopy SDK (telescoping grid, central well, outer CHD ring) because the geometry sits outside what the hydromodpy launcher TOML exposes. This test therefore validates MODFLOW 6 against the Theis analytical solution, not the hydromodpy pipeline. It protects against solver-level regressions and bundled-binary drift, not against hydromodpy refactors. The NWT leg checks the NWT binary against the same closed form.

Thresholds from tests/TOLERANCES.md

  • Row 4: Theis confined pumping 2D, NSE vs analytical (9 probes): > 0.999 (Richardson, telescoping grid, 1 m near-well cell)
  • Row 5: Theis confined pumping 2D, max pointwise relative drawdown error: < 1 % (Near-well discretization, domain radius ≫ r_i(t = 10 d))

Test functions

  • Theis confined pumping matches analytical reference.

File tests/validation/analytical/transient/test_theis.py. Markers: analytical, solver_sanity, transient, validation.

Published numerical references, steady state#

LAK ex-gwf-lak-p01 validation (Merritt & Konikow 2000, test 1)#

pass modflow6

Not run on

  • NWT: HydroModPy builds no LAK package on MODFLOW-NWT, and this case checks the HydroModPy MODFLOW 6 DISV lake builder against the upstream MODFLOW 6 example.
  • MF6 triangles, MF6 Voronoi: The reference is the published solution on its own rectilinear grid, and the structural checks count that grid's connections (25 vertical, 20 horizontal). Other cell shapes have other counts. The lake on triangle and Voronoi meshes is run by test_lak_grid_equivalence.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no lake package: a lake boundary is refused with IncompatibleCapabilitiesError, and the lake boundary lists modflow6 as its only backend.

Compared with: the MODFLOW 6 example ex-gwf-lak-p01 (Merritt and Konikow 2000, test 1), built by its upstream scripts.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. This file: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

End-to-end validation of HMP's home-grown DISV LAK build against the upstream MODFLOW 6 example. Both models share the SAME single surface-lake footprint on the same five-layer aquifer; the reference builds its LAK CONNECTIONDATA with the upstream get_lak_connections (feet/days), the HMP build with the home-grown DISV builder (meters/seconds). Two levels:

  • STRUCTURAL: the generated CONNECTIONDATA reproduces the upstream 25 VERTICAL + 20 HORIZONTAL connection set (deterministic, but exercised here on the full built model);
  • NUMERICAL: the final lake stage, the gross lake-aquifer flux and each build's budget closure agree within the documented tolerances.toml envelope.

Run it alone: python -m validation_cases.numerical.steady.lak_merritt_konikow_p01.run_case

Test functions

  • Lak p01 matches reference within tolerances.

File tests/validation/numerical/steady/test_lak_merritt_konikow_p01.py. Markers: allow_subprocess, binary, mf6, slow, steady, validation.

Patch test: a uniform flow on skewed triangles#

pass, known gap end to endmodflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localmodflow6_irregular_tri_xt3d_offmodflow6_voronoi_generated

Known gap: modflow6_irregular_tri_xt3d_off

The two-point flux is not consistent on these triangles. It takes the flux across an edge as T L (h_b - h_a) / d, d the distance between the two cell centers: that is the flux of a uniform gradient only where the center line is normal to the edge. On this strip the angle between them has a median of 23 deg and a 95th percentile of 42 deg, so a linear head does not balance and the solution bends: 3 to 6 % of the head drop. Control run, the same files with XT3D: 6e-8 m. The error does not fall with the cell size: the Boussinesq solver, which has the same flux, reads 5.8e-3, 5.6e-3 and 5.5e-3 m RMSE on 80, 320 and 1280 triangles of the same shapes. Gmsh catchment meshes have such angles; HydroModPy switches XT3D on by itself when their 95th percentile passes 30 deg.

Known gap: boussinesq

The Boussinesq solver, on either engine, has a two-point flux between triangle centroids, T L (h_b - h_a) / d, d the distance between the centroids, with no correction for skewed cells. It is the flux of a uniform gradient only where the centroid line is normal to the edge. On this strip the angle between them has a median of 23 deg and a 95th percentile of 42 deg, so a linear head does not balance and the solution bends: 3 to 6 % of the head drop, as for MODFLOW 6 with XT3D off (5.7e-3 m). The error does not fall with the cell size: 5.8e-3, 5.6e-3 and 5.5e-3 m RMSE on 80, 320 and 1280 triangles of the same shapes, the mark of an inconsistent scheme. MODFLOW 6 with XT3D reproduces the head to 6e-8 m. A Gmsh catchment mesh has such angles; the island cases mesh near-equilateral triangles for this reason.

Known gap: boussinesq_local

The Boussinesq solver has a two-point flux between triangle centroids, T L (h_b - h_a) / d, d the distance between the centroids, with no correction for skewed cells. It is the flux of a uniform gradient only where the centroid line is normal to the edge. On this strip the angle between them has a median of 23 deg and a 95th percentile of 42 deg, so a linear head does not balance and the solution bends: 3 to 6 % of the head drop, as for MODFLOW 6 with XT3D off (5.7e-3 m). The error does not fall with the cell size: 5.8e-3, 5.6e-3 and 5.5e-3 m RMSE on 80, 320 and 1280 triangles of the same shapes, the mark of an inconsistent scheme. MODFLOW 6 with XT3D reproduces the head to 6e-8 m. A Gmsh catchment mesh has such angles; the island cases mesh near-equilateral triangles for this reason.

Not run on

  • NWT: MODFLOW-NWT builds a structured grid of axis-aligned rectangles and ignores a runtime mesh: it cannot hold the skewed triangles of this strip.
  • MF6: The structured MODFLOW 6 grid is axis-aligned rectangles with centres normal to the shared faces: no skewed cells. Its skewed-triangle runs are the triangle and Voronoi columns.

Compared with: the steady head of a uniform flow at every triangle centroid.

\[\left(h(x)-z_b\right)^2=\left(h_W-z_b\right)^2+\left[\left(h_E-z_b\right)^2-\left(h_W-z_b\right)^2\right]\frac{x-x_W}{x_E-x_W}\]

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow6_irregular_tri
pass
Head RMSE2.28e-08 m< 1e-05 m
Head max abs error5.76e-08 m< 1e-05 m
modflow6_voronoi
pass
Head RMSE3.94e-08 m< 8e-08 m
Head max abs error7.27e-08 m< 1.5e-07 m
boussinesq
pass, known gap
Head RMSE0.00581 m< 0.0064 m
Head max abs error0.0131 m< 0.0144 m
boussinesq_local
pass, known gap
Head RMSE0.00581 m< 0.0064 m
Head max abs error0.0131 m< 0.0144 m
modflow6_irregular_tri_xt3d_off
pass, known gap
Head RMSE0.00573 m< 0.0063 m
Head max abs error0.0119 m< 0.0132 m

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Plan-view map of simulated minus reference head, one panel per solver: MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, modflow6_irregular_tri_xt3d_offPlan-view map of simulated minus reference head, one panel per solver: MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default, modflow6_irregular_tri_xt3d_off
Head error in plan view, simulated minus reference, one scale for all panels; blank cells are sea or inactive.

Why these thresholds

  • Thresholds of boussinesq: 1.1 times the measurement, a documented gap (below): RMSE 0.0058 m, max error 0.0131 m, for a head drop of 0.2 m across the strip. The PETSc engine assembles the residual of the default local engine (the shared two-point flux) and agrees with it to 1e-13 m, so both carry the same bound.
  • Thresholds of boussinesq_local: 1.1 times the measurement, a documented gap (below): RMSE 0.0058 m, max error 0.0131 m, for a head drop of 0.2 m across the strip.
  • Thresholds of modflow6_irregular_tri: Derived. XT3D reconstructs the gradient from the neighbors and is exact for a uniform flow on any cell shape: what is left is the solver closure (outer dvclose 1e-9 m) and the spread of the transmissivity, 2e-4 across the strip, which moves the exact head off a straight line by 5e-6 m. The bound is twice that. Measured: RMSE 2.3e-8 m, max 5.8e-8 m.
  • Thresholds of modflow6_irregular_tri_xt3d_off: 1.1 times the measurement, a documented gap (below): RMSE 0.0057 m, max error 0.0120 m, for a head drop of 0.2 m across the strip.
  • Thresholds of modflow6_voronoi: Twice the measurement: RMSE 3.9e-8 m, max error 7.3e-8 m. The Voronoi dual of the skewed nodes has orthogonal cells (a face bisects the two nodes it separates), so the two-point flux of a uniform gradient is exact, as XT3D is on the triangles. What is left is the solver closure (outer dvclose 1e-9 m) and the 2e-4 spread of the transmissivity across the strip. The heads are held on the nodes of the faces, x = 0 and 100 m, and the reference is anchored there. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: heads.rmse 8e-8 (measure 3.94e-8, patch test: solver closure and the spread of T); heads.max_abs_error 1.5e-7 (measure 7.28e-8, patch test: solver closure and the spread of T).
  • Thresholds of modflow6_voronoi_generated: Twice the measurement: RMSE 2.58e-8 m, max error 6.35e-8 m. The engine generates the mesh of the 100 x 40 m strip (no triangulation read): its cells are orthogonal to their faces (a face bisects the two seeds it separates), so the two-point flux of a uniform gradient is exact. What is left is the solver closure (outer dvclose 1e-9 m) and the 2e-4 spread of the transmissivity across the strip. The contact at x = 50 m is a mirror-pair face between two zones of the same K, so it changes nothing. Measured 2026-10-14. B9 of the unified mesh, measured again on 2026-10-26. Kept at a numerical floor, where twice the measure guarantees nothing: heads.rmse 5.2e-8 (measure 2.59e-8, patch test: solver closure and the spread of T); heads.max_abs_error 1.3e-7 (measure 6.48e-8, patch test: solver closure and the spread of T).

Schedule. modflow6_irregular_tri, modflow6_voronoi, boussinesq_local, modflow6_irregular_tri_xt3d_off, modflow6_voronoi_generated: runs in Nightly / validation no PETSc, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

A consistent finite-volume flux reproduces a linear head on any cell shape. On this strip of skewed, non-isosceles triangles MODFLOW 6 with XT3D does, to the solver closure, and so does MODFLOW 6 on the Voronoi dual of the same nodes and on a Voronoi mesh generated on the same strip: the cells are orthogonal to their faces (the face between two cells bisects their nodes), so the two-point flux of a uniform gradient is exact. The two-point flux between triangle centroids, in MODFLOW 6 without XT3D and in the Boussinesq solver (default local engine and PETSc engine, which assemble the same residual), does not: their error is recorded against a documented gap.

Thresholdmodflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_localmodflow6_irregular_tri_xt3d_offmodflow6_voronoi_generated
Head RMSE (m) <1e-058e-080.00640.00640.00635.2e-08
Head max abs error (m) <1e-051.5e-070.01440.01440.01321.3e-07

From validation_cases/numerical/steady/patch_test_skewed_triangles/: modflow6_irregular_tri reads tolerances_modflow6_irregular_tri.toml, modflow6_voronoi reads tolerances_modflow6_voronoi.toml, boussinesq reads tolerances_boussinesq.toml, boussinesq_local reads tolerances_boussinesq_local.toml, modflow6_irregular_tri_xt3d_off reads tolerances_modflow6_irregular_tri_xt3d_off.toml, modflow6_voronoi_generated reads tolerances_modflow6_voronoi_generated.toml.

Test functions

  • Patch test skewed triangles reproduces uniform flow.

File tests/validation/numerical/steady/test_patch_test_skewed_triangles.py. Markers: fast, steady, validation.

Published numerical references, transient#

Lower-obstacle drying behavior in the PETSc complementarity runtime#

pass boussinesq

Not run on

  • NWT: The test calls the PETSc mixed-complementarity runtime (petsc_mixed.solve_transient_step) directly on a hand-built mesh and asserts its dry_deficit_rate_m_s, an output no MODFLOW backend computes. There is no MODFLOW model to swap in.
  • MF6: The test calls the PETSc mixed-complementarity runtime (petsc_mixed.solve_transient_step) directly on a hand-built mesh and asserts its dry_deficit_rate_m_s. MF6 Newton dries and rewets cells, but it outputs no deficit rate and has no lower-obstacle multiplier to compare.
  • MF6 triangles: The test calls the PETSc mixed-complementarity runtime directly on a hand-built mesh and asserts its dry_deficit_rate_m_s. MF6 on triangles outputs no deficit rate and has no lower-obstacle multiplier to compare.
  • MF6 Voronoi: The test calls the PETSc mixed-complementarity runtime directly on a hand-built mesh and asserts its dry_deficit_rate_m_s. MF6 on a Voronoi dual outputs no deficit rate and has no lower-obstacle multiplier to compare.
  • Boussinesq default: The lower obstacle and its dry-deficit rate exist only in the PETSc complementarity runtime. The local engine solves the head-only regularized partition, leaves dry_deficit_rate_m_s at None, and on this single cell ends 0.4 m below the substratum.

Compared with: the expected dry state at the substratum and the deficit rate the lower obstacle must carry; no reference solution over time.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Single cell pumping activates lower obstacle
pass
no metric recorded; the asserts of the test decide
Steep sloping hillslope zero recharge dries then rewets
pass
no metric recorded; the asserts of the test decide

Measured on 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Schedule. This file: runs in Nightly / validation PETSc, Solver / PETSc smoke Linux. Jobs.

What the test does, all thresholds, the file

Test functions

  • Single cell pumping activates lower obstacle.
  • Steep sloping hillslope zero recharge dries then rewets.

File tests/validation/numerical/transient/test_boussinesq_drying_petsc.py. Markers: petsc, transient, validation.

Surface threshold activation on the transient hillslope overflow case#

pass boussinesq_localpetscpetsc_partition

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi: The test reads Boussinesq runtime_summary keys (surface_threshold_*, surface_complementarity_*) and the saturation excess history, which only the Boussinesq solver writes. MODFLOW has no surface-threshold activation state.

Compared with: no reference solution: the test checks that the surface threshold activates and that the complementarity conditions hold.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
boussinesq_local
pass
no metric recorded; the asserts of the test decide
boussinesq_local_alternating
pass
no metric recorded; the asserts of the test decide
boussinesq_local_strong
pass
no metric recorded; the asserts of the test decide
petsc_complementarity
pass
no metric recorded; the asserts of the test decide
petsc_complementarity_alternating
pass
no metric recorded; the asserts of the test decide
petsc_complementarity_strong
pass
no metric recorded; the asserts of the test decide
petsc_partition
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Schedule. petsc, petsc_partition: runs in Nightly / validation PETSc, Solver / PETSc smoke Linux. boussinesq_local: runs in Nightly / validation no PETSc, Solver / PETSc smoke Linux. Jobs.

What the test does, all thresholds, the file

The case runs on the Boussinesq solver only: MODFLOW has no overflow threshold of this kind. The PETSc engine runs the regularized partition and the complementarity closure. The default local engine (boussinesq_local, the dense runtime) runs the regularized partition, with the default and the strong forcing and the alternating one. It writes the same threshold summary, so the activation checks hold on it, and the complementarity checks do not apply to it. The file keeps its petsc name for the PETSc legs.

Run it alone: python -m validation_cases.numerical.transient.boussinesq_hillslope_recharge_pulse_overflow_1d.run_case

Test functions

  • Hillslope overflow petsc variants activate surface threshold.

File tests/validation/numerical/transient/test_boussinesq_hillslope_recharge_pulse_overflow_petsc.py. Markers: slow, transient, validation.

LAK grid-equivalence validation (regular quad vs triangle and Voronoi DISV)#

pass modflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • NWT: HydroModPy builds no LAK package on MODFLOW-NWT, and this case checks the HydroModPy MODFLOW 6 DISV lake builder on two meshes. NWT also works on the structured grid only.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no lake package: a lake boundary is refused with IncompatibleCapabilitiesError, and the lake boundary lists modflow6 as its only backend.

Compared with: the same lake problem solved on a regular quad grid; only the mesh changes.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Lak regular and irregular grids agree [modflow6_irregular_tri]
pass
Largest per-period lake stage difference between the grids0.0384 m<= 0.06 m
Steady lake-aquifer exchange flux, relative difference1.08e-10<= 0.05
Worst LAK budget discrepancy, irregular grid1.9e-06 %<= 1 %
Worst LAK budget discrepancy, quad grid1.9e-06 %<= 1 %
Lak regular and irregular grids agree [modflow6_voronoi]
pass
Largest per-period lake stage difference between the grids0.0535 m<= 0.059 m
Steady lake-aquifer exchange flux, relative difference1.31e-10<= 0.05
Worst LAK budget discrepancy, irregular grid1.91e-06 %<= 1 %
Worst LAK budget discrepancy, quad grid1.9e-06 %<= 1 %
Lak regular grid closes its budget
pass
Worst LAK budget discrepancy, quad grid1.9e-06 %< 1 %

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. modflow6_irregular_tri, modflow6_voronoi, : runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

The SAME transient multi-layer lake-aquifer problem (Plainfield Lakes abacus, one reservoir incised across the top two layers of a 4-layer aquifer) is solved through the production HMP LAK builders and MF6 on three grids:

  • REGULAR: the 15x15 quad DISV (225 cells, 40 m), the reference. It has its own test, which checks that it closes its LAK water balance.
  • TRIANGLE: a refined Delaunay triangle DISV (~772 cells, ~20 m near the lake).
  • VORONOI: a ragged Voronoi DISV (372 cells of 4 to 9 edges, 20 m over the lake), the default HydroModPy grid. Its edges run along the lake polygon, so the lake footprint is the same 200 m x 200 m.

Only the mesh changes: the domain, layers, lake footprint, abacus, bedleak, aquifer K / recharge, TDIS and per-period rainfall / evaporation / runoff are shared. The cross-grid test, run once per irregular grid, asserts:

  • the irregular grid is a genuine non-rectangular mesh that resolves the lake at least as finely as the quad grid;
  • the per-period lake stages agree within the documented stage envelope;
  • the steady lake-aquifer exchange flux agrees within the documented envelope;
  • both grids close their LAK water balance.

A materially diverging grid (wrong CONNECTIONDATA geometry, lost bank seepage) would break the stage envelope by an order of magnitude. The Voronoi stage gap (0.054 m, against 0.038 m for the triangles) is the cell size at the lake bank, not the builder: see tolerances_grid_equivalence_voronoi.toml.

Thresholdmodflow6_irregular_trimodflow6_voronoi
Worst LAK budget discrepancy, quad grid (%) <11
Largest per-period lake stage difference between the grids (m) <--
Steady lake-aquifer exchange flux, relative difference <--

From validation_cases/numerical/transient/lak_pleasant_transient/: modflow6_irregular_tri reads tolerances.toml, modflow6_voronoi reads tolerances.toml.

Run it alone: python -m validation_cases.numerical.transient.lak_pleasant_transient.run_case

Test functions

  • Lak regular grid closes its budget.
  • Lak regular and irregular grids agree.

File tests/validation/numerical/transient/test_lak_grid_equivalence.py. Markers: allow_subprocess, binary, fast, mf6, transient, validation.

Transient multi-layer LAK validation (Plainfield Lakes abacus)#

pass modflow6

Not run on

  • NWT: HydroModPy builds no LAK package on MODFLOW-NWT, and this case checks the HydroModPy MODFLOW 6 DISV lake builder against the upstream MODFLOW 6 example.
  • MF6 triangles, MF6 Voronoi: The structural checks count the connections of the 15x15 quad grid (vertical and horizontal per layer), which other cell shapes do not share. The same lake problem on triangle and Voronoi meshes is run by test_lak_grid_equivalence.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no lake package: a lake boundary is refused with IncompatibleCapabilitiesError, and the lake boundary lists modflow6 as its only backend.

Compared with: the water balance of each LAK period and the expected structure of the lake connections; there is no external reference solution.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. This file: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

End-to-end validation of HMP's home-grown DISV LAK build on a multi-layer, transient reservoir. One lake is incised across the TOP 2 layers of a 4-layer aquifer on a structured-as-DISV grid; TDIS runs one initial steady period then 3 transient periods with per-period rainfall / evaporation / runoff. Two levels:

  • STRUCTURAL: the generated CONNECTIONDATA carries one VERTICAL leakage per lake column plus HORIZONTAL bank seepage in BOTH occupied layers (proving the lake is incised across the top two layers);
  • TRANSIENT: the per-period forcings move the lake stage by a meaningful swing and every period's LAK water balance closes within the documented envelope.

Run it alone: python -m validation_cases.numerical.transient.lak_pleasant_transient.run_case

Test functions

  • Lak pleasant transient matches tolerances.

File tests/validation/numerical/transient/test_lak_pleasant_transient.py. Markers: allow_subprocess, binary, mf6, slow, transient, validation.

SFR + LAK + MVR validation against ex-gwf-lak-p02 (Merritt & Konikow 2000)#

pass modflow6

Not run on

  • NWT: MODFLOW-NWT has no mover package and HydroModPy builds no LAK or SFR on it. The case validates the HydroModPy MVR record seam that feeds MODFLOW 6.
  • MF6 triangles, MF6 Voronoi: The MVR seam sees no mesh, and the published 116.98 and 111.93 ft stages hold only on the upstream 27x17 rectilinear grid, whose SFR reaches are addressed by [lay, row, col], which HydroModPy refuses on unstructured grids.
  • Boussinesq, Boussinesq default: The Boussinesq solver has no lake, SFR or mover package: lake and sfr boundaries list modflow6 as their only backend. The case validates the MVR record seam that feeds MODFLOW 6.

Compared with: the final lake stages published for the MODFLOW 6 example ex-gwf-lak-p02 (Merritt and Konikow 2000), 116.98 and 111.93 ft.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
no metric recorded; the asserts of the test decide

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

Schedule. This file: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

The HMP package-agnostic MVR seam (MoverRecord -> build_mvr_period_records -> mover_package_count -> packages list, the exact assembly build.py performs) drives the upstream example's four transfers: two SFR -> LAK feeds and two LAK -> SFR spillway releases (one at FACTOR 0.5). Two levels:

  • STRUCTURAL: the HMP-formatted MVR period block reproduces the published mvr_spd rows verbatim and counts two packages;
  • NUMERICAL: real MF6 converges and the final lake stages match the PUBLISHED values (116.98 / 111.93 ft) within the documented tolerances.toml band, with all four transfers carrying water and the budget closed.

Test functions

  • Sfr lak mvr p02 matches published stages.

File tests/validation/numerical/transient/test_sfr_lak_mvr_p02.py. Markers: allow_subprocess, binary, mf6, slow, transient, validation.

Manufactured solutions#

1D diffusion transient with exp(-pi^2 D t) sin(pi x)#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The test assembles its own space and time stencils and imports nothing from hydromodpy, so there is no HydroModPy solver to run. It verifies the convergence orders of those stencils.

Compared with: the manufactured solution h(x, t) = exp(-pi^2 D t) sin(pi x) and the expected orders: 2 in space, 1 in time for backward Euler.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Mms diffusion transient space converges at order two
pass
Distance of the observed order from 20.00802< 0.2
Mms diffusion transient time converges at order one
pass
Distance of the observed order from 10.018< 0.2

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

0.0120.091grid spacing dx3.2e-050.0018
L2 error against grid spacing dx, l2 error, log scales
referencerun
0.00120.01time step dt0.00150.012
L2 error against time step dt, l2 error, log scales
referencerun

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Governing PDE on [0, 1] with Dirichlet 0/0 and initial condition h(x, 0) = sin(pi x):

h_t - D h_xx = 0

The manufactured solution h(x, t) = exp(-pi^2 D t) sin(pi x) is an exact eigenfunction of the Laplacian with no forcing. The discretization combines the standard second-order centered-space stencil with either backward Euler (first-order in time) or Crank-Nicolson (second-order in time) for the temporal update. Two refinement studies are run:

  • space - dx refined with Crank-Nicolson in time so the temporal error stays small enough for the spatial slope to emerge. Expected slope ~2.
  • time - dx held fine, dt refined under backward Euler. Expected slope ~1 (see tests/TOLERANCES.md row 10).

Scope, read this before citing the result ----------------------------------------- This file imports nothing from hydromodpy. It verifies the *scheme* on a stencil assembled inside the test, which is what MMS is for: it establishes that the discretization written here converges at its theoretical order. It does not exercise HydroModPy's own assembly, so a passing run here is not evidence that the production discretization is second-order.

What does cover the production path is the analytical tier (tests/validation/analytical/): Theis, Hantush and Ogata-Banks run a real solve through HydroModPy and compare against a closed form. Those would catch a gross regression, but a silent drop from order 2 to order 1 that stays inside the RMSE band would pass them. Closing that gap means running this convergence study on the production assembly, not extending this file.

Test functions

  • Mms diffusion transient space converges at order two.
  • Mms diffusion transient time converges at order one.

File tests/validation/mms/test_mms_diffusion_transient.py. Markers: analytical, fast, transient, validation.

1D Laplacian steady-state with manufactured sin(pi x) solution#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The test assembles its own finite-volume stencil and imports nothing from hydromodpy, so there is no HydroModPy solver to run. It verifies the order of that stencil.

Compared with: the manufactured solution u(x) = sin(pi x) and the expected convergence order 2 of the centered stencil.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
Distance of the observed order from 20.00192< 0.2

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run.

0.0120.091grid spacing h8.9e-050.0048
L2 error against grid spacing h, l2 error, log scales
referencerun

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Manufactured solution on [0, 1] with Dirichlet 0/0 boundaries:

u_exact(x) = sin(pi x)
-u''(x)    = pi^2 sin(pi x) = f(x)

The vertex-centered finite-volume (equivalent to the standard second-order centered finite-difference) stencil is:

(u[i-1] - 2 u[i] + u[i+1]) / h^2 = -f[i]

which is second-order consistent. Running on a sequence of refinements and regressing log ||e||_2 against log h gives an empirical order expected to sit inside [1.8, 2.2] (see tests/TOLERANCES.md row 8).

Scope, read this before citing the result ----------------------------------------- This file imports nothing from hydromodpy. It verifies the *scheme* on a stencil assembled inside the test, which is what MMS is for: it establishes that the discretization written here converges at its theoretical order. It does not exercise HydroModPy's own assembly, so a passing run here is not evidence that the production discretization is second-order.

What does cover the production path is the analytical tier (tests/validation/analytical/): Theis, Hantush and Ogata-Banks run a real solve through HydroModPy and compare against a closed form. Those would catch a gross regression, but a silent drop from order 2 to order 1 that stays inside the RMSE band would pass them. Closing that gap means running this convergence study on the production assembly, not extending this file.

Test functions

  • Mms laplacian 1d converges at order two.

File tests/validation/mms/test_mms_laplacian_1d.py. Markers: analytical, fast, steady, validation.

Calibration finds a known truth#

Calibration of T and S on a 1D transient confined aquifer#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The forward model is a 30-line NumPy finite-difference solver inside the case module, not a HydroModPy groundwater solver. The test checks the calibration engine on it, so there is no solver to switch.

Compared with: the transmissivity and storativity that generated the synthetic head record.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Groundwater 1d nelder mead recovers truth
pass
Distance of log10 T to the truth4.48e-05< 0.3
Distance of log10 S to the truth0.000718< 0.5
Groundwater 1d recovers truth [scipy_de-150]
pass
Distance of log10 T to the truth0.00123< 0.3
Distance of log10 S to the truth0.1< 0.5
Groundwater 1d recovers truth [scipy_nelder_mead-60]
pass
Distance of log10 T to the truth4.48e-05< 0.3
Distance of log10 S to the truth0.000718< 0.5

Measured on 2026-10-13, commit 7c78961c6 with uncommitted changes, version 2.0.0a5, a local run; 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run.

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Run it alone: python -m validation_cases.calibration.groundwater_1d.run_case

Test functions

  • Groundwater 1d recovers truth.

File tests/validation/calibration/test_groundwater_1d.py. Markers: fast, transient, validation.

Calibration of a Brutsaert-Nieber recession law#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The forward model is the closed-form Brutsaert-Nieber recession evaluated in NumPy; no HydroModPy groundwater solver runs. The test checks the calibration engine only.

Compared with: the parameters a and b of the recession dQ/dt = -a Q^b that generated the synthetic discharge.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
Distance of log10 a to the truth0.00634< 0.2
Distance of b to the truth0.0217< 0.25

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run.

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Run it alone: python -m validation_cases.calibration.recession_brutsaert.run_case

Test functions

  • Recession brutsaert nelder mead recovers truth.

File tests/validation/calibration/test_recession_brutsaert.py. Markers: fast, validation.

Calibration of one and two lumped reservoirs#

pass

Not run on

  • NWT, MF6, MF6 triangles, MF6 Voronoi, Boussinesq, Boussinesq default: The forward model is a lumped reservoir (one or two in series) integrated by explicit Euler in NumPy. No groundwater solver is involved.

Compared with: the reservoir parameters that generated the synthetic outflow record.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
One reservoir nelder mead recovers truth
pass
Distance of log10 k to the truth0.0653< 0.3
Distance of n to the truth0.0667< 0.3
Two reservoir de recovers truth
pass
Distance of log10 k1 to the truth0.237< 0.5
Distance of log10 k2 to the truth0.143< 0.5

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run.

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Run it alone: python -m validation_cases.calibration.reservoir.run_case

Thresholds from tests/TOLERANCES.md

  • Row 33: Reservoir calibration validation, recovered log10(k) and n drift from truth: < 0.3 (Fixed-iteration optimizer recovery envelope on deterministic synthetic reservoirs)

Test functions

  • One reservoir nelder mead recovers truth.
  • Two reservoir de recovers truth.

File tests/validation/calibration/test_reservoir.py. Markers: fast, slow, validation.

Validation of zoned K recovery by calibration methods on a steady twin, per solver#

pass modflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [modflow_nwt]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth2.37e-06 -
optuna: closest sample, distance of K_west to the truth1.05e-06 -
optuna: best fit, distance of K_middle to the truth1.71e-06 -
optuna: closest sample, distance of K_middle to the truth5.07e-08 -
optuna: best fit, distance of K_east to the truth5.17e-06 -
optuna: closest sample, distance of K_east to the truth2.52e-07 -
cma_es: evaluations used126 -
cma_es: best fit, distance of K_west to the truth1.94e-05<= 0.000125
cma_es: best fit, distance of K_middle to the truth1.08e-06<= 7.5e-05
cma_es: best fit, distance of K_east to the truth1.98e-06<= 7.5e-05
cma_es: second smallest error to tolerance ratio0.132<= 2
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth3.32e-07<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth2.87e-07<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth6.53e-07<= 2.25e-05
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [modflow6]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth2.37e-06 -
optuna: closest sample, distance of K_west to the truth1.05e-06 -
optuna: best fit, distance of K_middle to the truth1.71e-06 -
optuna: closest sample, distance of K_middle to the truth5.07e-08 -
optuna: best fit, distance of K_east to the truth5.17e-06 -
optuna: closest sample, distance of K_east to the truth2.52e-07 -
cma_es: evaluations used126 -
cma_es: best fit, distance of K_west to the truth1.94e-05<= 0.000125
cma_es: best fit, distance of K_middle to the truth1.08e-06<= 7.5e-05
cma_es: best fit, distance of K_east to the truth1.98e-06<= 7.5e-05
cma_es: second smallest error to tolerance ratio0.132<= 2
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth4.86e-06<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth2.48e-07<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth6.4e-07<= 2.25e-05
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [modflow6_irregular_tri]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth2.63e-05 -
optuna: closest sample, distance of K_west to the truth3.33e-07 -
optuna: best fit, distance of K_middle to the truth1.8e-06 -
optuna: closest sample, distance of K_middle to the truth2.84e-08 -
optuna: best fit, distance of K_east to the truth5.15e-06 -
optuna: closest sample, distance of K_east to the truth1.52e-07 -
cma_es: evaluations used126 -
cma_es: best fit, distance of K_west to the truth9e-06<= 0.000125
cma_es: best fit, distance of K_middle to the truth7.16e-07<= 7.5e-05
cma_es: best fit, distance of K_east to the truth2.41e-06<= 7.5e-05
cma_es: second smallest error to tolerance ratio0.161<= 2
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth6.82e-06<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth1.19e-07<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth2.81e-07<= 2.25e-05
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [modflow6_voronoi]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth6.08e-05 -
optuna: closest sample, distance of K_west to the truth2.98e-07 -
optuna: best fit, distance of K_middle to the truth7.95e-06 -
optuna: closest sample, distance of K_middle to the truth5.78e-08 -
optuna: best fit, distance of K_east to the truth1.17e-05 -
optuna: closest sample, distance of K_east to the truth6e-07 -
cma_es: evaluations used126 -
cma_es: best fit, distance of K_west to the truth2.69e-06<= 0.000125
cma_es: best fit, distance of K_middle to the truth8.06e-08<= 7.5e-05
cma_es: best fit, distance of K_east to the truth8.5e-07<= 7.5e-05
cma_es: second smallest error to tolerance ratio0.0567<= 2
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth2.29e-05<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth1.83e-06<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth4.16e-06<= 2.25e-05
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [boussinesq]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth2.08e-05 -
optuna: closest sample, distance of K_west to the truth4.88e-07 -
optuna: best fit, distance of K_middle to the truth2.77e-06 -
optuna: closest sample, distance of K_middle to the truth1.98e-07 -
optuna: best fit, distance of K_east to the truth8.22e-06 -
optuna: closest sample, distance of K_east to the truth1.52e-07 -
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth3.18e-06<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth3.5e-07<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth4.92e-07<= 2.25e-05
Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth [boussinesq_local]
pass
random_search_seed017: evaluations used96 -
random_search_seed017: best fit, distance of K_west to the truth1.65e-05 -
random_search_seed017: closest sample, distance of K_west to the truth2.04e-06 -
random_search_seed017: best fit, distance of K_middle to the truth5.7e-06 -
random_search_seed017: closest sample, distance of K_middle to the truth2.17e-08 -
random_search_seed017: best fit, distance of K_east to the truth2.32e-05 -
random_search_seed017: closest sample, distance of K_east to the truth1.73e-06 -
random_search_seed017: a sample within tolerance of the truth on every parameter1> 0
random_search_seed029: evaluations used96 -
random_search_seed029: best fit, distance of K_west to the truth2.53e-05 -
random_search_seed029: closest sample, distance of K_west to the truth1.77e-06 -
random_search_seed029: best fit, distance of K_middle to the truth5.57e-06 -
random_search_seed029: closest sample, distance of K_middle to the truth1.23e-06 -
random_search_seed029: best fit, distance of K_east to the truth1.29e-05 -
random_search_seed029: closest sample, distance of K_east to the truth1.12e-06 -
random_search_seed029: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used96 -
optuna: best fit, distance of K_west to the truth2.08e-05 -
optuna: closest sample, distance of K_west to the truth4.88e-07 -
optuna: best fit, distance of K_middle to the truth2.77e-06 -
optuna: closest sample, distance of K_middle to the truth1.98e-07 -
optuna: best fit, distance of K_east to the truth8.22e-06 -
optuna: closest sample, distance of K_east to the truth1.52e-07 -
cma_es: evaluations used126 -
cma_es: best fit, distance of K_west to the truth1.53e-05<= 0.000125
cma_es: best fit, distance of K_middle to the truth1.46e-06<= 7.5e-05
cma_es: best fit, distance of K_east to the truth2.82e-06<= 7.5e-05
cma_es: second smallest error to tolerance ratio0.188<= 2
scipy_nelder_mead: evaluations used42 -
scipy_nelder_mead: best fit, distance of K_west to the truth3.18e-06<= 3.75e-05
scipy_nelder_mead: best fit, distance of K_middle to the truth3.5e-07<= 2.25e-05
scipy_nelder_mead: best fit, distance of K_east to the truth4.92e-07<= 2.25e-05
Calibration twin piecewise k noise free search at the truth costs zero [modflow_nwt]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12
Calibration twin piecewise k noise free search at the truth costs zero [modflow6]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12
Calibration twin piecewise k noise free search at the truth costs zero [modflow6_irregular_tri]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12
Calibration twin piecewise k noise free search at the truth costs zero [modflow6_voronoi]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12
Calibration twin piecewise k noise free search at the truth costs zero [boussinesq]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12
Calibration twin piecewise k noise free search at the truth costs zero [boussinesq_local]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_west to the truth0<= 1e-12
Relative distance of K_middle to the truth0<= 1e-12
Relative distance of K_east to the truth0<= 1e-12

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Calibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameter
NWT. Points evaluated by random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameter
MF6. Points evaluated by random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameter
MF6 triangles. Points evaluated by random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameter
MF6 Voronoi. Points evaluated by random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search_seed017, random_search_seed029, optuna, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, scipy_nelder_mead: objective per parameter
Boussinesq. Points evaluated by random_search_seed017, random_search_seed029, optuna, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameterCalibration landscape of random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective per parameter
Boussinesq default. Points evaluated by random_search_seed017, random_search_seed029, optuna, cma_es, scipy_nelder_mead: objective against each parameter; the truth is marked and the best point of each method is ringed.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

A run with K = 2e-4, 5e-5 and 1e-4 m/s in three bands of a fixed-head strip gives three heads and the east outlet discharge. Each method then searches the three K from those four series alone. The twin runs on MODFLOW-NWT, MODFLOW 6 on its structured grid, on a triangle mesh and on the Voronoi dual of that mesh, and on the Boussinesq solver on the same triangles, with its PETSc engine and with its default local engine. The truth and the trials of a column come from the same solver, so the twin tests the recovery on each discretization and not the solver itself. The Boussinesq trials read the state history of the solver, and the outlet discharge is the flux through the fixed-head cells. The PETSc leg skips CMA-ES when the cma package is missing from its environment: the other four runs exercise the forward model alike. A second test checks that the twin is closed: with the search started at the truth, the cost and the error are zero on every column.

Thresholds from tests/TOLERANCES.md

  • Row 154: Twin calibration closure, noise free, search started at the truth (piecewise K, transient K+Sy; MODFLOW-NWT, MODFLOW 6, MODFLOW 6 triangles, MODFLOW 6 Voronoi), best normalized cost, and |p - p_true| / p_true of every parameter, after 3 evaluations of Nelder-Mead: <= 1e-12 (Machine epsilon. The bounds are symmetric about the truth with a uniform prior on the identity transform, so the first trial is the truth up to one rounding of (lo + hi) / 2. The truth observations (catalog Run, field_precision = "exact") and the trial observations (solver files) are then the same numbers at the same cell)

Test functions

  • Calibration twin boussinesq fixed head piecewise k modflow6 benchmark recovers truth.
  • Calibration twin piecewise k noise free search at the truth costs zero.

File tests/validation/calibration/test_twin_boussinesq_fixed_head_piecewise_k_modflow6.py. Markers: fast, steady, validation.

Validation of scalar K recovery under a mesh mismatch, per solver#

pass modflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.39e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth1.24e-06 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth1.4e-06<= 2.5e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth1.49e-06<= 2.5e-05
modflow6
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.39e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth1.24e-06 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth1.4e-06<= 2.5e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth1.73e-06<= 2.5e-05
modflow6_irregular_tri
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.1e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth1.24e-06 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth1.4e-06<= 2.5e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth1.41e-06<= 2.5e-05
modflow6_voronoi
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.39e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth1.97e-06 -
optuna: closest sample, distance of K_global to the truth2.82e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth2.52e-06<= 2.5e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.48e-06<= 2.5e-05
boussinesq
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth1.44e-05<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.39e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth8.54e-06 -
optuna: closest sample, distance of K_global to the truth1.09e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth9.2e-06<= 2.5e-05
boussinesq_local
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth1.44e-05<= 2.5e-05
random_search: evaluations used32 -
random_search: best fit, distance of K_global to the truth1.39e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
random_search: best fit or a sample within tolerance of the truth1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth8.54e-06 -
optuna: closest sample, distance of K_global to the truth1.09e-07 -
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth9.28e-06<= 2.5e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth9.2e-06<= 2.5e-05

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter
NWT. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter
MF6. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter
MF6 triangles. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter
MF6 Voronoi. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid, random_search, optuna, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, scipy_nelder_mead: objective against the parameter
Boussinesq. Points evaluated by grid, random_search, optuna, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter
Boussinesq default. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.

Schedule. modflow_nwt: runs in Nightly / validation no PETSc, Tests / fast marker. modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). Jobs.

What the test does, all thresholds, the file

The truth runs on a mesh twice as fine as the calibration mesh, so the recovered K carries the discretization error of the solver. A fixed-head Dupuit strip gives the head at mid-length and the east outlet discharge. The structured columns (MODFLOW-NWT, MODFLOW 6) compare 80 by 5 cells with 40 by 5. The triangle column compares a 750-triangle bundle with the 176-triangle bundle of the analytical case, and the Voronoi column the duals of the two. The two Boussinesq columns, the PETSc engine and the default local engine, use the same two triangle bundles. The recovery is asserted within 2.5e-5 m/s of the true 1e-4 m/s. The PETSc leg skips CMA-ES when the cma package is missing from its environment.

Test functions

  • Calibration twin dupuit fixed head mesh perturbed modflow6 recovers truth under mesh mismatch.

File tests/validation/calibration/test_twin_dupuit_fixed_head_mesh_perturbed_modflow6.py. Markers: steady, validation.

Steady same-solver twin benchmark for calibration#

pass modflow6

Not run on

  • NWT, MF6 triangles, MF6 Voronoi: The only observable is the east boundary flux, which is exactly proportional to K for fixed heads and no sources, so the normalized cost and the recovery do not depend on the solver. Measured on NWT, MF6 triangles and MF6 Voronoi: grid, random search, Optuna and CMA-ES return identical errors.
  • Boussinesq: The only observable is the east boundary flux, which is exactly proportional to K for fixed heads and no sources, so the normalized cost and the recovery do not depend on the solver. The head stays far below the surface, so the Boussinesq obstacle closure never acts.
  • Boussinesq default: The only observable is the east boundary flux, which is exactly proportional to K for fixed heads and no sources, so the normalized cost and the recovery do not depend on the solver. The head stays far below the surface, so the surface closure never acts.

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Calibration twin dupuit fixed head modflow6 benchmark recovers truth
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2e-05
random_search: evaluations used24 -
random_search: best fit, distance of K_global to the truth1.1e-05<= 2e-05
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth4.28e-07 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
optuna: a sample within tolerance of the truth on every parameter1> 0
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth7.14e-07<= 2e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth1.18e-11<= 2e-05
scipy_nelder_mead: evaluations used20 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.15e-09<= 2e-05
Calibration twin dupuit fixed head modflow6 fast grid search smoke
pass
grid: evaluations used6 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2e-05

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run.

Calibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search, optuna, cma_es, scipy_nelder_mead, scipy_nelder_mead: objective against the parameter
run. Points evaluated by grid, random_search, optuna, cma_es, scipy_nelder_mead, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.
Calibration landscape of grid: objective against the parameterCalibration landscape of grid: objective against the parameter
run. Points evaluated by grid: objective against the parameter; the truth is marked and the best point of each method is ringed.

Schedule. This file: runs in Nightly / validation no PETSc, Tests / fast marker. Jobs.

What the test does, all thresholds, the file

Test functions

  • Calibration twin dupuit fixed head modflow6 benchmark recovers truth.
  • Calibration twin dupuit fixed head modflow6 fast grid search smoke.

File tests/validation/calibration/test_twin_dupuit_fixed_head_modflow6.py. Markers: fast, mf6, steady, validation, xdist_group.

Noisy steady scalar-K twin calibration on MODFLOW 6#

pass modflow6

Not run on

  • NWT, MF6 triangles, MF6 Voronoi: The only observable is the east boundary flux, exactly proportional to K for fixed heads and no sources, and the 1 percent noise is a seeded factor on it. The recovery is the same on every solver (identical on NWT, MF6 triangles and Voronoi for the noise-free twin).
  • Boussinesq, Boussinesq default: The only observable is the east boundary flux, exactly proportional to K for fixed heads and no sources, and the 1 percent noise is a seeded multiplicative factor on it. The cost landscape, and so the recovery, is the same on every solver.

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
grid: evaluations used11 -
grid: best fit, distance of K_global to the truth2.38e-06<= 2e-05
random_search_seed007: evaluations used24 -
random_search_seed007: best fit, distance of K_global to the truth1.1e-05 -
random_search_seed007: closest sample, distance of K_global to the truth1.1e-05 -
random_search_seed011: evaluations used24 -
random_search_seed011: best fit, distance of K_global to the truth3.15e-06 -
random_search_seed011: closest sample, distance of K_global to the truth3.15e-06 -
random_search_seed019: evaluations used24 -
random_search_seed019: best fit, distance of K_global to the truth4.18e-06 -
random_search_seed019: closest sample, distance of K_global to the truth4.18e-06 -
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth9.85e-07 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth5.01e-07<= 2e-05
scipy_nelder_mead: evaluations used30 -
scipy_nelder_mead: best fit, distance of K_global to the truth3.59e-07<= 2e-05
random_search: runs within tolerance of the truth, out of 33> 1
random_search: runs with a sample within tolerance, out of 33> 1

Measured on 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run.

Calibration landscape of grid, random_search_seed007, random_search_seed011, random_search_seed019, optuna, cma_es, scipy_nelder_mead: objective against the parameterCalibration landscape of grid, random_search_seed007, random_search_seed011, random_search_seed019, optuna, cma_es, scipy_nelder_mead: objective against the parameter
Points evaluated by grid, random_search_seed007, random_search_seed011, random_search_seed019, optuna, cma_es, scipy_nelder_mead: objective against the parameter; the truth is marked and the best point of each method is ringed.

Schedule. This file: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

Test functions

  • Calibration twin dupuit fixed head noisy modflow6 benchmark recovers truth.

File tests/validation/calibration/test_twin_dupuit_fixed_head_noisy_modflow6.py. Markers: mf6, steady, validation.

Posterior-oriented steady scalar-K calibration on MODFLOW 6#

pass modflow6

Not run on

  • NWT, MF6 triangles, MF6 Voronoi: The only observable is the east boundary flux, exactly proportional to K for fixed heads and no sources, so the posterior built by GP mapping and DA-MH is the same on every solver. Measured identical recovery errors on NWT, MF6 triangles and Voronoi for the sibling twin.
  • Boussinesq, Boussinesq default: The only observable is the east boundary flux, exactly proportional to K for fixed heads and no sources, so the posterior built by GP mapping and DA-MH is the same on every solver.

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
-
pass
random_search: evaluations used24 -
random_search: best fit, distance of K_global to the truth1.1e-05 -
random_search: closest sample, distance of K_global to the truth1.1e-05 -
random_search: a sample within tolerance of the truth on every parameter1> 0
optuna: evaluations used32 -
optuna: best fit, distance of K_global to the truth4.28e-07 -
optuna: closest sample, distance of K_global to the truth4.28e-07 -
optuna: a sample within tolerance of the truth on every parameter1> 0
optuna: best fit or a sample within tolerance of the truth1> 0
cma_es: evaluations used28 -
cma_es: best fit, distance of K_global to the truth7.14e-07<= 2e-05
gp_mapping: evaluations used14 -
gp_mapping: best fit, distance of K_global to the truth7.61e-07 -
gp_mapping: closest sample, distance of K_global to the truth7.61e-07 -
gp_mapping: a sample within tolerance of the truth on every parameter1> 0
da_mh_gp: evaluations used82 -
da_mh_gp: best fit, distance of K_global to the truth7.88e-08 -
da_mh_gp: closest sample, distance of K_global to the truth7.88e-08 -
da_mh_gp: a sample within tolerance of the truth on every parameter1> 0

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run.

Calibration landscape of random_search, optuna, cma_es, gp_mapping, da_mh_gp: objective against the parameterCalibration landscape of random_search, optuna, cma_es, gp_mapping, da_mh_gp: objective against the parameter
Points evaluated by random_search, optuna, cma_es, gp_mapping, da_mh_gp: objective against the parameter; the truth is marked and the best point of each method is ringed.

Schedule. This file: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

Test functions

  • Calibration twin dupuit fixed head posterior modflow6 distribution methods cover truth.

File tests/validation/calibration/test_twin_dupuit_fixed_head_posterior_modflow6.py. Markers: mf6, steady, validation.

Wiring smoke test of six calibration methods on a flux-only K+Sy twin, per solver#

pass modflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
modflow_nwt
pass
random_search: evaluations used6 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used6 -
optuna: best fit, distance of K_global to the truth4.89e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0284 -
optuna: closest sample, distance of Sy_global to the truth0.0185 -
cma_es: evaluations used6 -
cma_es: best fit, distance of K_global to the truth2.02e-05<= 0.00016
cma_es: best fit, distance of Sy_global to the truth0.000115<= 0.4
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used6 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.000692 -
da_mh_gp: evaluations used4 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0
modflow6
pass
random_search: evaluations used6 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used6 -
optuna: best fit, distance of K_global to the truth4.89e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0284 -
optuna: closest sample, distance of Sy_global to the truth0.0185 -
cma_es: evaluations used6 -
cma_es: best fit, distance of K_global to the truth2.02e-05<= 0.00016
cma_es: best fit, distance of Sy_global to the truth0.000115<= 0.4
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used6 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.000692 -
da_mh_gp: evaluations used4 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0
modflow6_irregular_tri
pass
random_search: evaluations used5 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.0137 -
optuna: evaluations used2 -
optuna: best fit, distance of K_global to the truth4.68e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0373 -
optuna: closest sample, distance of Sy_global to the truth0.0373 -
cma_es: evaluations used2 -
cma_es: best fit, distance of K_global to the truth9.84e-06<= 0.00016
cma_es: best fit, distance of Sy_global to the truth0.0114<= 0.4
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used3 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0385 -
da_mh_gp: evaluations used3 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0
modflow6_voronoi
pass
random_search: evaluations used6 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used6 -
optuna: best fit, distance of K_global to the truth4.89e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0284 -
optuna: closest sample, distance of Sy_global to the truth0.0185 -
cma_es: evaluations used6 -
cma_es: best fit, distance of K_global to the truth2.02e-05<= 0.00016
cma_es: best fit, distance of Sy_global to the truth0.000115<= 0.4
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used6 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.000692 -
da_mh_gp: evaluations used4 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0
boussinesq
pass
random_search: evaluations used6 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used6 -
optuna: best fit, distance of K_global to the truth4.89e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0284 -
optuna: closest sample, distance of Sy_global to the truth0.0185 -
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used6 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.000692 -
da_mh_gp: evaluations used4 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0
boussinesq_local
pass
random_search: evaluations used6 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used6 -
optuna: best fit, distance of K_global to the truth4.89e-05 -
optuna: closest sample, distance of K_global to the truth4.68e-05 -
optuna: best fit, distance of Sy_global to the truth0.0284 -
optuna: closest sample, distance of Sy_global to the truth0.0185 -
cma_es: evaluations used6 -
cma_es: best fit, distance of K_global to the truth2.02e-05<= 0.00016
cma_es: best fit, distance of Sy_global to the truth0.000115<= 0.4
scipy_nelder_mead: evaluations used6 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 0.00016
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.4
gp_mapping: evaluations used6 -
gp_mapping: best fit, distance of K_global to the truth4.26e-05 -
gp_mapping: closest sample, distance of K_global to the truth2.01e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.0385 -
gp_mapping: closest sample, distance of Sy_global to the truth0.000692 -
da_mh_gp: evaluations used4 -
da_mh_gp: best fit, distance of K_global to the truth4.98e-05 -
da_mh_gp: closest sample, distance of K_global to the truth3.6e-06 -
da_mh_gp: best fit, distance of Sy_global to the truth0.0291 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.0291 -
methods reaching their success target, among random_search, optuna, gp_mapping, da_mh_gp1> 0

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
NWT. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6 triangles. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6 Voronoi. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
Boussinesq. Points evaluated by random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
Boussinesq default. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.

Schedule. modflow_nwt: runs in Nightly / validation no PETSc, Tests / fast marker. modflow6, modflow6_irregular_tri, modflow6_voronoi, boussinesq_local: runs in Nightly / validation no PETSc. boussinesq: runs in Nightly / validation PETSc. Jobs.

What the test does, all thresholds, the file

Test functions

  • Calibration twin linearized recharge step flux only noisy modflow6 wiring smoke.

File tests/validation/calibration/test_twin_linearized_recharge_step_flux_only_noisy_modflow6.py. Markers: transient, validation.

Validation of K and Sy recovery by calibration methods on a transient twin, per solver#

pass modflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoiboussinesqboussinesq_local

Compared with: the parameter values that generated the synthetic observations of the twin experiment.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
Calibration twin linearized recharge step modflow6 benchmark recovers truth [modflow_nwt]
pass
random_search: evaluations used16 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used40 -
optuna: best fit, distance of K_global to the truth3.5e-07<= 1.5e-05
optuna: closest sample, distance of K_global to the truth3.5e-07 -
optuna: best fit, distance of Sy_global to the truth0.0155<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.00245 -
cma_es: evaluations used40 -
cma_es: best fit, distance of K_global to the truth2.68e-07<= 1.5e-05
cma_es: best fit, distance of Sy_global to the truth0.000504<= 0.04
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
gp_mapping: evaluations used16 -
gp_mapping: best fit, distance of K_global to the truth1.69e-06 -
gp_mapping: closest sample, distance of K_global to the truth9.43e-07 -
gp_mapping: best fit, distance of Sy_global to the truth0.0171 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0129 -
da_mh_gp: evaluations used30 -
da_mh_gp: best fit, distance of K_global to the truth2.73e-07 -
da_mh_gp: closest sample, distance of K_global to the truth2.73e-07 -
da_mh_gp: best fit, distance of Sy_global to the truth0.00198 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.00198 -
Calibration twin linearized recharge step modflow6 benchmark recovers truth [modflow6]
pass
random_search: evaluations used16 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used40 -
optuna: best fit, distance of K_global to the truth3.5e-07<= 1.5e-05
optuna: closest sample, distance of K_global to the truth3.5e-07 -
optuna: best fit, distance of Sy_global to the truth0.0155<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.00245 -
cma_es: evaluations used40 -
cma_es: best fit, distance of K_global to the truth2.68e-07<= 1.5e-05
cma_es: best fit, distance of Sy_global to the truth0.000504<= 0.04
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
gp_mapping: evaluations used16 -
gp_mapping: best fit, distance of K_global to the truth1.67e-06 -
gp_mapping: closest sample, distance of K_global to the truth9.4e-07 -
gp_mapping: best fit, distance of Sy_global to the truth0.017 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0129 -
da_mh_gp: evaluations used30 -
da_mh_gp: best fit, distance of K_global to the truth2.73e-07 -
da_mh_gp: closest sample, distance of K_global to the truth2.73e-07 -
da_mh_gp: best fit, distance of Sy_global to the truth0.00198 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.00198 -
Calibration twin linearized recharge step modflow6 benchmark recovers truth [modflow6_irregular_tri]
pass
random_search: evaluations used12 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00261 -
optuna: evaluations used29 -
optuna: best fit, distance of K_global to the truth2.48e-06<= 1.5e-05
optuna: closest sample, distance of K_global to the truth6.13e-09 -
optuna: best fit, distance of Sy_global to the truth0.0112<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.000631 -
cma_es: evaluations used35 -
cma_es: best fit, distance of K_global to the truth5.1e-07<= 1.5e-05
cma_es: best fit, distance of Sy_global to the truth0.000773<= 0.04
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
gp_mapping: evaluations used10 -
gp_mapping: best fit, distance of K_global to the truth1.33e-05 -
gp_mapping: closest sample, distance of K_global to the truth1.32e-05 -
gp_mapping: best fit, distance of Sy_global to the truth0.08 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0048 -
da_mh_gp: evaluations used32 -
da_mh_gp: best fit, distance of K_global to the truth4.67e-07 -
da_mh_gp: closest sample, distance of K_global to the truth1.04e-07 -
da_mh_gp: best fit, distance of Sy_global to the truth0.00328 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.00153 -
Calibration twin linearized recharge step modflow6 benchmark recovers truth [modflow6_voronoi]
pass
random_search: evaluations used16 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used40 -
optuna: best fit, distance of K_global to the truth3.5e-07<= 1.5e-05
optuna: closest sample, distance of K_global to the truth3.5e-07 -
optuna: best fit, distance of Sy_global to the truth0.0155<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.00245 -
cma_es: evaluations used40 -
cma_es: best fit, distance of K_global to the truth2.68e-07<= 1.5e-05
cma_es: best fit, distance of Sy_global to the truth0.000504<= 0.04
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
gp_mapping: evaluations used16 -
gp_mapping: best fit, distance of K_global to the truth2.38e-06 -
gp_mapping: closest sample, distance of K_global to the truth8.86e-07 -
gp_mapping: best fit, distance of Sy_global to the truth0.08 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0129 -
da_mh_gp: evaluations used30 -
da_mh_gp: best fit, distance of K_global to the truth2.73e-07 -
da_mh_gp: closest sample, distance of K_global to the truth2.73e-07 -
da_mh_gp: best fit, distance of Sy_global to the truth0.00198 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.00198 -
Calibration twin linearized recharge step modflow6 benchmark recovers truth [boussinesq]
pass
random_search: evaluations used16 -
random_search: best fit, distance of K_global to the truth3.15e-06 -
random_search: closest sample, distance of K_global to the truth3.15e-06 -
random_search: best fit, distance of Sy_global to the truth0.0137 -
random_search: closest sample, distance of Sy_global to the truth0.00193 -
optuna: evaluations used40 -
optuna: best fit, distance of K_global to the truth4.69e-07<= 1.5e-05
optuna: closest sample, distance of K_global to the truth4.69e-07 -
optuna: best fit, distance of Sy_global to the truth0.0118<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.000661 -
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
gp_mapping: evaluations used16 -
gp_mapping: best fit, distance of K_global to the truth1.73e-06 -
gp_mapping: closest sample, distance of K_global to the truth1.02e-06 -
gp_mapping: best fit, distance of Sy_global to the truth0.08 -
gp_mapping: closest sample, distance of Sy_global to the truth0.0129 -
da_mh_gp: evaluations used34 -
da_mh_gp: best fit, distance of K_global to the truth8.73e-07 -
da_mh_gp: closest sample, distance of K_global to the truth3.68e-07 -
da_mh_gp: best fit, distance of Sy_global to the truth0.000385 -
da_mh_gp: closest sample, distance of Sy_global to the truth0.00017 -
Calibration twin linearized recharge step modflow6 benchmark recovers truth [boussinesq_local]
pass
optuna: evaluations used40 -
optuna: best fit, distance of K_global to the truth4.69e-07<= 1.5e-05
optuna: closest sample, distance of K_global to the truth4.69e-07 -
optuna: best fit, distance of Sy_global to the truth0.0118<= 0.04
optuna: closest sample, distance of Sy_global to the truth0.000661 -
scipy_nelder_mead: evaluations used12 -
scipy_nelder_mead: best fit, distance of K_global to the truth2.38e-06<= 1.5e-05
scipy_nelder_mead: best fit, distance of Sy_global to the truth0.00137<= 0.04
Calibration twin linearized recharge step noise free search at the truth costs zero [modflow_nwt]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12
Calibration twin linearized recharge step noise free search at the truth costs zero [modflow6]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12
Calibration twin linearized recharge step noise free search at the truth costs zero [modflow6_irregular_tri]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12
Calibration twin linearized recharge step noise free search at the truth costs zero [modflow6_voronoi]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12
Calibration twin linearized recharge step noise free search at the truth costs zero [boussinesq]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12
Calibration twin linearized recharge step noise free search at the truth costs zero [boussinesq_local]
pass
Best cost of a search started at the truth0<= 1e-12
Relative distance of K_global to the truth0<= 1e-12
Relative distance of Sy_global to the truth0<= 1e-12

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-30, commit d2668b867, version 2.0.0, the nightly CI job (job log).

Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
NWT. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6 triangles. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
MF6 Voronoi. Points evaluated by random_search, optuna, cma_es, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objectiveCalibration landscape of random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective
Boussinesq. Points evaluated by random_search, optuna, scipy_nelder_mead, gp_mapping, da_mh_gp: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.
Calibration landscape of optuna, scipy_nelder_mead: the two parameters, colored by objectiveCalibration landscape of optuna, scipy_nelder_mead: the two parameters, colored by objective
Boussinesq default. Points evaluated by optuna, scipy_nelder_mead: the two parameters, colored by objective; the truth is marked and the best point of each method is ringed.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc, Tests / fast marker. boussinesq: runs in Nightly / validation PETSc (skipped in Tests / fast marker: no petsc4py there). boussinesq_local: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

A run with K = 1e-4 m/s and Sy = 0.10 under a recharge step gives the head at mid-aquifer and the outlet discharge. Each method then searches K in [5e-5, 3e-4] and Sy in [0.04, 0.18] from those two series alone. This is the one well-posed two-parameter transient calibration of the suite: the head series constrains Sy and the discharge series constrains K. It runs on MODFLOW-NWT, MODFLOW 6 on its structured grid, on a triangle mesh and on the Voronoi dual of that mesh, and on the Boussinesq solver on the same triangles. The Boussinesq PETSc leg runs the six methods, minus CMA-ES when the cma package is missing from its environment. The default local engine leg is slow, so it runs Nelder-Mead and Optuna, two of the asserted methods. CMA-ES, Nelder-Mead and Optuna are asserted to land within the case tolerance of the truth (1.5e-5 on K, 0.04 on Sy). Random search, GP mapping and DA-MH-GP also run; their distances to the truth are recorded for information and not asserted, because their budget does not guarantee a hit on a smooth two-parameter surface.

Thresholds from tests/TOLERANCES.md

  • Row 154: Twin calibration closure, noise free, search started at the truth (piecewise K, transient K+Sy; MODFLOW-NWT, MODFLOW 6, MODFLOW 6 triangles, MODFLOW 6 Voronoi), best normalized cost, and |p - p_true| / p_true of every parameter, after 3 evaluations of Nelder-Mead: <= 1e-12 (Machine epsilon. The bounds are symmetric about the truth with a uniform prior on the identity transform, so the first trial is the truth up to one rounding of (lo + hi) / 2. The truth observations (catalog Run, field_precision = "exact") and the trial observations (solver files) are then the same numbers at the same cell)

Test functions

  • Calibration twin linearized recharge step modflow6 benchmark recovers truth.
  • Calibration twin linearized recharge step noise free search at the truth costs zero.

File tests/validation/calibration/test_twin_linearized_recharge_step_modflow6.py. Markers: transient, validation.

Twin experiment for the heads rule of the stream-network criterion#

pass modflow_nwtmodflow6modflow6_voronoi

Not run on

  • Boussinesq, Boussinesq default: The Boussinesq adapter declares release_flux unavailable: observables serves only head and discharge, so the stream-network criterion cannot score a Boussinesq trial.
  • MF6 triangles: On triangles the network is not the one cell wide network this twin draws. With XT3D and Newton, MODFLOW 6 cycles by 3 cm on one border cell for 1000 outer iterations. With XT3D alone, K lands 167 per cent off on triangles. Without XT3D, K lands 5.5 per cent off.

Compared with: the hydraulic conductivity and the stream heads of the run that produced the mapped network.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
A map drawn at another conductivity gives that conductivity
pass
no metric recorded; the asserts of the test decide
A map whose every head is lost is refused before the first solve
pass
no metric recorded; the asserts of the test decide
A search under the protocol recovers the conductivity that made the heads [modflow_nwt]
pass
Relative error of the recovered K0.00452<= 0.03
D_optim at the returned trial0 m<= 1 m
Relative error of the saturated thickness0.00162<= 0.011
A search under the protocol recovers the conductivity that made the heads [modflow6]
pass
Relative error of the recovered K0.00452<= 0.03
D_optim at the returned trial0 m<= 1 m
Relative error of the saturated thickness0.00164<= 0.011
A search under the protocol recovers the conductivity that made the heads [modflow6_voronoi]
pass
Relative error of the recovered K0.00452<= 0.03
D_optim at the returned trial0 m<= 1 m
Relative error of the saturated thickness0.00162<= 0.011
A search walks out of the infeasible trial it crosses
pass
no metric recorded; the asserts of the test decide
A wrong map or a wrong head count fails the twin [heads_moved_south]
pass
no metric recorded; the asserts of the test decide
A wrong map or a wrong head count fails the twin [heads_three_cells_low]
pass
no metric recorded; the asserts of the test decide
A wrong map or a wrong head count fails the twin [map_200_m_off]
pass
no metric recorded; the asserts of the test decide
A wrong map or a wrong head count fails the twin [one_head_missing]
pass
no metric recorded; the asserts of the test decide
Below its head the path of a line counts under crossing only
pass
no metric recorded; the asserts of the test decide
The map holds the known heads and traces back to the network [modflow_nwt]
pass
no metric recorded; the asserts of the test decide
The map holds the known heads and traces back to the network [modflow6]
pass
no metric recorded; the asserts of the test decide
The map holds the known heads and traces back to the network [modflow6_voronoi]
pass
no metric recorded; the asserts of the test decide
Two maps read k and leave sy within one cell
pass
no metric recorded; the asserts of the test decide

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run; 2026-11-04, commit 55842c4b6 with uncommitted changes, version 2.0.0rc1, a local run.

Schedule. modflow_nwt, modflow6, modflow6_voronoi, : runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

test_twin_matching_stream_network_modflow6.py runs one row of cells that drains 0.0016 km2, so it has to force the crossing rule. This twin writes the heads rule in its network output and leaves the rest to what the protocol freezes: the map cut to the catchment, the catchment bound, D8 where the mesh has corners.

The basin is a comb on a DEM, 80 by 70 cells of 20 m. A main stem runs east to the outlet on the border, and five straight valleys join it, three from the north and two from the south, each with its own slope, so their heads do not move at the same K. Each valley is a V whose talweg runs through cell centers, with sides steep enough to keep the seepage on the talweg: the flow toward a talweg, about R * 300 m, stays below what the full aquifer carries down a side, K * 30 m * 0.06. The simulated network is then one cell wide, like the trace of a head, so the map can equal it cell for cell. On a wider network the map could not, and this would measure that width and not the rule.

At K/R = 600 the run makes six heads, one per valley and one on the main stem, each draining more than 0.02 km2 and inside its valley. The map holds one line per head, from that head down the descent to the first confluence, and the main stem runs on for 200 m past the outlet, so the cut to the catchment makes one more free end that must not count. A network-only search under the protocol must return that K.

A pass proves little on its own, so the twin also has to fail. A map drawn at another K must give that K. A map with a head missing, heads placed low or a map 200 m off must each fail, and each row names the checks it fails. Heads all moved south shorten three valleys and lengthen two, which keeps K in its band, so D_optim is a check of its own: J balances and the distances do not vanish. Below the heads, the path of a line must not count: a map that wanders off the talwegs gives the same K, and the same map under the crossing rule does not.

One search widens its bounds past the physical ceiling of K, 100 m/s: its trial there is infeasible, gets the failed cost and leaves the failure streak alone, so the search walks out and closes.

A generated triangle mesh is left out, see NOT_APPLICABLE. On a Voronoi mesh the cells follow the talwegs of the DEM drawn at 0.02 km2, a threshold set a priori and never read from the map, and the map is drawn from that run. Tolerances: tests/TOLERANCES.md, rows 184 to 186, and row 79 for the ratios.

Thresholds from tests/TOLERANCES.md

  • Row 184: Twin stream-network calibration under heads (MF6, comb basin, 5600 cells of 20 m, six heads), |K - K_true| / K_true at the returned trial: <= 3 % (Derived. The bisection stops on a bracket no wider than log10(1.01), and it closes on the zero plateau of J, the K range that reproduces the mapped network cell for cell. That plateau runs from 5.99e-6 to 6.10e-6 m/s around K_true = 6e-6 m/s, so up to 1.9 % above it, and a trial off the plateau is the end of a bracket that holds it, so 1 % further. One head moves one cell per 3 % of K, so the plateau is that step shared between five heads and this band is about one step)
  • Row 185: Twin stream-network calibration under heads (MF6), D_optim at the returned trial: <= 1 m (Derived. Over the band of row 184 the simulated network differs from the map by at most five cells, each a cell or two from it, averaged over 124 cells: the sweep reads 0.31 m at -1.4 % and 0.40 m at +2.9 %. The band is 2.5 times that, a twentieth of a cell. It exists because a balanced J does not say the two networks agree)
  • Row 186: Twin stream-network calibration under heads (MF6), d_sat_m of the returned trial over the truth run: rel <= 1.1e-2 (Derived. The sweep gives d dsat / d ln K of -6.4 m around the truth on a mean of 17.9 m, so the 3 % of row 184 moves dsat by 0.19 m, 1.07 % of it)
  • Row 79: Twin stream-network calibration (MF6), k_optim_m_s, k_over_r, t_over_r_m, t_optim_m2_s against K, R_mean_m_s and d_sat_m of the returned trial: rel 1e-12 (Machine epsilon. Each is one product or quotient of values the report read off that trial)
  • Row 187: Twin K and Sy on two maps (MF6, comb basin, monthly recharge, truth K = 6e-6 and Sy = 0.05), |J| on each map at the true K, for Sy from 0.025 to 0.1: <= 20 m (Derived. One cell of the 20 m grid, the width a network distance resolves. Measured: J_min from -11.2 to 2.7 m and J_max from 2.4 to -1.4 m, so Sy stays inside one cell across a factor of 4 while K has its sign outside 3e-6 to 8e-6)

Test functions

  • The map holds the known heads and traces back to the network.
  • A search under the protocol recovers the conductivity that made the heads.
  • A wrong map or a wrong head count fails the twin.
  • A map drawn at another conductivity gives that conductivity.
  • Below its head the path of a line counts under crossing only.
  • A search walks out of the infeasible trial it crosses.
  • A map whose every head is lost is refused before the first solve.
  • Two maps read k and leave sy within one cell.

File tests/validation/calibration/test_twin_matching_stream_heads_modflow6.py. Markers: mf6, slow, steady, validation, xdist_group.

Twin experiment for the stream-network criterion of Abherve et al. (2023)#

pass modflow_nwtmodflow6modflow6_irregular_trimodflow6_voronoi

Not run on

  • Boussinesq: The Boussinesq adapter declares release_flux unavailable: observables serves only head and discharge, so the stream-network criterion cannot score a Boussinesq trial. The PETSc engine also needs 3000 iterations to solve this hillslope.
  • Boussinesq default: The Boussinesq adapter declares release_flux unavailable: observables serves only head and discharge, so the stream-network criterion cannot score a Boussinesq trial. The sparse Newton method of the default engine also fails on this 800-cell hillslope.

Compared with: the hydraulic conductivity of the run that produced the mapped network.

Last measurement

VariantMetricMeasuredThresholdShare usedShare of the signal
A network only bisection recovers the conductivity that made the network [modflow_nwt]
pass
Relative error of the recovered K0.00452<= 0.01
Signed distance gap at the best K0 m<= 2 m
Relative error of the saturation length0.000161<= 0.001
A network only bisection recovers the conductivity that made the network [modflow6]
pass
Relative error of the recovered K0.00452<= 0.01
Signed distance gap at the best K0 m<= 2 m
Relative error of the saturation length0.000161<= 0.001
A network only bisection recovers the conductivity that made the network [modflow6_irregular_tri]
pass
Relative error of the recovered K0.00452<= 0.01
Signed distance gap at the best K0.00212 m<= 1.14 m
Relative error of the saturation length0.000161<= 0.001
A network only bisection recovers the conductivity that made the network [modflow6_voronoi]
pass
Relative error of the recovered K0.00526<= 0.01
Signed distance gap at the best K0.00893 m<= 2 m
Relative error of the saturation length0.000187<= 0.001
The mapped network projects back onto the cells it was written from [modflow_nwt]
pass
no metric recorded; the asserts of the test decide
The mapped network projects back onto the cells it was written from [modflow6]
pass
no metric recorded; the asserts of the test decide
The mapped network projects back onto the cells it was written from [modflow6_irregular_tri]
pass
no metric recorded; the asserts of the test decide
The mapped network projects back onto the cells it was written from [modflow6_voronoi]
pass
no metric recorded; the asserts of the test decide

Measured on 2026-11-04, commit 11bf74bde with uncommitted changes, version 2.0.0rc1, a local run.

Schedule. modflow_nwt, modflow6, modflow6_irregular_tri, modflow6_voronoi: runs in Nightly / validation no PETSc. Jobs.

What the test does, all thresholds, the file

A model run with a known conductivity produces a seepage network. That network, written as the mapped one, must bring a network-only bisection back to the conductivity that produced it. Nothing else in the suite runs the criterion end to end on a real solve: the unit tests fake the trial context, and a real catchment has no known answer.

The catchment is a planar hillslope, one row of 400 square cells of 2 m, over a 30 m aquifer parallel to the surface. Under uniform recharge R the water table reaches the surface where the recharge collected upslope exceeds what the full aquifer can carry, K * d * slope: the seepage face starts at about K d s / R from the divide, so the network retracts by one cell per cell / (K d s / R) of relative K, about 0.56 per cent here. That step is the resolution of the criterion. It is kept below the one per cent the bisection stops on, so the recovered value can be held to that one per cent whether the search lands on the zero plateau or closes its bracket around it.

The drains sit on the surface with the fallback conductance, proportional to K, which is what makes the network a function of K/R alone. The mapped network is the downstream closure of the seepage cells, built by the same functions the criterion calls, and its round trip through the GPKG back onto the mesh is checked cell for cell before any calibration runs. The round trip goes through the resolver and observed_network_mask under the crossing rule, the route a map.complete takes in a calibration trial. The calibration sets that rule: the default, heads, needs a drained area this hillslope never reaches, and test_twin_matching_stream_heads_modflow6.py runs that default on a basin that does.

What this twin cannot see: on a single row no two network cells meet only at a corner, so the crossing and the touch rules give the same mask here. The diagonal-step bias the crossing rule exists to remove is covered by the unit tests of line_crossing_cell_mask, not by this experiment.

Four solver columns run the same hillslope. MODFLOW-NWT and MODFLOW 6 on its structured grid use the 400 square cells. The triangle column splits each of those squares into two triangles of the same strip (800 cells), and the Voronoi column puts a cell on each node of that triangulation (802 cells, two rows of nodes on the strip borders). On an unstructured mesh the mapped network is the polyline through the cell centers of the reach, in order downslope, which the crossing rule gives back cell for cell. The centers are the polygon centroids of the triangles and the generator nodes of the Voronoi cells, the points the criterion samples the top at. The 30 m aquifer, the slope and the recharge are the same, so the seepage face starts near the same 357 m from the divide. The two rows of Voronoi nodes sit at one elevation and do not drain into each other, so the criterion scores the catchment of one row, 401 of the 802 cells.

Tolerances: tests/TOLERANCES.md, rows 76 to 79, for every column. They are properties of the criterion, a bisection to one per cent on a network drawn on the cells, and not of the solver.

Thresholds from tests/TOLERANCES.md

  • Row 76: Twin stream-network calibration (MF6, planar hillslope, 400 cells of 2 m), |K - K_true| / K_true at the returned trial, and the same on k_over_r against K_true / R: <= 1 % (Derived. The bisection stops on a bracket no wider than log10(1.01). The zero plateau of J, the K range that reproduces the mapped network cell for cell, is one cell over the length of the unsaturated slope, cell / (K d s / R) = 2 m / 357 m = 0.56 %, measured between 5.99e-6 and 6.03e-6 m/s. A returned trial on the plateau is within 0.56 % of K_true; one off it is an end of a closed bracket that holds the plateau, so within 1 %)
  • Row 78: Twin stream-network calibration (MF6), d_sat_m at the returned trial against the truth run: rel <= 1e-3 (Derived. The sweep gives d dsat / d ln K of about 1.06 m around the truth, so 1 % on K moves dsat by 0.011 m, 3.6e-4 of 29.47 m; the band is 2.8 times that)
  • Row 79: Twin stream-network calibration (MF6), k_optim_m_s, k_over_r, t_over_r_m, t_optim_m2_s against K, R_mean_m_s and d_sat_m of the returned trial: rel 1e-12 (Machine epsilon. Each is one product or quotient of values the report read off that trial)

Test functions

  • The mapped network projects back onto the cells it was written from.
  • A network only bisection recovers the conductivity that made the network.
  • A stored trial scores its network as the trial did.

File tests/validation/calibration/test_twin_matching_stream_network_modflow6.py. Markers: mf6, steady, validation, xdist_group.

Two solvers on one catchment#

The cases above compare each solver with an exact solution. A catchment has none, so the reference model of example 04 is run twice from the same file: once with MODFLOW 6, once with MODFLOW-NWT. Only the solver of the flow process changes. Both runs store their fields at full precision: the default compact storage rounds these heads to steps of 1 to 2 mm, more than the gap between the two solvers. tools/docs/figures/render_ex04_figures.py (group solvers) makes both runs and draws the figures below; tools/docs/figures/figures.toml keeps the command behind each one.

The aquifer of example 04 has the same thickness in every cell. Where the thickness changes from one cell to the next, MODFLOW 6 under Newton computes another horizontal conductance than MODFLOW-NWT, smaller where water flows from a thicker cell to a thinner one. MODFLOW 6 then reads a computational top that gives every cell the same thickness, and the two solvers agree again: the circular-island cases above show it on the Cartesian grid.

Simulated and observed monthly discharge at the outlet of the Nançon catchment, 2000 to 2002, run with MODFLOW 6. Simulated and observed monthly discharge at the outlet of the Nançon catchment, 2000 to 2002, run with MODFLOW 6.

Fig. 71 Discharge at the outlet, MODFLOW 6.#

Simulated and observed monthly discharge at the outlet of the Nançon catchment, 2000 to 2002, run with MODFLOW-NWT. Simulated and observed monthly discharge at the outlet of the Nançon catchment, 2000 to 2002, run with MODFLOW-NWT.

Fig. 72 Discharge at the outlet, MODFLOW-NWT.#

Groundwater head of the Nançon catchment at one date, MODFLOW-NWT on the left and MODFLOW 6 on the right, on one color scale. Groundwater head of the Nançon catchment at one date, MODFLOW-NWT on the left and MODFLOW 6 on the right, on one color scale.

Fig. 73 Groundwater head at one date: MODFLOW-NWT on the left, MODFLOW 6 on the right, on one color scale.#

Head of MODFLOW-NWT minus head of MODFLOW 6, cell by cell, at the same date. Head of MODFLOW-NWT minus head of MODFLOW 6, cell by cell, at the same date.

Fig. 74 Head of MODFLOW-NWT minus head of MODFLOW 6, cell by cell, at the same date.#