TAGGED: #fluent-#ansys, 2-way-coupled-fsi, fluent, rocky-dem
-
-
January 7, 2025 at 10:39 amjarmouniSubscriberHello,I am currently working on linking ANSYS Fluent and Rocky and have encountered a problem. I have created a User-Defined Function (UDF) for my ANSYS model, which I have successfully compiled in the program. All the necessary files are present in the simulation directory, including the UDF as C code and the CASE file. However, I get an error message when I try to connect the ANSYS model to Rocky.Report of the error message can be found in the appendix.Could you please help me to solve this problem?Thank you in advance for your help!
-
January 8, 2025 at 2:15 pmLucas Bertollo BaggioAnsys Employee
Hello,
you .c file is in the correct place (cfd_coupling folder).
However, I just found a case where the libudf folder (with the compiled UDF) is also inside the cfd_coupling folder.
You can also check the Rocky User Manual, section 3.5.11.9.1.2.2. Support for UDMs and UDFs.
best regards,
Lucas
-
January 11, 2025 at 6:25 pmjarmouniSubscriberHello Lucas,Thank you for your feedback.I have done the same as is written in this section. However, I always get the same error message.I don't know if there is an example where Ansys Fluent (with a UDF) is connected to Rocky?Thank you for your support!Kind regardsNoureddine
-
January 14, 2025 at 2:51 pmJackson GomesAnsys Employee
Hi Noureddine,
I have a few questions to help diagnose the issue:
Does the problem persist when you remove the UDF from the model, or does it resolve? This can help identify if the UDF is the root cause.
The validation log could provide valuable information. It’s typically located in the user’s temporary directory, for example:
C:\Users\[YourUser]\AppData\Local\Temp
Could you check and share the related log file?Did you manually copy the
.c
file to thecfd_coupling
directory, or did you leave it in the same location as the.cas
file?
It’s important not to manually copy the.c
file intocfd_coupling
, as this should happen automatically during validation.I recommend using the already compiled UDF, as Fluent requires a properly configured compiler to handle source code. Are you providing the source code or the compiled library?
Could you confirm whether you’re using Windows or Linux? This affects how Fluent locates the compiler.
Best regards,
Jackson Gomes
-
January 20, 2025 at 10:28 amjarmouniSubscriber
Hi Jackson,
Thank you for your feedback.
1. without the UDF, the coupling between Ansys and Rocky works smoothly.
2. in this directory “C:\Users\[YourUser]\AppData\Local\Temp” I have not found a “log” file (see screenshot below).
3. the copying was done by Rocky. When pairing I got a question if I allow copying from UDF or not. I confirmed the copying.
4. i use the source code, in my case “mr-fluid.c”
5. i am using Windows
In a simulation, the coupling worked, but after a first time step, no update is made, I have more than 20 hours on one update, but nothing happens. See the simulation log below.Thank you for your supportBest regards,
Noureddine Jarmouni
-
- You must be logged in to reply to this topic.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Fluent fails with Intel MPI protocol on 2 nodes
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
-
1602
-
602
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.