How to set Dirichlet BC at certain vertex

  • omar
  • New Member
  • New Member
More
2 years 5 months ago #4403 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 
More
2 years 5 months ago #4415 by christopher
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
Code:
fes.FreeDofs()[vertex_num] = False
Time to create page: 0.094 seconds