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.

using .Other(bnd=...) with grad

More
3 years 5 months ago #3268 by elizabethmonte
Hello,

I'm using discontinuous Galerkin to solve a Poisson equation. I use .Other() when defining my jump and average operators, and I would like to use the bnd parameter to set a value for when .Other() is evaluated on exterior facets.

Defining my jump operators as
Code:
u_jump = n*(u - u.Other(bnd=0))
works perfectly.

However, my average operators involve grad and
Code:
grad_u_avg = 0.5*(grad(u) - grad(u.Other(bnd=u)))
doesn't evaluate correctly on exterior facets.

Am I using .Other(bnd=...) incorrectly? I've attached a script with a working DG formulation where I modify the jump and average operators on the exterior facets and a broken formulation where I attempt to use the bnd parameter.

File Attachment:

File Name: test_2020-10-28.py
File Size:4 KB
Time to create page: 0.106 seconds