


{"id":38505,"date":"2019-10-23T09:21:32","date_gmt":"2019-10-23T09:21:32","guid":{"rendered":"\/forum\/forums\/topic\/mass-flow-inlet-how-flow-will-go-outside\/"},"modified":"2019-10-23T09:21:32","modified_gmt":"2019-10-23T09:21:32","slug":"mass-flow-inlet-how-flow-will-go-outside","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/mass-flow-inlet-how-flow-will-go-outside\/","title":{"rendered":"Mass Flow Inlet &#8211; How flow will go outside"},"content":{"rendered":"<p>Dear Sir,<\/p>\n<p><\/p>\n<p>Appended is my UDF for flow profile. I am providing it to Mass Flow Inlet. As it is starting from negative sinusoidal.<\/p>\n<p><\/p>\n<p>It should move flow out in the start and then flow should come it in sinusoidal pattern.<\/p>\n<p><\/p>\n<p>But there is NO difference even I put here negative sign or not.<\/p>\n<p><\/p>\n<p><strong>F_PROFILE(f, thread, position) = (-0.000096)*sin(2 * PI * 0.001 * t);<\/strong><\/p>\n<p><\/p>\n<p>I want to get flow out from Fluid Domain in start of simulation. I am initializing the fluid domain with zero velocity and 300K (by default Temperature)<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>#include &#8220;udf.h&#8221;<\/p>\n<p><\/p>\n<p>#define PI 3.141592654<\/p>\n<p><\/p>\n<p>DEFINE_PROFILE(first_velocity_in_out, thread, position)<\/p>\n<p><\/p>\n<p>{<\/p>\n<p><\/p>\n<p>face_t f;<\/p>\n<p><\/p>\n<p>real t;<\/p>\n<p><\/p>\n<p>begin_f_loop(f, thread)<\/p>\n<p><\/p>\n<p>t = RP_Get_Real(&#8220;flow-time&#8221;);<\/p>\n<p><\/p>\n<p>{<\/p>\n<p><\/p>\n<p>F_PROFILE(f, thread, position) = (-0.000096)*sin(2 * PI * 0.001 * t);<\/p>\n<p><\/p>\n<p>}<\/p>\n<p><\/p>\n<p>end_f_loop(f, thread)<\/p>\n<p><\/p>\n<p>}<\/p>\n","protected":false},"template":"","class_list":["post-38505","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["10683"],"_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"],"_btv_view_count":["857"],"_bbp_subscription":["239013"],"_edit_lock":["1675285286:41550"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["38505"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","22555","162942"],"_bbp_voice_count":["3"],"_bbp_reply_count":["10"],"_bbp_last_reply_id":["96910"],"_bbp_last_active_id":["96910"],"_bbp_last_active_time":["2019-10-24 12:38:14"]},"test":"nida"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/38505","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\/38505\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=38505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}