


{"id":251049,"date":"2023-02-22T16:29:36","date_gmt":"2023-02-22T16:29:36","guid":{"rendered":"\/forum\/forums\/reply\/251049\/"},"modified":"2023-02-22T16:30:49","modified_gmt":"2023-02-22T16:30:49","slug":"251049","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/251049\/","title":{"rendered":"Reply To: Fluid velocity in dpm_drag"},"content":{"rendered":"<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Using PP_CELL or TP_CELL doesn&rsquo;t make a difference.I am not sure I understand the difference correctly but from my understanding TP_ should be correct.&lt;\/p&gt;&lt;p&gt;I agree, the link the cell is likely the problem. I tested if &#8220;cell = TP_CELL(p)&#8221; works by outputting &#8220;Message(&ldquo;cellid %d&rdquo;, cell);&#8221; and it looks plausible (values between 0 and my max cell count). For the thread &#8220;t0 = TP_CELL_THREAD(tp)&#8221; I first checked &#8220;if (NULLP(t0)) Message(&ldquo;Nullpointer&rdquo;);&#8221; and it did not trigger. However &#8220;if (NULLP(THREAD_STORAGE(t0,SV_U))) Message(&ldquo;Nullpointer&rdquo;);&#8221; triggers. From my understanding this should be the location were C_U(c,t) looks for the data.&lt;\/p&gt;&lt;p&gt;So I am wondering, if I am referencing a Thread but not the correct one? Or is the storage location wrong? Do I need to account for any Subthreads? I have one Eulerian Phase and one DPM phase in my case.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-251049","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/251049","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\/251049\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=251049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}