Shifted Dirichlet boundary condition and associated resolution #2253
Replies: 2 comments 2 replies
-
Hi Pierre, You can find examples for shifted Dirichlet BC (weak enforcement) here #2043. Seems that you want to do some mix between the above two that I don't quite understand. Is Vladimir |
Beta Was this translation helpful? Give feedback.
-
Hi Vladimir, Thank you for your quick answer, which is useful. You're right, my idea is to perform some mix between the shifted Dirichlet BC, and the constraint-type BC. In the shifted Dirichlet BC, the true boundary is outside of the computational domain, which means we need to perform some back-propagation of the BC from that boundary, to the numerical boundary. To keep a good spatial order, a Taylor expansion is required, with estimation of the derivatives and so on. Regarding the constraint-type BC method, the underlying algorithm is a non-linear one? Like Newton or Broyden? Edit: you're right, the x position is the position of the Level Set, where we want to apply a Dirichlet condition. Pierre |
Beta Was this translation helpful? Give feedback.
-
Hello,
I will try to explain as much as possible my problem, which is about imposing a Dirichlet boundary condition inside an element. It is in fact related to embedded boundaries, for instance with Level Set.
Let's say we have a triangle element as follows:
o node 1
/ \
/ x \ x is a particular point in the element
/ \
o ---------o node 3
node 2
I want to add a constraint on the numerical solution u, for instance I want u(x) = u_imposed, and solve for u directly with this constraint.
One possibility is to write the FEM approximation of u(x), as a linear combination of the solution u1, u2 and u3 on nodes 1, 2 and 3. I will get something in this way:
a1.u1 + a2.u2 + a3.u3 = u_imposed
with a1, a2 and a3 known coefficients related to the FEM approximation.
If we consider that node 1 is a boundary node with a Dirichlet BC, we can just remove the corresponding row in the LHS of the linear system, and corresponding row in the RHS, that were previously computed to form the linear system. And then use the previous equation (linear combination of u1, u2 and u3) instead.
But the matrix is no longer symmetric.
I was wondering if it is complex to implement, and in which part (I guess I should modify the way to impose the essential bc). And can I use any solver then? Or should I use a specific solver dedicated to non-symmetric matrices?
Thank you
Pierre
Beta Was this translation helpful? Give feedback.
All reactions