Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

H1-P0 FEM

More
4 years 4 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 4 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 4 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 4 months ago - 4 years 4 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 4 months ago by christopher.
More
4 years 4 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 4 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.148 seconds