Constraint Balance Across Scales#
Note
This page and its static assets are auto-generated by python -m tools.doc_gallery. The Sphinx build only reads committed PNG and JSON artifacts.
This case compares how linear constraints contribute to mesh structure across the 10, 100, and 1000 km2 bundles. It uses the committed bundle summaries to compute the breakdown without regenerating any mesh.

Case Setup#
Three committed bundles (10, 100, 1000 km2) with geology + rivers constraints.
Counts extracted from mesh_summary.json for consistency.
Focus on linear-constraint balance rather than solver outputs.
What It Shows#
How river-edge density compares to geology-interface edges at different scales.
How boundary edges contribute to the overall constraint mix.
How a compact bar chart can summarize constraints across multiple bundles.
Key Metrics#
River edges: 65
Geology interfaces: 80
Boundary edges: 17
Cells: 547
Reproduce#
Run the underlying example or validation case with:
python -m tools.doc_gallery
Refresh the committed gallery artifacts with:
python -m tools.doc_gallery
Case Parameters#
Bundle Inputs#
Field |
Meaning |
Value |
Source |
|---|---|---|---|
|
Committed bundle included in the cross-case mesh comparison. |
bundle |
|
|
Committed bundle included in the cross-case mesh comparison. |
bundle |
|
|
Committed bundle included in the cross-case mesh comparison. |
bundle |
|
Compared Bundle Values#
Field |
Meaning |
Value |
Source |
|---|---|---|---|
|
Constraint and cell counts carried by one compared mesh bundle. |
river_edges=65, geology_interfaces=80, boundary_edges=17, cells=547 |
|
|
Constraint and cell counts carried by one compared mesh bundle. |
river_edges=697, geology_interfaces=207, boundary_edges=46, cells=4218 |
|
|
Constraint and cell counts carried by one compared mesh bundle. |
river_edges=6739, geology_interfaces=1744, boundary_edges=124, cells=38030 |
|
Source Pointers#
examples/projects/07_mesh_gallery/10km2/mesh_s3_10km2_outlet_1_geology_rivers_buffer30/bundle/mesh_summary.jsonexamples/projects/07_mesh_gallery/100km2/mesh_headwater_100km2_outlet_1_geology_rivers_buffer30/bundle/mesh_summary.jsonexamples/projects/07_mesh_gallery/1000km2/mesh_1000km2_outlet_2_geology_rivers_buffer30/bundle/mesh_summary.jsontools/doc_gallery/update_gallery.py
Artifacts#
docs/source/_static/capability_gallery/mesh/mesh_constraint_balance_scale_ladder.pngdocs/source/_static/capability_gallery/mesh/mesh_constraint_balance_scale_ladder_summary.jsonstores the displayed metrics plus source hashes used bypython -m tools.doc_gallery --check.