


{"id":317910,"date":"2023-11-16T03:45:43","date_gmt":"2023-11-16T03:45:43","guid":{"rendered":"\/forum\/forums\/topic\/define_dpm_scalar_update\/"},"modified":"2023-11-22T12:37:25","modified_gmt":"2023-11-22T12:37:25","slug":"define_dpm_scalar_update","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/define_dpm_scalar_update\/","title":{"rendered":"Define_DPM_scalar_update"},"content":{"rendered":"<p>I use this code to calculate stokes number.<\/p>\n<p>settings:<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/16-11-2023-1700103843-mceclip0.png\"><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/16-11-2023-1700103879-mceclip1.png\"><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/16-11-2023-1700103939-mceclip2.png\"><\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/16-11-2023-1700104079-mceclip3.png\"><\/p>\n<p>reporting User Value 0. (I suppose this is the stokes number I get. but I don&#8217;t know why its name is this one)<\/p>\n<p>it works in the case EBU example from FLUENT.<\/p>\n<p>but for my case with 2 million mesh and 40 million particle parcels, it crashed.<\/p>\n<p><img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/16-11-2023-1700106122-mceclip4.png\"><\/p>\n<p>I can&#8217;t post all the code here. the code is correct. so what setting should I change?<\/p>\n<p>#include &#8220;udf.h&#8221;<br \/>#include &#8220;dpm.h&#8221;<\/p>\n<p>DEFINE_DPM_SCALAR_UPDATE(StokesNumber,c,t,init,p)<br \/>{<br \/>&nbsp; &nbsp; cphase_state_t *cp;<br \/>&nbsp; &nbsp; cp = p-&gt;cphase;<br \/>&nbsp; &nbsp; \/* cphase_state_t *c = &amp;(p-&gt;cphase); *\/<\/p>\n<p>&nbsp;&nbsp; &#8230;&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp; &nbsp; \/* Stokes Number *\/<br \/>&nbsp; &nbsp; P_USER_REAL(p,0) = tau_p \/ tau_f;<\/p>\n<p>}<\/p>\n","protected":false},"template":"","class_list":["post-317910","topic","type-topic","status-closed","hentry","topic-tag-coal-particle-combustion-1","topic-tag-dpm"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["27819","199"],"_bbp_author_ip":["23.52.43.88"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["816"],"_bbp_status":["publish"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["317910"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","27819"],"_bbp_voice_count":["2"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["319023"],"_bbp_last_active_id":["319023"],"_bbp_last_active_time":["2023-11-22 12:37:03"]},"test":"ll00023mix-wvu-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/317910","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\/317910\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=317910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}