Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a reproducible example for initializing a two-dimensional Underworld3 Stokes model using Geodynamic World Builder.
The example starts from the GWB v1.1.0 simple subduction cookbook, transfers temperature and four geological material classes into Underworld3, and compares coupled and prescribed weak-interface Stokes models.
GWB is an optional external dependency. No changes to the Underworld3 numerical solver implementation are required.
Motivation
I developed this workflow to test whether GWB geological initial conditions could be transferred consistently into Underworld3 while retaining the original temperature and compositional fields.
The example also demonstrates how a separate weak slab-top region can be represented through a particle mask without changing the geological material classification.
Implementation
The contribution includes:
The example is designed for single-rank execution and uses the standalone GWB executable.
Numerical verification
The validated configuration contains 13,041 temperature DOFs and 115,200 particles.
All four geological materials are represented. Temperature preservation and material-mask mismatch checks pass.
The coupled model produces a maximum velocity of approximately 21.7031 cm/year.
The prescribed weak-interface model produces a maximum velocity of approximately 24.6207 cm/year.
The weak-band strain-rate proxy increases by approximately 7.56 times.
Both Stokes systems converge using the custom FMG velocity preconditioner, with the expected boundary constraints.
The independent post-run audit also checks saved numerical arrays against the archived reference values.
Tests
The following checks passed locally on macOS arm64 using the Pixi environment:
The complete Underworld3 serial and MPI test suites have not been rerun for this contribution.
Scientific scope
This is a controlled fixed-geometry numerical demonstration.
The weak region represents a prescribed finite-width viscosity reduction, not a dynamically evolving fault or fault-contact formulation.
The calculation is not presented as a transient subduction simulation, a mesh-converged solution, or a calibrated plate-tectonic model.
The reported strain-rate diagnostic is a nodal kinematic proxy.
Related packaging fix
PR #986 addresses Python package discovery in source-layout wheel builds.
This example remains an independent contribution, but fresh-install test environments may require that packaging fix until it is included in development.
I am opening this as a draft for feedback on the example's placement, scope, and documentation.