


{"id":365456,"date":"2024-05-03T17:11:11","date_gmt":"2024-05-03T17:11:11","guid":{"rendered":"\/forum\/forums\/topic\/udf-segmentation-fault-when-using-f_area\/"},"modified":"2024-05-03T17:11:11","modified_gmt":"2024-05-03T17:11:11","slug":"udf-segmentation-fault-when-using-f_area","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-segmentation-fault-when-using-f_area\/","title":{"rendered":"UDF: Segmentation fault when using F_AREA"},"content":{"rendered":"<p>Hello,<br \/>I need to calculate the area of all faces within a given domain. This was my approach:<\/p>\n<ol>\n<li>I looked into the ANSYS UDF MANUAL and I found a code that outputs the location of the centroids of the cells (page 225).&nbsp;<\/li>\n<li>I adapted this code for outputting the area of each face within a domain but I receive a Segmentation fault.<em>&nbsp;<\/em><\/li>\n<li>I debugged the code and the issue occurs when the code runs into the F_AREA(A,f,t) macro.<\/li>\n<li>FYI &#8211; I am not running in parallel.<\/li>\n<\/ol>\n<p>&nbsp;The problematic code is shown below. I would appreciate if you give me any advice on this.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/05\/03-05-2024-1714756242-code-post.png\" alt=\"\"><\/p>\n","protected":false},"template":"","class_list":["post-365456","topic","type-topic","status-closed","hentry","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["53275","199"],"_bbp_author_ip":["23.196.2.143"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["310"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["365456"],"_bbp_forum_id":["27796"],"_bbp_engagement":["199","53275"],"_bbp_voice_count":["2"],"_bbp_reply_count":["9"],"_bbp_last_reply_id":["367163"],"_bbp_last_active_id":["367163"],"_bbp_last_active_time":["2024-05-16 13:31:31"]},"test":"antosanfgmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/365456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/365456\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=365456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}