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.

How to set Dirichlet BC at certain vertex

  • omar
  • New Member
  • New Member
More
1 year 10 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
1 year 10 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.140 seconds