Piecewise constants on the bounday of 2-D domain

More
2 years 11 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 11 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 11 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 11 months ago #4157 by Guosheng Fu
For this, you can use facetfespace, and use definedon=""
More
2 years 11 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.096 seconds