possibility to manually remove dofs from problems by adding dof number to problem.assembly.removed_dofs vector

This commit is contained in:
Jukka Aho
2017-01-09 08:56:31 +02:00
parent 31d0771dd3
commit 9a382d9f7d
3 changed files with 19 additions and 3 deletions
+3
View File
@@ -84,6 +84,9 @@ end
bc1 = Problem(Dirichlet, "symmetry dx=0", 2, "displacement")
push!(bc1, dx1, dx2)
# remove dof 9 from bc1 to avoid overconstrained problem
push!(bc1.assembly.removed_dofs, 9)
# boundary elements for dirichlet dy=0
dy1 = Element(Seg2, [1, 2])
update!(dy1, "geometry", X)