


{"id":34599,"date":"2019-04-10T10:32:54","date_gmt":"2019-04-10T10:32:54","guid":{"rendered":"\/forum\/forums\/topic\/age-of-air\/"},"modified":"2019-04-10T10:32:54","modified_gmt":"2019-04-10T10:32:54","slug":"age-of-air","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/age-of-air\/","title":{"rendered":"Age of Air"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p><\/p>\n<p>I want to calculate Age of Air in Ansys Fluent. I found this in UDF Manuel,<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p style=\"color: #000000; font-family: 'Times New Roman'; font-size: medium;\">&#8220;The following UDF, named&nbsp;<tt>mean_age_diff<\/tt>, computes the diffusivity for the mean age of air using a user-defined scalar. Note that the mean age of air calculations do not require that energy, radiation, or species transport calculations have been performed. You will need to set&nbsp;<tt>uds-0<\/tt>&nbsp;=&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.sharcnet.ca\/Software\/Fluent6\/html\/udf\/img45.gif\" alt=\"$0.0$\" width=\"27\" height=\"16\" align=\"BOTTOM\" border=\"0\">&nbsp;at all inlets and outlets in your model. This function can be executed as an interpreted or compiled UDF.<\/p>\n<p><\/p>\n<p style=\"color: #000000; font-family: 'Times New Roman'; font-size: medium;\">&nbsp;<\/p>\n<p><\/p>\n<p style=\"color: #000000; font-family: 'Times New Roman'; font-size: medium;\">&nbsp;<\/p>\n<p><\/p>\n<p style=\"color: #000000; font-family: 'Times New Roman'; font-size: medium;\">&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<pre>\/**********************************************************************<br \/>\nUDF that computes diffusivity for mean age using a user-defined<br \/>\nscalar.<br \/>\n***********************************************************************\/<br \/>\n<br \/>\n#include \"udf.h\"<br \/>\n<br \/>\nDEFINE_DIFFUSIVITY(mean_age_diff,c,t,i)<br \/>\n{<br \/>\nreturn C_R(c,t) * 2.88e-05 + C_MU_EFF(c,t) \/ 0.7;<br \/>\n}<br \/>\n<\/pre>\n<p><\/p>\n<p>&#8220;<\/p>\n<p><\/p>\n<p>I also changed some settings and you can see them below.&nbsp;<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/3074f40d-e58e-4bb6-bb19-a9d600c01f92\/9b544f4a-2bb5-4aaa-85f7-aa2b00acbe6b_1.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/3074f40d-e58e-4bb6-bb19-a9d600c01f92\/1c4edb55-bb33-4c11-bb9a-aa2b00accc0b_2.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>I am not sure about the value which I wrote &#8220;1&#8221; in below<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/3074f40d-e58e-4bb6-bb19-a9d600c01f92\/a944f68e-22d4-4bfd-bb9c-aa2b00acdc50_3.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>Is it enough?<\/p>\n","protected":false},"template":"","class_list":["post-34599","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["6771"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0"],"_btv_view_count":["3326"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["34599"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","161761","181681"],"_bbp_voice_count":["4"],"_bbp_reply_count":["10"],"_bbp_last_reply_id":["128665"],"_bbp_last_active_id":["128665"],"_bbp_last_active_time":["2020-10-01 16:36:41"]},"test":"kadimtalebe"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/34599","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\/34599\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=34599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}