Skip to content

Boundary constraint on space #828

Answered by kinnala
Abelsylowlie asked this question in Q&A
Discussion options

You must be logged in to vote

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 and psi(0, y) = 1 and the jump condition phi - 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.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@kinnala
Comment options

@kinnala
Comment options

@kinnala
Comment options

@Abelsylowlie
Comment options

Comment options

You must be logged in to vote
2 replies
@Abelsylowlie
Comment options

@gdmcbain
Comment options

Comment options

You must be logged in to vote
4 replies
@kinnala
Comment options

@Abelsylowlie
Comment options

@kinnala
Comment options

@gdmcbain
Comment options

Answer selected by Abelsylowlie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants