|
[Sponsors] |
December 30, 2014, 01:59 |
Cells adjacent to wall UDF
|
#1 |
New Member
Michael Adam
Join Date: Sep 2014
Posts: 5
Rep Power: 12 |
Hi. I have a model where the breakage constant Kb is like,
for interior cells Kb = v^2 * A; for cells adjacent to wall Kb = V^3/5 *B; I am not sure how to code this in fluent UDF. I think I have to give some conditions to the thread to select cells adjacent to wall, but I am not sure how. Your help is very much appreciated Thanks, Michael., |
|
January 11, 2015, 15:41 |
|
#2 |
Senior Member
|
More or less:
thread_loop_c(t,d) { begin_c_loop_int(c,t) { c_face_loop(c, t, nf) { f = C_FACE(c,t,nf); tf = C_FACE_THREAD(c,t,nf); c1 = F_C1(f,tf); if (c1!=-1) /*f(tf) is interior*/ { } else/*f(tf) is on a boundary*/ { } } } } |
|
Tags |
fluent - udf, udf and programming, wall adjacent temperature |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
UDF for slip and moving wall | lichun Dong | FLUENT | 3 | March 26, 2014 05:37 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
[ICEM] Export ICEM mesh to Gambit / Fluent | romekr | ANSYS Meshing & Geometry | 1 | November 26, 2011 13:11 |
physical boundary error!! | kris | Siemens | 2 | August 3, 2005 01:32 |