H1-P0 FEM

7 months 1 week ago #2158 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?

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

7 months 1 week ago #2159 by christopher
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

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

7 months 1 week ago #2160 by Yongbin
Hi Christopher!

Now,can I define a constant on the skeleton?

Thanks!
Yongbin

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

7 months 1 week ago - 7 months 1 week ago #2161 by christopher
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

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

7 months 1 week ago #2163 by Yongbin
Hi!
NumberSpace is the space V = FESpace("number",mesh) ?

Thanks!
Yongbin

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

7 months 1 week ago #2164 by christopher
Yes, better is the Python constructor: V = NumberSpace(mesh)
Best
The following user(s) said Thank You: Yongbin

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

© 2019 Netgen/NGSolve