CFD Online Logo CFD Online URL
Home > Forums > FLUENT

NEED HELP in UDF: error using C_WALL_DIST

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

LinkBack Thread Tools Display Modes
Old   November 20, 2006, 11:49
Default NEED HELP in UDF: error using C_WALL_DIST
Posts: n/a
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


  Reply With Quote

Old   December 5, 2006, 15:47
Default Re: NEED HELP in UDF: error using C_WALL_DIST
Posts: n/a
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
  Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 22:27.