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.

Question on interface integrals at material boundaries in DG formulation

More
4 years 8 months ago #1746 by joachim
The first version produces 0 element-matrices, and tries to assemble them. But the global matrix has no entries allocated, and thus throws an exception.

The translate to dx/ds syntax should be
Code:
a +=uhat.Trace()*vhat.Trace()*ds(definedon=mesh.Boundaries("b2"))
We want a loop over boundary elements, no need for volume elements and thus no skeleton flag.
More
4 years 8 months ago #1747 by Guosheng Fu
Thanks again for the clarification.
Previously, I used ds(skeleton=True,...), it gives me an error.
Now, I tried the same thing in 1D, and it seems .Trace() is not properly implemented yet for 1D Facet Dofs. It gives me this error message:

netgen.libngpy._meshing.NgException: FacetFESpace::GetSFE: unsupported element Point
More
4 years 8 months ago #1748 by Guosheng Fu
Here is the code produce the error message
Attachments:
Time to create page: 0.168 seconds