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

fLUENT UDF user-defined tke at the wall

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2011, 20:36
Default fLUENT UDF user-defined tke at the wall
  #1
Member
 
ralph
Join Date: Jun 2010
Location: Calgary Alberta
Posts: 38
Rep Power: 15
syler3321 is on a distinguished road
Send a message via Skype™ to syler3321
Hi,
I am trying to force the kp( turbulence kinetic energy at the centre of cell immediately adjacent to the wall) to certain value but I am not sure if my method is correct. This is what i wrote in the user-defined function. Is this correct?

C_K(c0,t0)= 0.1689;

Thanks
Ralph
syler3321 is offline   Reply With Quote

Old   August 5, 2011, 01:25
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by syler3321 View Post
Hi,
I am trying to force the kp( turbulence kinetic energy at the centre of cell immediately adjacent to the wall) to certain value but I am not sure if my method is correct. This is what i wrote in the user-defined function. Is this correct?

C_K(c0,t0)= 0.1689;

Thanks
Ralph
I think C_K is read only. The usage of C_K is just to compute turbulent viscosity. So I think you can directly change the expression of turbulent viscosity using the following macro.

#include "udf.h"
DEFINE_TURBULENT_VISCOSITY(user_mu_t,c,t)
{
real mu_t,rho,k,d;
rho = C_R(c,t);
d = C_D(c,t);
if(adjacent to the wall.......) // judge whether a cell is adjacent to the wall
k=0.1; //assume you constant is 0.1
else
k = C_K(c,t);

mu_t = M_keCmu*rho*SQR(k)/d;
return mu_t;
}
gearboy is offline   Reply With Quote

Reply


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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 15:33
Is my UDF correct ehooi FLUENT 0 January 5, 2011 02:56
Wall function formulation in CFX and Fluent gravis ANSYS 0 May 4, 2010 11:03
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
User defined rotational velocity in FLUENT Abhinav FLUENT 1 June 10, 2003 08:31


All times are GMT -4. The time now is 20:55.