-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add adjoint load for the case of adjoints associated with resultant/dual forces. #1238
Conversation
/style |
35042a3
to
a5d237b
Compare
/style |
/style |
…AdjointBcs to be a bit more mathly accurate.
f7b60a7
to
ab4ea41
Compare
/style |
5b678f7
to
a43765c
Compare
/style |
/style |
/style |
This enables a simpler and more consistent interface for reaction force sensitivities. Also, add function to fetch a previous reaction force vector. This is really recomputing it behind the scenes. |
@@ -1201,7 +1229,9 @@ class SolidMechanics<order, dim, Parameters<parameter_space...>, std::integer_se | |||
std::unique_ptr<mfem::HypreParMatrix> m_mat(assemble(M)); | |||
|
|||
// J = M + c0 * K | |||
J_.reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this fixing a bug? Because the heat transfer module still does it the old way. If so, can you open an issue?
displacement_adjoint_load_ = disp_adjoint_load->second; | ||
// Add the sign correction to move the term to the RHS | ||
displacement_adjoint_load_ *= -1.0; | ||
if (disp_adjoint_load != loads.end()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check and the SLIC_ERROR_ROOT_IF
above look like they're guarding the same problem. Can we combine these so that they don't get out of sync? Doesn't need to happen in this PR.
No description provided.