# fLUENT UDF user-defined tke at the wall

 Register Blogs Members List Search Today's Posts Mark Forums Read

 August 4, 2011, 20:36 fLUENT UDF user-defined tke at the wall #1 Member   ralph Join Date: Jun 2010 Location: Calgary Alberta Posts: 38 Rep Power: 9 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

August 5, 2011, 01:25
#2
Senior Member

Ji Junjie
Join Date: Feb 2010
Location: Shanghai, China
Posts: 111
Rep Power: 10
Quote:
 Originally Posted by 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
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;
}

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20 ehooi FLUENT 0 January 5, 2011 03:56 gravis ANSYS 0 May 4, 2010 11:03 unoder OpenFOAM Installation 11 January 30, 2008 21:30 Abhinav FLUENT 1 June 10, 2003 08:31

All times are GMT -4. The time now is 06:16.