Repository navigation
Add the design note for rigid bodies as unknowns - #110
Merged
Merged
Conversation
Design only. The adjoint refuses every term that keeps something from one converged state to the next: the attachments of sticky contact, the multipliers of an augmented constraint, a beam's rotations. Handoff K asks what it would take to carry such history in the State, first for the anchors of a tied or sticky interface and then for a material with internal variables. Section 14 of the sensitivity note lists the history there is, the reverse sweep with one more adjoint for it, what that needs of the State and of the terms, and which gradients are the derivative of the run and which are not because the run depends on its iterates. Three decisions are put for MJ (S11 to S13). The section names inputs and a section of the steps note that are on the branches of K3-2 and K3-3 and not on main at this date. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
Main has a first material with history since pull request 98, with a committed and a trial array in the brick domain and the pair held by every converged State, and the reverse sweep through it since pull request 99. The note said such history was not built for solids and shells. What stays design in section 14 is the rest: anchors, multipliers, the kept velocity. No code. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
FEBio's rigid_wall constraint holds the nodes of a surface on one side of a plane. Four suite inputs miss nothing else (co08, co10, tu03 and the dynamic dy03); it is the first piece of Handoff K, thread K1, and independent of rigid bodies. Read from FERigidWallInterface.cpp at e4df3f8. The facets are integrated at their nodes, since the base class asks for nodal integration; on the curved surface of dy03 a Gauss rule gives another result. Newton uses FEBio's stiffness and the adjoint the derivative, which differ by the squared length of the plane's vector. The four inputs take FEBio's time steps and iterations on CPU and on a Tesla P100. Augmented Lagrangian is refused: it is not built for the wall yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
Handoff K, thread K1, asks for the note before the code: how body unknowns enter the field table, how the elimination is done on the device, what happens to the matrix pattern, the rotation update, what is differentiable, and FEBio's conventions of the body state. It also fixes the mechanism (dependent entries, eliminated at the level of the system) that the linear constraints of thread K3 share. Written from FEBio's source at e4df3f8, compared with develop e71ed382. Design only; nothing was run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
main gained an augmentation loop on December 2, which settles most of decision R4. The rigid wall is built on its own branch; its area rule and what was measured are recorded here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
MJ answered R4: thread K3 builds the augmentation hook, and K1 uses it. Section 13 now has the elimination, bodies with open components in static and dynamic steps, and what the building found in FEBio. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matthew Jolley <12954190+mattjolley@users.noreply.github.com>
3 of 5 tasks
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.
This pull request sits on #109 (
mattjolley/rigid-wall) and is to be merged after it. Until that is merged, the diff here also shows its commits; the commits of this pull request are the last three.What does this change, and why?
Documents only:
docs/design/rigid_bodies.md, and its row in the indexdocs/design/README.md. Handoff K, thread K1, asked for the note before the code. It settles how a rigid body that responds to load enters this code in FEBio's formulation (decision W1 ofvalve_workflow.md, taken by MJ on December 2: FEBio's rigid system), and it fixes the mechanism the linear constraints share.What the note has:
e4df3f8(section 4): bodies, their nodes and equations; the update of a body; dynamics; conditions and loads; connectors; the rigid wall. Compared with FEBiodevelopate71ed382, where the only change in these files is the Euler angle commitdf85bbae.The note is ahead of the code in this pull request: section 13 describes the next three pull requests (rows 8 to 10) and two branches that follow the contact pull requests (sticky contact on a body with unknowns;
TARGETloads).Validation
All of the following with Warp 1.20.0.
adeca96, on CPU:tests/test_docs_links.py, which checks the links of the notes: passes.mattjolley/rigid-body-dynamicsd876c2e, which contains this one), Warp 1.20.0: quick tier of the whole repository on CPU, 1,187 tests, none failed (91 skipped); on a Tesla P100 (cuDSS; the versions of thegpuextra), 1,187 tests, one failure (82 skipped):tests/test_history_adjoint.py,ForwardSweep.test_the_jacobian_of_a_static_run_goes_through_the_steps(from History in the forward sweep #101), which fails on unchangedmainat25b5aacon the same GPU and passes on CPU; it is not of this pull request. The full tier of the nine test files these five pull requests add, change or meet (test_rigid_wall,test_reduction,test_rigid_unknowns,test_rigid_dynamics,test_rigid_moved,test_rigid_refusals,test_sticky,test_alpha_f,test_static_after_dynamic): 125 tests, none failed, on CPU and on a Tesla P100.Checklist
uvx pre-commit run --all-filespasses. (Run on the files of this change: passes.)FEBIO_WARP_TEST_LEVEL=full uv run -m unittest discover -s tests, and withFEBIO_WARP_TEST_DEVICE=cuda:0for code that runs on the device. (Not run in full; see Validation.)git commit -s).🤖 Generated with Claude Code