- Thank you received: 1
How to set up boundary condition for VectorL2FESpace
4 years 6 months ago - 4 years 6 months ago #2693
by dong
How to set up boundary condition for VectorL2FESpace was created by dong
I tried to set up u=g on the boundary for Stokes problem. I defined the DG FEspace as follows.
When I run the code, there is a error at the following line
The code was attached.
Could you please show me how to set up the boundary condition for VectorL2FESpace or fix this error? Thank you so much.
Code:
V = VectorL2(mesh,order=2, dirichlet ='left|right|top|bottom',dgjumps=True)
Q = L2(mesh,order=1)
X = FESpace([V,Q],dgjumps=True)
When I run the code, there is a error at the following line
VectorL2FESpace does not have an evaluator for BND!gfu.components[0].Set(g, BND, definedon=mesh.Boundaries("left|right|top|bottom"))
The code was attached.
Could you please show me how to set up the boundary condition for VectorL2FESpace or fix this error? Thank you so much.
Attachments:
Last edit: 4 years 6 months ago by dong.
- Guosheng Fu
- Offline
- Elite Member
Less
More
- Thank you received: 6
4 years 6 months ago #2694
by Guosheng Fu
Replied by Guosheng Fu on topic How to set up boundary condition for VectorL2FESpace
l2 space doesnot have dofs on the bdry. you need to impose dirichlet bc weakly
4 years 6 months ago #2695
by dong
Replied by dong on topic How to set up boundary condition for VectorL2FESpace
I'm a newbie, I don't understand what you've said. Could you please tell me what 'weakly' meant here? Do you know any examples about imposing dirichlet bc weakly with Ngsolve? Thank you.
Time to create page: 0.105 seconds