2D elastic model and free slip boundary conditions #936
-
Hi, I am writing a 2D elastic code. The model box is a square. I want to impose free slip boundary conditions on the top boundary (normal component 'u^2' = 0 and tangential component 'u^1' non defined). "mesh = (MeshQuad e1 = ElementQuad1() Boundary conditionsu = basis.zeros() D = basis.get_dofs({'left','right','bottom','top'}) lambda_, mu = lame_parameters(E, nu) u = solve(*condense(K, x=u, D=D))" Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Passing D = basis.get_dofs({'left','right','bottom','top'}) to I suggest you do something like D1 = basis.get_dofs({'left', 'right', 'bottom'}).all() # all DOFs fixed
D2 = basis.get_dofs('top').all('u^2') # all 'u^2' DOFs fixed
D = np.concatenate((D1, D2)) Hopefully this solves your problem. |
Beta Was this translation helpful? Give feedback.
Passing
to
condense(..., D=D)
causes all DOFs to be eliminated.I suggest you do something like
Hopefully this solves your problem.