-
-
February 28, 2024 at 6:55 am
-
February 28, 2024 at 9:34 amRobForum Moderator
Where did you get that UDF code?
-
February 28, 2024 at 9:36 amAdwait MahajanSubscriber
From one of the seniors at my institute.
-
February 28, 2024 at 9:54 amRobForum Moderator
Did it work when they tried it?
-
February 28, 2024 at 9:58 amAdwait MahajanSubscriber
Yes, it did work for him. But I got a bit editted version of his code. I got this through my professor. The code originally didn’t have the “#include
” . I am guessing he had used some more libraries. -
February 28, 2024 at 9:59 amAdwait MahajanSubscriber
Is there any specific library to which the command "local" belongs to?
-
February 28, 2024 at 10:05 amRobForum Moderator
It's more that it doesn't look like a UDF as it's not written in C. We (I checked with another colleague) also don't know what it's written in, as it's not Scheme or TUI script.
-
February 28, 2024 at 10:13 amAdwait MahajanSubscriber
Okay Rob. Thanks a lot for helping me out. Will try and figure out the code from scratch by myself.
Can you atleast vouch for the Fluent specific commands he has used like "FLUENT_CELL_FIX", "FLUENT_CELL_NUMBER", etc. or maybe direct me in the direction of Fluent specific C commands library.
-
February 28, 2024 at 10:26 amRobForum Moderator
UDFs are covered in the Customisation manual. Neither of us recognised FLUENT_CELL_FIX as a macro, and it's not in any of the 2024R1 manuals as far as I can tell.
Start by figuring out what you want to the code to do. If the "negative pressure" part is an attempt to limit the pressure then there may already be tools in Fluent that do the same job.
-
February 28, 2024 at 10:29 amAdwait MahajanSubscriber
Yes. That is what I have to do. But at every iteration. As pressure goes below atmospheric pressure I have to set it to atmospheric pressure.
-
February 28, 2024 at 11:10 amRobForum Moderator
Why? Pressure may drop below atmospheric pressure and fixing the solver like that may cause unforeseen side effects.
-
- The topic ‘Parse error in UDF’ is closed to new replies.
- Non-Intersected faces found for matching interface periodic-walls
- Script error Code: 800a000d
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1336
-
591
-
569
-
525
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.