


{"id":251184,"date":"2023-02-23T10:57:16","date_gmt":"2023-02-23T10:57:16","guid":{"rendered":"\/forum\/forums\/reply\/251184\/"},"modified":"2023-02-23T10:57:16","modified_gmt":"2023-02-23T10:57:16","slug":"251184","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/251184\/","title":{"rendered":"Reply To: Fluid velocity in dpm_drag"},"content":{"rendered":"<p>&lt;p&gt;I was not aware that you could use DPM without an Eulerian phase. I now tried:&lt;\/p&gt;&lt;p&gt;Domain *gas_domain;&lt;\/p&gt;&lt;p&gt;gas_domain = Get_Domain(2); \/\/Domain ID from multiphase interface&lt;\/p&gt;&lt;p&gt;Thread *T0 = Lookup_Thread(gas_domain, 56); \/\/56 from boundary condition Zone-ID for internal Zone&lt;\/p&gt;&lt;p&gt;cell_t c = TP_CELL(tp);&lt;\/p&gt;&lt;p&gt;real uvel = C_U(c,t0);&lt;\/p&gt;&lt;p&gt;This doesn&#8217;t work, but I am not sure at all if this correct.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;However in the meantime I found a work-around that seems to work:&lt;\/p&gt;&lt;p&gt;cphase_state_t *cell = *(&amp;(tp-&gt;cphase));&lt;\/p&gt;&lt;p&gt;real uvel = cell-&gt;V[1];&lt;\/p&gt;&lt;p&gt;In a short test this seems to give plausible values. There is no documentation for this function (I found it in the dpm_types.h file) so it would be nice if you could confirm, that those are the values for the fluid phase. If so I should be able to get all my required values this way.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;So in the end while it is still interesting what is wrong with my original approach, right now it seems like the problem is solved for me.&lt;\/p&gt;&lt;p&gt;Thanks for your help!&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-251184","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/251184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/251184\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=251184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}