Is there a method to get Tangent vector on each cell of element? #2374
Unanswered
DavoodDamircheli
asked this question in
Firedrake support
Replies: 2 comments
-
In 3D there is not a unique tangent vector. In 2D you can apply the perp operator ie
n = FacetNormal(mesh)
t = as_vector([-n[1], n[0]])
On 5 Mar 2022, at 08:46, Davood Damircheli ***@***.***> wrote:
Hi,
I know that I can use
FacetNormal: to Return facet normal function for given mesh.
But, is it possible to get the tangent vector on interior edge of a cell in firedrake?
Thank you in advance.
—
Reply to this email directly, view it on GitHub<#2374>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABOSV4UABZFXDDMVMNHZOY3U6MNMJANCNFSM5P7NA2LQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
There are from ufl.classes import CellEdgeVectors
cev = CellEdgeVectors(mesh)
assemble(inner(cev, cev)*dx) works for me. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
I know that I can use
FacetNormal: to Return facet normal function for given mesh.
But, is it possible to get the tangent vector on interior edge of a cell in firedrake?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions