- Thank you received: 0
Piecewise constants on the bounday of 2-D domain
- walker_tr9
- Topic Author
- Offline
- Senior Member
Less
More
2 years 10 months ago #4152
by walker_tr9
Piecewise constants on the bounday of 2-D domain was created 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?
2 years 10 months ago #4153
by joachim
Replied by joachim on topic Piecewise constants on the bounday of 2-D domain
for that we have the space of element-wise polynomials on surfaces:
Code:
fes = SurfaceL2(mesh, order=0)
- walker_tr9
- Topic Author
- Offline
- Senior Member
Less
More
- Thank you received: 0
2 years 10 months ago #4156
by walker_tr9
Replied by walker_tr9 on topic Piecewise constants on the bounday of 2-D domain
Yes, but does this work on a sub-domain of co-dimension 1? Do I need to add an argument, like "definedon="?
- Guosheng Fu
- Offline
- Elite Member
Less
More
- Thank you received: 6
2 years 10 months ago #4157
by Guosheng Fu
Replied by Guosheng Fu on topic Piecewise constants on the bounday of 2-D domain
For this, you can use facetfespace, and use definedon=""
- walker_tr9
- Topic Author
- Offline
- Senior Member
Less
More
- Thank you received: 0
2 years 10 months ago #4158
by walker_tr9
Replied by walker_tr9 on topic Piecewise constants on the bounday of 2-D domain
Thanks. Actually, it needs to be:
bdy_L2 = FacetFESpace(mesh, order=0, definedon="", definedonbound="outer")
bdy_L2 = FacetFESpace(mesh, order=0, definedon="", definedonbound="outer")
Time to create page: 0.104 seconds