Skip to content

What's the difference between enforce and condense? #766

Answered by gdmcbain
gatling-nrl asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, for a long time we only had condense. I was pretty happy with it, although I did (& still do) plan to try out different techniques of imposing Dirichlet/essential boundary conditions in #753 .

enforce was introduced following #591. There's a long discussion there. Quite a productive discussion, as I recall.

Basically condense eliminates the degrees of freedom constrained by essential boundary conditions; enforce leaves them in but modifies the system of equations so that in the solution they have to have the required values.

Another alternative is penalize, as in

L0, M0 = penalize(L, M, D=basis.find_dofs())

enforce

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gatling-nrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants