H1-P0 FEM

More
4 years 11 months ago #2158 by Yongbin
H1-P0 FEM was created by Yongbin
Hello everyone!

V = H1(mesh, order=0)
and
Vbar =H1(mesh, order=0, orderinner=0, dirichlet=[1,2,3,4])

Can these two finite element spaces be used? and, do they have only one degree of freedom?
More
4 years 11 months ago #2159 by christopher
Replied by christopher on topic H1-P0 FEM
No the H1 space is only well defined for order >= 1. If you need a constant on the whole domain you can use the NumberSpace.
Best Christopher
The following user(s) said Thank You: Yongbin
More
4 years 11 months ago #2160 by Yongbin
Replied by Yongbin on topic H1-P0 FEM
Hi Christopher!

Now,can I define a constant on the skeleton?

Thanks!
Yongbin
More
4 years 11 months ago - 4 years 11 months ago #2161 by christopher
Replied by christopher on topic H1-P0 FEM
The evaluator of the NumberSpace always returns the constant, so you should be able to use it in a skeleton formulation as well...
Did you try it?
Best
Christopher
Last edit: 4 years 11 months ago by christopher.
More
4 years 11 months ago #2163 by Yongbin
Replied by Yongbin on topic H1-P0 FEM
Hi!
NumberSpace is the space V = FESpace("number",mesh) ?

Thanks!
Yongbin
More
4 years 11 months ago #2164 by christopher
Replied by christopher on topic H1-P0 FEM
Yes, better is the Python constructor: V = NumberSpace(mesh)
Best
The following user(s) said Thank You: Yongbin
Time to create page: 0.108 seconds