Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Curvature calculation of geometry

    • hasupport
      Subscriber

      Hello,

      I would like to have the surface elements of the mesh colored by the Gaussian curvature. I don't care if the solution is done in fluent and exported to ensight, or if it is directly done in ensight. The idea is to compute something as in

      https://vtk.org/doc/release/5.0/html/a01275.html#_details

      From what I have checked online, I would maybe go for a UDF, the problem is that I didn´t find a way to get the face index of the adjacent faces -the faces in contact with the nodes of the actual face-. The only macros I found are F_C0(f,t) and F_C1(f,t), but that gives the volume cells adjacent to a face, and not the faces.

      Does anybody know how to do it? As I said, if not in Fluent, Ensight would also work.


      Thanks in advance.

    • Surya Deb
      Ansys Employee
      Hello,
      Can you please embed an image of what you want to do? Please do not provide links as we will not be able to click on those links.
      You can embed an image instead.
      Regards Surya
    • hasupport
      Subscriber
      Hello!
      Yes, what I would like to achieve is to create a variable that shows curvature such us in this picture from the FreeCAD wiki:
      It kind of should be embedded, since the curvature is something that even fluent mesher is calculating for making the refinements, but, I don't know how to do it.
      Thanks for the help.

      Regards
    • Rob
      Forum Moderator
      Fluent Meshing is checking the rate of change of facet normal, which the solver will also know. I think you'll need a UDF for this and the section in the manual on facet values is going to be a good starting point.
    • hasupport
      Subscriber
      Hi!
      Yes, I have checked the manual, but didn't find a solution, therefore I asked here.
      The problem is that I didn┬┤t find a way to get the face index of the adjacent faces -the faces in contact with the nodes of the actual face-. The only macros I found are F_C0(f,t) and F_C1(f,t), but that gives the volume cells adjacent to a face, and not the faces.
      If you know a function that gets the adjacent cells' index, I could start working from there.
      Thanks in advance.
      Regards!

    • Rob
      Forum Moderator
      I don't think you need to find the neighbours. You want the facet normal, once you have that you can use the built in gradient/derivative tools.
    • hasupport
      Subscriber
      Oh, didn't think of that!
      Thanks! I will write again once I try it
      Regards

    • hasupport
      Subscriber
      That did indeed work. Thank you very much!
Viewing 7 reply threads
  • The topic ‘Curvature calculation of geometry’ is closed to new replies.