CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   NEED HELP in UDF: error using C_WALL_DIST (https://www.cfd-online.com/Forums/fluent/42896-need-help-udf-error-using-c_wall_dist.html)

Jadwiga November 20, 2006 10:49

NEED HELP in UDF: error using C_WALL_DIST
 
I have to calculate new viscosity (DEFINE_TURBULENT_VISCOSITY) and this value depends od the cell distance from the nearest wall. I have written my compiled UDF in a following form:

#include "udf.h" #include "mem.h"

DEFINE_TURBULENT_VISCOSITY(user_mu_t,c,t) { real C_mu = M_keCmu; real mu_t; real rho = C_R(c,t); real k = C_K(c,t); real d = C_D(c,t); real f_d; real d_chwil = C_WALL_DIST(c,t); real d_ave = 1e-2;

f_d = 1+9*exp(-d_chwil/d_ave);

mu_t = C_mu*rho*(k*k/d)*f_d;

return mu_t; }

but at the beginning of iteration error occurs: Error Fluent6.2.16 received a fatal signal (SEGMENTATION VIOLATION)....

Please help me to solve this problem. Thank you in advance

Jadwiga


masum December 5, 2006 14:47

Re: NEED HELP in UDF: error using C_WALL_DIST
 
need help to write udf.h for adaptive airfoil. i'm working on adaptive air foil. i'm trying to find the flow pattern and lift and drag force on the airfoil by changing the shape of a straight airfoil to a regular airfoil.

please replky me asap.

sincerely Masum


All times are GMT -4. The time now is 18:21.