Piecewise constants on the bounday of 2-D domain

More
8 months 2 weeks 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?

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #4153 by joachim
for that we have the space of element-wise polynomials on surfaces:
Code:
fes = SurfaceL2(mesh, order=0)

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks 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="?

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #4157 by Guosheng Fu
For this, you can use facetfespace, and use definedon=""

Please Log in or Create an account to join the conversation.

More
8 months 2 weeks ago #4158 by walker_tr9
Thanks. Actually, it needs to be:

bdy_L2 = FacetFESpace(mesh, order=0, definedon="", definedonbound="outer")

Please Log in or Create an account to join the conversation.

Time to create page: 0.159 seconds