CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to apply the same UDF on multiple zone IDs?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By pakk
  • 1 Post By DIWAS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2021, 12:35
Default How to apply the same UDF on multiple zone IDs?
  #1
New Member
 
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5
DIWAS is on a distinguished road
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)
DIWAS is offline   Reply With Quote

Old   May 1, 2021, 13:49
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Make an array with your cell zone indices, and do a loop over these indices.
zlwdml3344 and DIWAS like this.
__________________
"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".
pakk is offline   Reply With Quote

Old   May 3, 2021, 05:06
Default
  #3
New Member
 
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5
DIWAS is on a distinguished road
Thankyou so much it worked fine.
pakk likes this.
DIWAS is offline   Reply With Quote

Reply

Tags
define_on_demand macro, udf and programming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:24.