Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

u.Other() semantics

More
4 years 7 months ago #1837 by ddrake
u.Other() semantics was created by ddrake
Hi, I've been trying to understand what NGSolve does when integrating over boundary elements or facets if the integrand specifies u.Other() with no dummy argument. Is it simply ignored by the integrator? Many of the iTutorials seem to use Other() in this way.

For example, when using a symmetric interior penalty method for diffusion, I see three different boundary behaviors depending on my jump condition (with skeleton=True)
u - u.Other() # seems to give an unconstrained boundary condition
u - u.Other(bnd=u) # usually gives an unconstrained condition, but in some cases, we get instability at the boundary
u - u.Other(bnd=0) # tries to enforce a zero Dirichlet condition.

Also, I would very much like to know how to enforce a zero Neumann condition using this method in NGSolve.

Thanks!
Dow
More
4 years 7 months ago #1856 by joachim
Replied by joachim on topic u.Other() semantics
Hi Dow,

a very simple answer: To get a homogeneous Neumann bc you just add nothing (i.e. none of the 3 DG terms) at the Neumann boundary.

The meaning of the u.Other() depends a bit whether you apply an operator, or assemble a matrix. For assembling a matrix it doesn't make sense to specify an inhomogeneous boundary value.

best, Joachim
The following user(s) said Thank You: ddrake
Time to create page: 0.111 seconds