Repository navigation
ThinSheet: L and c_b symbolic with the basal rows declared; history projection recorded; facet normal follows a deform (#875, refs #879) - #1076
Merged
Conversation
…rd and time reach the rotated path; the history projection is recorded and the facet normal follows a deform (#875, #876, #879) - #875: F0/F1 carried thickness.sym and basal_drag.sym, so describe() and the transcript showed numbers, and a dimensional thickness entered without the unwrap path. They now take the expressions L and c_b. The rows from add_basal_drag / add_basal_traction are summed in a new basal_coupling property and declared in _solver_terms. - #876: ThinSheet.solve takes picard and time and passes them on. SNES_Vector.solve takes time, plans the warm-up with staged_loop on the rotated path, and passes picard and time to it, as Stokes.solve does. It was hard-coded to picard=0, and a sheet on a sphere always solves on that path, so the plasticity guides' solve(picard=N) recipe never reached it. - #879: _keep_history_tangent now records a history_projection event after the shift, with adjoint unsupported and the reason. The transcript log shows it as "project ...". The DG0 facet-normal field is now remesh_policy="reinit", stamped with mesh._geometry_version, and refilled at solve (and on access) after a deform. Before, it was filled once and REMAP'd stale. tests/test_1093_thin_sheet_review_followups.py: 4 tests (two tier A, two tier B for cost). All fail on development (a6eebb6; these files are unchanged at 8f0ed0a) and pass here. The thin-sheet, objective-step and adjoint-support suites pass: 55 tests, tier C excluded. Underworld development team with AI support from Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reverts the SNES_Vector.solve change (time, staged_loop, picard to the rotated path), the picard/time arguments of ThinSheet.solve, and the picard test. That work stays on reference/thin-sheet-876-for-W1 (b611163) for W1 to read. This branch now carries #875 and #879 only. The thin-sheet, objective-step and adjoint-support suites pass (54, tier C excluded). Underworld development team with AI support from Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…each triangle's own normal; mark the history projection's sphere normal (H1 review F1-F3) - The test deforms the sphere to an ellipsoid, calls sheet.solve(), and compares the field with each triangle's vertex cross product, which is independent of the DM geometry the code uses. Development: 6.1e-2 off. A mutant that drops the refill from solve() fails it (4.1e-3). - TODO(BUG) at _keep_history_tangent: it still projects with the sphere's radial normal, wrong after a deform (as is the tangency datum). That part of #879 stays open. Underworld development team with AI support from Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #875. Refs #879: two of its parts are fixed here, and #879 stays open for the history projection's normal.
#876 is not here: C1 moved it to W1's bundle C5.
#875: L and c_b are inlined as numbers.
F0/F1usedthickness.symandbasal_drag.sym. Sodescribe()and the transcript showed numbers, and a dimensional thickness skipped the unwrap path.Landc_b.add_basal_drag/add_basal_tractionadd are summed in a newbasal_couplingproperty, declared in_solver_terms.#879: the history projection is not recorded, and the facet normal goes stale.
_keep_history_tangentnow records ahistory_projectiontranscript event after the shift, marked adjoint-unsupported with the reason. The transcript log shows it as "project …".remesh_policy="reinit"and stamped withmesh._geometry_version. It is refilled atsolve(), and on access, after a deform. Before, it was filled once and REMAP'd stale.Still open in #879.
_keep_history_tangentprojects with the sphere's radial normal, which is wrong once the manifold is deformed off the sphere. So is the tangency datum. It is markedTODO(BUG)at that line.Tests.
tests/test_1093_thin_sheet_review_followups.py, 3 tests (two tier A, one tier B):sheet.solve(), against each triangle's own vertex cross product. Development is 6.1e-2 off, and a mutant that drops the refill fromsolve()fails it;All three fail on development and pass here. The thin-sheet, objective-step and adjoint-support suites pass (54, tier C excluded).
Review. H1's adversarial review found no number changes. 356 sheet solves gave identical iteration counts, and the Newton tangent matches FD to about 1e-11 on both builds, including u-dependent
c_bandL. The branch merges cleanly with development and with W1's C5 (#1066).solve()) and F3 (independent reference). F2 is scoped out above.\mescape in a docstring at the top of the file, predates this branch.ThinSheet.solve(), so whichever lands second merges development in.Checklist (UW3 Style Charter — docs/developer/UW3_STYLE_CHARTER.md)
level_*andtier_*markers (S8)maybe_/try_/do_) and no commented-out code (S3, S4).array/mesh.X.coords— nowith ....access(...), nomesh.data(S7)pixi.toml/pixi.lockor other dependency changes riding in an unrelated PRUnderworld development team with AI support from Claude Code
🤖 Generated with Claude Code