


{"id":166212,"date":"2022-02-08T12:23:42","date_gmt":"2022-02-08T12:23:42","guid":{"rendered":"\/forum\/forums\/topic\/udf-to-calculate-distance-from-a-specific-boundary\/"},"modified":"2022-02-08T15:53:42","modified_gmt":"2022-02-08T15:53:42","slug":"udf-to-calculate-distance-from-a-specific-boundary","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-to-calculate-distance-from-a-specific-boundary\/","title":{"rendered":"UDF to calculate distance from a specific boundary?"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>Hello to everybody,<\/p>\n<p>I am simulating a 2D axisymmetric CFD system with volumetric power generation coming from neutronic irradiation. In my system there is no localized source, but the power distribution (negative exponential) is dependent on the distance from a specified boundary, which is non-moving but has a complex shape. <\/p>\n<p>I tried to write some UDFs to compute the distance from a given boundary, but the main problem is that if I use a face loop and a cell loop in the same function I get a SIGSEGV error, because of the different natures of the pointer. Is there something that I am missing? Is there a simpler method to compute the distance from a boundary (which is different from the nearest wall distance) that I am missing?<\/p>\n<p>Thank you in advance.<\/p>\n","protected":false},"template":"","class_list":["post-166212","topic","type-topic","status-closed","hentry","topic-tag-heat-source","topic-tag-udf-fluent","topic-tag-wall"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_btv_view_count":["1294"],"_bbp_likes_count":["0"],"_bbp_subscription":["247802"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["166212"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","247802"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["204847"],"_bbp_last_active_id":["204847"],"_bbp_last_active_time":["2022-02-08 15:53:42"]},"test":"gabri_ferrerohotmail-it"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/166212","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\/166212\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=166212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}