


{"id":33112,"date":"2019-02-06T16:25:47","date_gmt":"2019-02-06T16:25:47","guid":{"rendered":"\/forum\/forums\/topic\/dpm-loop-udf-help\/"},"modified":"2019-02-06T16:25:47","modified_gmt":"2019-02-06T16:25:47","slug":"dpm-loop-udf-help","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/dpm-loop-udf-help\/","title":{"rendered":"DPM Loop UDF Help"},"content":{"rendered":"<p><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">I am trying to calculate the standard deviation of particles about the centre of a channel at a sampling plane near the exit and I am having trouble getting my UDF to work. The UDF compiles and loads fine, but it causes fluent to crash when i try to run it. I have included my code below. I think the problem is probably due to the need to loop through all particles in a Macro that doesn&#8217;t take in any DPM arguments. Any advice would be really appreciated. <\/span><\/p>\n<p><\/p>\n<p><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">I have tried to get the same results in a few different ways now, and I am wondering is it even possible to loop through all particles outside of a DEFINE_DPM macro?<\/span><\/p>\n<p><\/p>\n<p><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Thanks.<\/span><\/p>\n<p><\/p>\n<p><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/9479793f-180a-433e-996a-a9ca00def0d2\/1cf22e4b-2b31-42ad-a0dd-a9ec010e99ae_code-1.jpg?width=690&amp;upscale=false\" alt=\"\"><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/9479793f-180a-433e-996a-a9ca00def0d2\/aafcb000-bb7a-480b-ba4f-a9ec010ea541_code-2.jpg?width=690&amp;upscale=false\" alt=\"\"><\/span><\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-33112","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["5284"],"_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","0","0","0"],"_btv_view_count":["1320"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["33112"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","161532"],"_bbp_voice_count":["2"],"_bbp_reply_count":["18"],"_bbp_last_reply_id":["77766"],"_bbp_last_active_id":["77766"],"_bbp_last_active_time":["2019-02-13 15:49:07"]},"test":"eannakennedy"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/33112","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\/33112\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=33112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}