


{"id":398536,"date":"2024-12-26T17:30:43","date_gmt":"2024-12-26T17:30:43","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/getting-temperature-at-specific-position-using-udf-in-fluent\/"},"modified":"2024-12-26T17:30:43","modified_gmt":"2024-12-26T17:30:43","slug":"getting-temperature-at-specific-position-using-udf-in-fluent","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/getting-temperature-at-specific-position-using-udf-in-fluent\/","title":{"rendered":"Getting temperature at specific position using UDF in fluent"},"content":{"rendered":"<p>&lt;p&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/26-12-2024-1735233637-code.JPG\" alt=\"\" width=\"678\" height=\"480\" \/>&lt;\/p&gt;&lt;p&gt;&nbsp;I am trying to compute the temperature at specific position like at x=.01 and y=.02 using a udf code the code loops through all cell threads and cell to look for the cell near the target coordinates however the code repeats its self 5 times &#8212;I don&#8217;t know why&#8212; finding the cell in the midway and compute the temperature then it repeat the process missing the cell and don&#8217;t retain temperature value although it is a global value and back to the initial one &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/12\/26-12-2024-1735234204-res.JPG\" alt=\"\" \/>&lt;\/p&gt;&lt;p&gt;Any help I will be really grateful&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-398536","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["398536"],"_bbp_author_ip":["154.182.0.0"],"_bbp_last_reply_id":["403234"],"_bbp_last_active_id":["403234"],"_bbp_last_active_time":["2025-01-02 12:15:52"],"_bbp_reply_count":["2"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["292738","199"],"_btv_view_count":["137"],"_bbp_topic_status":["unanswered"],"_bbp_subscription":["292738","199"]},"test":"usama-mo2000gmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/398536","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\/398536\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=398536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}