-
Beta Was this translation helpful? Give feedback.
Answered by
kinnala
Aug 13, 2024
Replies: 1 comment 5 replies
-
Do the meshes have to be separate or is it OK to generate one mesh for the union of the domains? The latter will greatly simplify the solver as you do not need to find the overlapping elements and their intersections one by one. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, so basically you would slice those unnecessary zero rows/cols. You can find the corresponding dofs using
I1 = Vh.get_dofs(elements='mesh1').all()
and then you can slice the matrixA0 = A0[I1][:, I1]
.