Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Problem with the coupling of ANSYS Fluent and Rocky DEM using a UDF › Reply To: Problem with the coupling of ANSYS Fluent and Rocky DEM using a UDF
October 21, 2024 at 4:00 pm
Ansys Employee
Â
There are a few requirements in order to make use of UDFs:
Â
- You must place all UDF files in the same folder in which your Fluent CAS (CAS.H5 or CAS.GZ)
file is located. Rocky will then copy those files to the simulation folder and use them during
the 2-Way coupling simulation. - You must provide the UDF files via one of the following two methods:
a. By providing the source files. (E.g., the .c, .h, and .cpp source and header files.) In this
case, you must launch Rocky from an environment that has all the necessary variables
for UDF compilation. Tip: An easy way to accomplish this is to open a command prompt
and then call the udf.bat file, which in Windows, is usually located in the following
folder C:\Program Files\ANSYS Inc {version}\fluent\ntbin\win64 Following this step, you can then launch Rocky from the command prompt. (See also Appendix
G: Perform Tasks from the Command Line or Journal)
b. (Recommended) By providing the folder containing the UDF binary files. In this case,
you must have already compiled the UDF and there are no requirements in terms of
the environment variables.
Â
What kind of UDF are you trying to use in the Fluent case?
Â