Discontiuity of divergence and curl of known function on surface #4811
Unanswered
Alpha-Legion
asked this question in
Firedrake support
Replies: 1 comment 3 replies
-
|
The divergence of an Hdiv finite element space is in DG, so if you want to properly visualise it you need to project to the DG space of the appropriate size instead, and similar for the Hcurl space. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a smooth surface S embedded in 3D and a smooth vector field

u_3Ddefined on the 3D space.I project
u_3Donto S and obtained a tangent vector fieldu_2Dof S.Then I want to compute the divergence and curl of
u_2D.When S is a sphere modeled by the built-in mesh of Firedrake, the results seems OK.
But when S is a surface modeled by a mesh generated by myself, the
div(u_2D)andcurl(u_2D)are not smooth.Since the quality of my mesh is fine as I feel, I guess the problem might be related to function spaces, about which I might misunderstand. But I am really not sure about this. Did I make any mistake? Any hint will be helpful. Thank you very much!
My codes are as follows:
I've tried with
and with degree
deg-1as well, but the visualizations of the results are similar.Beta Was this translation helpful? Give feedback.
All reactions