|
[Sponsors] |
April 25, 2009, 07:25 |
How to identify different zones using UDF?
|
#1 |
New Member
Yang Xiaoguang
Join Date: Apr 2009
Posts: 24
Rep Power: 17 |
My model has two porous zones with diffenent porosity, so the mass diffusivity coefficients differ and I want to define the diffusivity coefficient seperately in each zone. How can I identify this two different zones? I hope someone can help me, thank you!
|
|
May 4, 2009, 05:05 |
|
#2 |
Member
Join Date: Mar 2009
Location: Istanbul, Turkiye
Posts: 47
Rep Power: 17 |
You should check the cell thread id number of the domain.
Example: real id_of_zone_a = 2; real id_of_zone_b = 4; real id_of_zone_c = 7; if(THREAD_ID(c,t) == id_of_zonea) { porosity = sometihng more calculations.. } else if(THREAD_ID(c,t) == id_of_zonec) { porosity = sometihng more calculations.. } else if(THREAD_ID(c,t) == id_of_zonec) { porosity = sometihng more calculations.. } else { } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: Given coordinates, How to identify the cell? | Zhang | Fluent UDF and Scheme Programming | 26 | August 15, 2022 05:54 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
How to set multiple zones profile in UDF? | jis3 | FLUENT | 2 | April 25, 2004 15:03 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |