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.

Piecewise constants on the bounday of 2-D domain

More
2 years 3 months ago #4152 by walker_tr9
So I can create a piecewise linear FE space on a boundary of a 2-D square. But there does not seem to be a way to create piecewise constants. Is this just not doable?
More
2 years 3 months ago #4153 by joachim
for that we have the space of element-wise polynomials on surfaces:
Code:
fes = SurfaceL2(mesh, order=0)
More
2 years 3 months ago #4156 by walker_tr9
Yes, but does this work on a sub-domain of co-dimension 1? Do I need to add an argument, like "definedon="?
More
2 years 3 months ago #4157 by Guosheng Fu
For this, you can use facetfespace, and use definedon=""
More
2 years 3 months ago #4158 by walker_tr9
Thanks. Actually, it needs to be:

bdy_L2 = FacetFESpace(mesh, order=0, definedon="", definedonbound="outer")
Time to create page: 0.168 seconds