


{"id":35296,"date":"2019-05-13T04:34:28","date_gmt":"2019-05-13T04:34:28","guid":{"rendered":"\/forum\/forums\/topic\/zone-of-applicability-define_mass_transfer\/"},"modified":"2019-05-13T04:34:28","modified_gmt":"2019-05-13T04:34:28","slug":"zone-of-applicability-define_mass_transfer","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/zone-of-applicability-define_mass_transfer\/","title":{"rendered":"zone of applicability &#8212; DEFINE_MASS_TRANSFER"},"content":{"rendered":"<p>Hello,<\/p>\n<p><\/p>\n<p>My domain consists of liquid and vapor separated by an interface.<\/p>\n<p><\/p>\n<p>If I use the macro DEFINE_MASS_TRANSFER to apply phase change from liquid to vapor, does the phase change apply to the entire region of domain?<\/p>\n<p><\/p>\n<p>(OR)<\/p>\n<p><\/p>\n<p>If I use an conditional statement to apply near the interface cells as shown below, does it work?<\/p>\n<p><\/p>\n<p>DEFINE_MASS_TRANSFER(liq_gas_source,c,t,from_index,from_species_index,to_index,to_species_index)<br \/>&nbsp;{<br \/>&nbsp;&nbsp; &nbsp;Thread *gas=THREAD_SUB_THREAD(t,to_index);<br \/>&nbsp;&nbsp; &nbsp;Thread *liq=THREAD_SUB_THREAD(t,from_index);<br \/>&nbsp;&nbsp; &nbsp;real source;<br \/>&nbsp;&nbsp; &nbsp;if (0.1&lt;C_VOF(c,t)&lt;0.9)<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (C_T(c,liq)&gt;T_SAT)<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;source=3.2*(C_T(c,liq)-T_SAT)*(C_UDMI(c,t,0));<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br \/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return source;<br \/>&nbsp;}<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>Thanks &amp; Regards,<\/p>\n<p><\/p>\n<p>vidyadhar<\/p>\n","protected":false},"template":"","class_list":["post-35296","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["7468"],"_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":["1499"],"_bbp_subscription":["237590"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["35296"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","159889"],"_bbp_voice_count":["2"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["85259"],"_bbp_last_active_id":["85259"],"_bbp_last_active_time":["2019-05-15 06:05:04"]},"test":"vidyadhar"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/35296","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\/35296\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=35296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}