CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Wall Boundary Condition (http://www.cfd-online.com/Forums/fluent-udf/100608-wall-boundary-condition.html)

akm April 27, 2012 09:54

Wall Boundary Condition
 
I'm trying to modify the default k-eps turbulence model in Fluent using udfs, and i wanted to set the boundary conditions as per my requirement.

Now the Fluent manual says that it "takes care of the wall boundary conditions for k(turbulent kinetic energy) and epsilon (energy dissipation rate) at the wall", but is there any way i can change the B.C. conditions of epsilon on the wall using a udf?

Amir April 28, 2012 11:02

Hi,

The general idea is to use 2 UDS for k and e; consequently, you can set appropriate BCs on these scalars.

Bests,

moun139 May 8, 2012 16:08

UDF profil
 
i try to intoduce this UDF ,but it return me eror line 18 :invalid type for pointer dereference: double. ; what is the problem?

#include "udf.h"

#define A 0.1;
#define B 0.01;

DEFINE_PROFILE(frac,t,i)
{
real ma=0.002;
real grad=0.002;
cell_t c;
face_t f;

begin_f_loop(f,t)
{

grad=C_YI_G(c,t,i)[1];

ma=A-B*grad;
}
end_f_loop(f,t)
}


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