Repository navigation
Composable Weak Form - #1713
Open
gabsillis wants to merge 1 commit into
Open
Composable Weak Form#1713gabsillis wants to merge 1 commit into
gabsillis wants to merge 1 commit into
Conversation
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.
ComposableWeakFormis aWeakFormthat has a set of independent auxiliary fields that can be eliminated.Say we have something like
I've been referring to$u$ and $v$ in this case as primary variables and $p$ and $q$ as auxiliary variables. I would like the user to be able to define a $\mathcal{J}(u, v, p, q)$ and specify $C_p$ and $C_q$ along with $\mathcal{J}(u, v)$ .
WeakFormWeakForms forEquationSolvers for each auxiliary variable andWeakForm. This class then internally does all the elimination (and Schur complement corrections when computing derivatives) so that an external solver can treat the weak form asI would love some inputs on the design (and also naming as I'm not super attached to$C_p$ and $C_q$ so that we can retain the ability to do matrix free solves.
ComposableWeakForm). I plan to integrate the element solver work into the optimization where the constraint is block independent per element. The primary difference right now is the ability to directly access the decompositions for each block. I also choseEquationSolveras the type for the solvers forTODOs before this is ready for review:
jvp()andvjp()and an interface to do matrix free operations