dolfinx-tutorial icon indicating copy to clipboard operation
dolfinx-tutorial copied to clipboard

Issue on page /chapter3/component_bc.html

Open tyagi-ankit opened this issue 5 months ago • 2 comments

It says:

Next, we locate the degrees of freedom on the top boundary. However, as the boundary condition is in a sub space of our solution, we need to supply both the parent space $V$ and the sub space $V_0$ to dolfinx.locate_dofs_topological.

But only the subspace is provided:

boundary_dofs_x = locate_dofs_topological(V.sub(0), mesh.topology.dim - 1, boundary_facets)

Please clarify. I have also seen examples on the discourse where both are specified. It's confusing.

Thanks.

tyagi-ankit avatar Sep 02 '24 11:09 tyagi-ankit