Skip to content
Discussion options

You must be logged in to vote

I think what you meant to do is:

bc_air = DirichletBC(W_h.sub(0), as_vector([0.0, 0.0, 0.0]), [*range(3, 7)])  # or [3, 4, 5, 6]

instead of:

bc_air = DirichletBC(W_h.sub(0), as_vector([0.0, 0.0, 0.0]), [range(3, 7)])

The most general form of sub_domain argument is tuple of tuples; if sub_domain = ((3, 4), (5, ), (4, 5, 6)), for instance, the boundary condition is applied on the intersection of boundaries 3 and 4, on boundary 5, and on the intersection of boundaries 4, 5, and 6. Currently, this most general form is only useful for Lagrange elements. (I should document this.)
If you pass a tuple (3, 4, 5, 6), say, as sub_domain, it is internally converted to ((3, ), (4, ), (5, ), (6, )).
[…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pzuritas
Comment options

Answer selected by pzuritas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants