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

Cells adjacent to wall UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2014, 00:59
Default Cells adjacent to wall UDF
  #1
New Member
 
Michael Adam
Join Date: Sep 2014
Posts: 5
Rep Power: 12
Michaeladam is on a distinguished road
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.,
Michaeladam is offline   Reply With Quote

Old   January 11, 2015, 14:41
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,175
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
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*/
{
}
}
}
}
sbaffini is offline   Reply With Quote

Reply

Tags
fluent - udf, udf and programming, wall adjacent temperature


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
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
UDF for slip and moving wall lichun Dong FLUENT 3 March 26, 2014 04:37
Radiation interface hinca CFX 15 January 26, 2014 17:11
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 12:11
physical boundary error!! kris Siemens 2 August 3, 2005 00:32


All times are GMT -4. The time now is 10:04.