Boundary constraint on space #828
-
If define function space as follows |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Just like |
Beta Was this translation helpful? Give feedback.
-
I thunk this is an example of a multipoint constraint . #718 (That's a link to the more general discussion, not necessarily the solution.) What i think i would do here is work out the dimension of the constrained degrees of freedom and then say that if I knew those values, I could compute the rest of the phi and psi fields, as a function of those values treated as Dirichlet data, then I could compute whatever functionals of phi and psi that completed their definition. Finally treating those functionals as functions of the assumed Dirichlet data, I solve to find the Dirichlet data that give the desired solution. Either directly (Lagrange multiplier) or iteratively. |
Beta Was this translation helpful? Give feedback.
-
Here is example using the penalty method: https://colab.research.google.com/drive/1EzmM-IzMxJLrobE1PE9r8ddgBTU6Y6XG?usp=sharing I have boundary conditions Requires master version because it uses those unreleased |
Beta Was this translation helpful? Give feedback.
Here is example using the penalty method: https://colab.research.google.com/drive/1EzmM-IzMxJLrobE1PE9r8ddgBTU6Y6XG?usp=sharing
I have boundary conditions
phi(0, y) = 0
andpsi(0, y) = 1
and the jump conditionphi - psi
penalized for top-right part of the boundary,(x > 0.5) * (y > 0.5)
, by adding a penalty term to the bilinear form. You could use a Nitsche-type approach instead of penalty if you don't want to fine tune the penalty parameter (Nitsche converges for a larger range of parameters) or use a higher order method.Requires master version because it uses those unreleased
left
,right
, etc. tags.