|
[Sponsors] |
How to apply the same UDF on multiple zone IDs? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2021, 12:35 |
How to apply the same UDF on multiple zone IDs?
|
#1 |
New Member
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5 |
I have applied a UDF for a single zone and it works fine. However, I want to apply the same UDF(define_on_demand) on multiple zone ID which are not adjacent to each other.
I searched the internet and manual and user guide and I could not find a answer, I am using Gambit for meshing and I defined the different zones as a single zone ID but the results were wrong. Also, I am thinking about copy pasting the portion of the code and replace variables along with a different zone ID for different zones and then hook the UDFs. What is the proper way? int Zone_ID=9; .... t=Lookup_Thread(d,Zone_ID) |
|
May 1, 2021, 13:49 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Make an array with your cell zone indices, and do a loop over these indices.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
May 3, 2021, 05:06 |
|
#3 |
New Member
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5 |
Thankyou so much it worked fine.
|
|
Tags |
define_on_demand macro, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polyhedral cells | destroy | FLUENT | 0 | January 18, 2018 06:14 |
UDF Read Data File for Zone Motion | N'Furious76 | FLUENT | 0 | May 9, 2017 11:39 |
UDF chip-exec and multiple UDF | mmkkeshavarzi | Fluent UDF and Scheme Programming | 3 | February 16, 2016 07:25 |
Calling zone name, zone id and total pressure from Fluent scheme to UDF | kuldip | Fluent UDF and Scheme Programming | 2 | October 6, 2014 01:23 |
udf for multiple reaction | alihosseini63 | Fluent UDF and Scheme Programming | 0 | July 4, 2013 19:37 |