|
[Sponsors] |
August 4, 2011, 20:36 |
fLUENT UDF user-defined tke at the wall
|
#1 |
Member
|
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
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
#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; } |
||
|
|
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 |