Fluids

Fluids

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.

    • Vishal Ganore
      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.

    • Hqureshi7
      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
  • You must be logged in to reply to this topic.