Skip to content

Commit

Permalink
set of boundaries for get_dofs in ex05
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmcbain committed Nov 14, 2021
1 parent 334bec5 commit d3b1787
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/examples/ex02.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,8 @@ def C(T):
K = asm(bilinf, ib)
f = 1e6 * asm(unit_load, ib)

D = np.concatenate(
[
ib.get_dofs("left").facet["u_n"],
*[ib.get_dofs(s).nodal["u"] for s in ["left", "right", "top"]],
]
D = np.hstack(
[ib.get_dofs("left").all("u_n"), ib.get_dofs({"left", "right", "top"}).all("u")]
)

x = solve(*condense(K, f, D=D))
Expand Down

0 comments on commit d3b1787

Please sign in to comment.