We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Find the centroid (coordinates) of a (wall) surface

    • nselvara
      Ansys Employee

      I wanted to find the centroid (coordinates) of a (wall) surface. Is it possible to find the area averaged centroid coordinates without an UDF? Please let me know.

    • vganore
      Ansys Employee

      You can go to Report > Surface Integrals, then select Report Type as Area-Weighted Average, and for Field Variable Select Mesh, and under that you can select X-Coordinate, then select the Surface for which you want to calculate the centroid. This will give you the area-weighted X-coordinate of the centroid of the entire surface. You can repeat that for Y and Z coordinates. The formula used is: Xc = Sum(AiXi)/Sum(Ai) Yc = Sum(AiYi)/Sum(Ai) Zc = Sum(Ai*Zi)/Sum(Ai) where Xi, Yi, Zi are the X, Y, Z coordinates of the centroid of each mesh cell on that surface, and Ai is the Area of each mesh cell. Note that this calculation is mesh dependent so for a curved surface the finer your mesh, the more accurate the centroid values will be.

    • hamid.iftikhar
      Subscriber
      Hi vganorenI have a you little doubt about surface integral. Does integral type give us the surface zone centroid point or the weighted area average type?nJust to ask you to verify my doubt.nThanksn
    • YasserSelima
      Subscriber
      Area weighted Average n
Viewing 3 reply threads
  • The topic ‘Find the centroid (coordinates) of a (wall) surface’ is closed to new replies.