Accessing the Normals for Gmsh #4250
Replies: 2 comments 2 replies
-
I might be misunderstanding what you mean by "it did not seem what you needed": but a similar problem for us is calculating normal stresses on a specific boundary in gadopt (stokes for mantle convection). There I used https://github.com/g-adopt/g-adopt/blob/1bd977805fe4949f3db866c706e3756cb20b4cb6/gadopt/stokes_integrators.py#L818 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your response! What equation exactly you were solving with that setup? I tried doing something similar for our situation with
but ran into an error: raise RuntimeError("%r defined on incompatible FunctionSpace!" % r). So I was also wondering if you had encountered any difficulties with that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am using Firedrake to model blood flow in the aorta. We have a solution for the velocity and pressure; however, what we really want is to calculate the normal stress acting on the wall of the aorta. To do this, we obviously need the unit normal vector at each face on the outside of the mesh. When we tried using FacetNormal, it didn't seem get exactly what we needed to perform the computation. We've also played around with using Paraview's filters (especially programmable) to help do this, but were still struggling to get exactly what we needed. Likewise, biggest issue there is accessing only the surface of the mesh and calculating the normal. So if you have any ideas for how to do this in either Firedrake or Paraview (or a mix), we would really appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions