Skip to content

Conversation

@KarsKnook
Copy link
Contributor

Description

Add a DirichletBC to EquationBC in the multicomponent flow demo such that the value on dofs on the boundary of the boundaries are enforced strongly and not weakly.

@KarsKnook KarsKnook requested a review from pbrubeck October 31, 2025 14:06
Comment on lines +452 to +453
sub_bcs = [DirichletBC(Z_h.sub(2), 0, [(1,2), (2,3), (3,4), (4,5), (5,6), (1,6)])] # bc on the boundary of the boundary
v_bc = EquationBC(F_bc == 0, solution, (*inlet_1_id, *inlet_2_id, *outlet_id), V=Z_h.sub(2), bcs=sub_bcs)
Copy link
Contributor

@pbrubeck pbrubeck Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could definetly explain what the tuple syntax means here, as it is a very under-used feature. Also it would be more clear if these tuples were constructed programatically using the wall, inlet and outlet ids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants