


{"id":390699,"date":"2024-10-21T16:00:55","date_gmt":"2024-10-21T16:00:55","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/390699\/"},"modified":"2024-10-21T16:01:41","modified_gmt":"2024-10-21T16:01:41","slug":"390699","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/390699\/","title":{"rendered":"Reply To: Problem with the coupling of ANSYS Fluent and Rocky DEM using a UDF"},"content":{"rendered":"<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;There are a few requirements in order to make use of UDFs:&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n<ol>\n<li>You must place all UDF files in the same folder in which your Fluent CAS (CAS.H5 or CAS.GZ)&lt;br&gt;file is located. Rocky will then copy those files to the simulation folder and use them during&lt;br&gt;the 2-Way coupling simulation.<\/li>\n<li>You must provide the UDF files via one of the following two methods:&lt;br&gt;a. By providing the source files. (E.g., the .c, .h, and .cpp source and header files.) In this&lt;br&gt;case, you must launch Rocky from an environment that has all the necessary variables&lt;br&gt;for UDF compilation. Tip: An easy way to accomplish this is to open a command prompt&lt;br&gt;and then call the udf.bat file, which in Windows, is usually located in the following&lt;br&gt;folder C:\\Program Files\\ANSYS Inc {version}\\fluent\\ntbin\\win64&nbsp;Following&nbsp;this step, you can then launch Rocky from the command prompt. (See also Appendix&lt;br&gt;G: Perform Tasks from the Command Line or Journal)&lt;br&gt;b. (Recommended) By providing the folder containing the UDF binary files. In this case,&lt;br&gt;you must have already compiled the UDF and there are no requirements in terms of&lt;br&gt;the environment variables.<\/li>\n<\/ol>\n<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;What kind of UDF are you trying to use in the Fluent case?&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-390699","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/390699","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/390699\/revisions"}],"predecessor-version":[{"id":390700,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/390699\/revisions\/390700"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=390699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}