3D Adaptivity Keeps Refining Boundary Elements #4108
Unanswered
cwangaw
asked this question in
Firedrake support
Replies: 1 comment 10 replies
-
I think this is the same issue as discussed here: https://firedrakeproject.slack.com/archives/C1Q0Y6H8A/p1740128015584029. @UZerbinati seems to have fixed it in NGSolve/ngsPETSc#74, so you probably just need an update. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am solving some system with a singularity at the middle of the cube, and I have to refine the mesh adaptively. If I use a square instead in 2D, everything works well. However, if I move to 3D, when I mark the elements and pass the DG0 marking function to
msh = msh.refine_marked_elements(mark)
, it will ALWAYS refine the boundary elements (see attached, the second picture shows a slice passing through the center), regardless of my forcing the marking function to be 0 on boundary elements:I checked my marking functions, and they were really zero on the boundary.
I migrated from NGSolve to Firedrake. In NGSolve, they had a similar problem, but can be fixed simply by stating that the boundary elements are not going to be refined with the following code
Is there any similar fix in Firedrake?
Beta Was this translation helpful? Give feedback.
All reactions