Assign boundary markers with an indicator function #4740
Answered
by
enricofacca
enricofacca
asked this question in
Firedrake support
-
|
Hello everyone. In the following mwe, I tried to use the function RelabeledMesh to mark the portion of the boundary the upper-right corner of a square (x,y) = (1 x [0.5,1]) U ([0.5,1] x 1). However, zero Dirichlet boundary conditions are imposed on all nodes for x>0.5, y>0.5 including those inside the domain. |
Beta Was this translation helpful? Give feedback.
Answered by
enricofacca
Nov 21, 2025
Replies: 1 comment 7 replies
-
|
What if you replace And(x > 0.5, y > 0.5)with Or(And(x > 0.99, y > 0.5), And(x > 0.5, y > 0.99)) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to "interpolate" the second array using the instruction descibed here .
Thus I was trying to mark the boundary faces (and nodes).
So the question I asked.