


{"id":423408,"date":"2025-02-26T16:06:09","date_gmt":"2025-02-26T16:06:09","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/i-cannot-use-udfs-that-need-hooking-in-rockydem-2-way-coupling\/"},"modified":"2025-02-26T16:06:09","modified_gmt":"2025-02-26T16:06:09","slug":"i-cannot-use-udfs-that-need-hooking-in-rockydem-2-way-coupling","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/i-cannot-use-udfs-that-need-hooking-in-rockydem-2-way-coupling\/","title":{"rendered":"I cannot use UDFs that need hooking in RockyDEM 2-way coupling"},"content":{"rendered":"<p>&lt;p&gt;I set 2 UDFs in my case&lt;\/p&gt;&lt;p&gt;One is &#8220;DEFINE_EXECUTE_ON_LOADING&#8221; type, this UDF can be auto run and it execute correctly.&lt;\/p&gt;&lt;p&gt;The other is &#8220;DEFINE_EXECUTE_AT_END&#8221; type, this UDF need to be hooked and it cannot execute in calculation process.&lt;\/p&gt;&lt;p&gt;I check the &#8220;start_coupled.jou&#8221; and &#8220;fluent.log&#8221; written by RockyDEM, and I found Rocky set its own UDF by &#8220;\/define\/user-defined\/function-hooks\/execute-at-end &#8220;exchange_rocky_fluent_coupling_data::rocky_fluent_coupling&#8221; &#8220;inject_remove_particles::rocky_fluent_coupling&#8221; &#8220;&#8221;&#8221;&lt;\/p&gt;&lt;p&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/02\/26-02-2025-1740585843-mceclip1.png\" width=\"900\" height=\"247\" \/>&lt;\/p&gt;&lt;p&gt;This command hooks those two UDFs to execute-at-end, my UDF has been replaced or just not get hooked, so I cannot use UDFs that need hooking in coupling. This command is execute automaticly by Rocky.&lt;\/p&gt;&lt;p&gt;As the Rocky coupling start, there are nothing I can do to pause the process or exchange the files, so if there are anyway to hook my UDFs automaticly?&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-423408","topic","type-topic","status-publish","hentry","topic-tag-coupling","topic-tag-rocky-dem-1","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["423408"],"_bbp_subscription":["433720","66199"],"_bbp_author_ip":["23.158.104.248"],"_bbp_last_reply_id":["425450"],"_bbp_last_active_id":["425450"],"_bbp_last_active_time":["2025-03-12 18:08:00"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["433720","66199"],"_btv_view_count":["129"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["35062"]},"test":"zhou333708124126-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/423408","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\/423408\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=423408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}