- Thank you received: 6
Another question on Dirichlet BCs for VectorH1 space
- Guosheng Fu
- Topic Author
- Offline
- Elite Member
Less
More
5 years 2 months ago #1864
by Guosheng Fu
Another question on Dirichlet BCs for VectorH1 space was created by Guosheng Fu
Hello,
I would like to define a VectorH1 space with different Dirichlet BC conditions for different components, currently, I am only doing the following, and then I have to define grad/div manually, which is cumbersome...
Is there a way to use VectorH1 to define the above space?
Best,
Guosheng
I would like to define a VectorH1 space with different Dirichlet BC conditions for different components, currently, I am only doing the following, and then I have to define grad/div manually, which is cumbersome...
Code:
V1 = H1(mesh, dirichlet="top")
V2 = H1(mesh, dirichelt="bottom")
V = FESpace([V1, V2])
Best,
Guosheng
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 2 months ago #1868
by christopher
Replied by christopher on topic Another question on Dirichlet BCs for VectorH1 space
ngsolve.org/forum/ngspy-forum/846-bounda...-vector-valued-funcs
Here we had an example on how to set dirichlet dofs for the subspace manually. Is this what you looked for?
Best
Christopher
Here we had an example on how to set dirichlet dofs for the subspace manually. Is this what you looked for?
Best
Christopher
- Guosheng Fu
- Topic Author
- Offline
- Elite Member
Less
More
- Thank you received: 6
5 years 2 months ago #1869
by Guosheng Fu
Replied by Guosheng Fu on topic Another question on Dirichlet BCs for VectorH1 space
I will try it out. Thanks.
Time to create page: 0.099 seconds