How to set Dirichlet BC at certain vertex
- omar
- Topic Author
- New Member
Less
More
2 years 5 months ago #4403
by omar
How to set Dirichlet BC at certain vertex was created by omar
Hi all
I am solving lid driven cavity
I want to set a pressure value of zero at the bottom right corner.
I already was able to get the vertex number at that point. But how can I set Dirichlet BC at certain vertex ?
Thanks in advance
I am solving lid driven cavity
I want to set a pressure value of zero at the bottom right corner.
I already was able to get the vertex number at that point. But how can I set Dirichlet BC at certain vertex ?
Thanks in advance
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
2 years 5 months ago #4415
by christopher
Replied by christopher on topic How to set Dirichlet BC at certain vertex
Hi,
you have to set the freedofs bitarray at the dof number to False. As the first H1 dofs are exactly the vertex dofs it should be as easy as
you have to set the freedofs bitarray at the dof number to False. As the first H1 dofs are exactly the vertex dofs it should be as easy as
Code:
fes.FreeDofs()[vertex_num] = False
Time to create page: 0.094 seconds