{"id":157120,"date":"2022-06-06T08:32:46","date_gmt":"2022-06-06T08:32:46","guid":{"rendered":"\/knowledge\/forums\/topic\/is-it-possible-to-find-the-centroid-coordinates-of-a-wall-surface-without-an-udf-2\/"},"modified":"2022-06-06T08:32:46","modified_gmt":"2022-06-06T08:32:46","slug":"is-it-possible-to-find-the-centroid-coordinates-of-a-wall-surface-without-an-udf-2","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/is-it-possible-to-find-the-centroid-coordinates-of-a-wall-surface-without-an-udf-2\/","title":{"rendered":"Is it possible to find the centroid coordinates of a (wall) surface without an UDF?"},"content":{"rendered":"<p>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(Ai*Xi)\/Sum(Ai) Yc = Sum(Ai*Yi)\/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.<\/p>\n","protected":false},"template":"","class_list":["post-157120","topic","type-topic","status-publish","hentry","topic-tag-ansys-fluent","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["06-06-2022 20:20"],"_bbp_forum_id":["27796"],"_btv_view_count":["1582"],"_bbp_likes_count":["0"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/157120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/157120\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=157120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}