Topology optimization example - #81
Draft
jorgensd wants to merge 7 commits into
Draft
Conversation
Merged
Member
Author
I'll clean up the demo a bit first, so it's clearer how things differ from legacy dolfin adjoint. |
jorgensd
commented
Sep 2, 2026
jorgensd
commented
Sep 2, 2026
Co-authored-by: Jørgen Schartum Dokken <dokken92@gmail.com>
|
We do use L-BFGS for most cases (example), and it's the optimizer we use to compare solvers in the paper. |
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.
Implementation of the structural problem from Pasteur Labs (mosaic) using DOLFINx adjoint.
Heads up @dionhaefner :)
Instead of using ADAM I've opted for using an optimization solver that can use reduced hessian vector products as well.
Bug-fixes along the way
- Nonlinear test locally exposed an issue with snes converging early if tolerance is too low.: This has been fixed properly on main with Mypy fixes #82Summary of outputs:
[corner_load] one tape recompute (Jhat(rho)): 4.7843e-02 s
[corner_load] one adjoint solve (Jhat.derivative()): 6.0980e-02 s
[full_face_load] one tape recompute (Jhat(rho)): 5.1036e-02 s
[full_face_load] one adjoint solve (Jhat.derivative()): 6.2825e-02 s