Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element-based topology optimization #2

Open
mohamed82008 opened this issue Jul 30, 2021 · 4 comments
Open

Element-based topology optimization #2

mohamed82008 opened this issue Jul 30, 2021 · 4 comments

Comments

@mohamed82008
Copy link
Member

gridap/Gridap.jl#633

@stevengj
Copy link

stevengj commented Nov 3, 2022

@mohamed82008
Copy link
Member Author

Thanks Steven. I will take a look at how you worked around the non-differentiability of Gridap. I suppose you have to define one adjoint for each physics. I am hoping that one day Enzyme will be able to diff through the entire code base without needing custom adjoints EnzymeAD/Enzyme.jl#447.

@stevengj
Copy link

stevengj commented Nov 4, 2022

In my experience any sufficiently complicated problem will require custom adjoints, and the fact that there is currently no good way to do this with Enzyme (EnzymeAD/Enzyme.jl#172) makes it unlikely for me to use Enzyme in any real problem.

(That being said, in this example we probably did more manual differentiation than we needed to. @fverdugo found that he could use ForwardDiff to differentiate the weak form, for example.)

@mohamed82008
Copy link
Member Author

Fair enough. I need to study your example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants