|
[Sponsors] |
November 20, 2006, 11:49 |
NEED HELP in UDF: error using C_WALL_DIST
|
#1 |
Guest
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 Jadwiga |
|
December 5, 2006, 15:47 |
Re: NEED HELP in UDF: error using C_WALL_DIST
|
#2 |
Guest
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 |
|
|
|
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 22: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 |