-
-
February 28, 2024 at 6:55 am
-
February 28, 2024 at 9:34 am
Rob
Forum ModeratorWhere did you get that UDF code?
-
February 28, 2024 at 9:36 am
Adwait Mahajan
SubscriberFrom one of the seniors at my institute.
-
February 28, 2024 at 9:54 am
Rob
Forum ModeratorDid it work when they tried it?
-
February 28, 2024 at 9:58 am
Adwait Mahajan
SubscriberYes, 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 am
Adwait Mahajan
SubscriberIs there any specific library to which the command "local" belongs to?
-
February 28, 2024 at 10:05 am
Rob
Forum ModeratorIt'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 am
Adwait Mahajan
SubscriberOkay 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 am
Rob
Forum ModeratorUDFs 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 am
Adwait Mahajan
SubscriberYes. 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 am
Rob
Forum ModeratorWhy? 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.
-
3382
-
1052
-
1050
-
886
-
847
© 2025 Copyright ANSYS, Inc. All rights reserved.