|
[Sponsors] |
November 22, 2005, 03:05 |
Can not Iterate this UDF
|
#1 |
Guest
Posts: n/a
|
Hi every one . I want to define the turbulent viscosity then i define this code. It can interpreting but it cannot iterate. Please someone help me #include "udf.h"
DEFINE_TURBULENT_VISCOSITY(user_mu_t, c, t) { real mu_t; //TURBULENTVISCOSITY real p = C_R(c,t); //density real k = C_K(c,t); //Turbulent kinetic energy(k) real e = C_D(c,t); //Dissipation rate (epsilon) real Ret; //Turbulent Reynolds number real u = C_MU_L(c,t); //laminar viscosity real v; real fmu; //Damping function real cmu = 0.09; v=u/p; //Kinenatic viscosity Ret=k*k/(e*v); fmu= exp(-6.0/((1.0+(Ret/50.0))*(1.0+(Ret/50.0))))*(1.0+(3.0*exp(-Ret/10.0))); //Damping function mu_t =cmu*fmu*k*k/e; return mu_t; } Best regard |
|
November 22, 2005, 16:17 |
Re: Can not Iterate this UDF
|
#2 |
Guest
Posts: n/a
|
I tested your code. It works well in my system. Windows XP, Fluent 6.1.22 and 6.2.16, 3-D geometry Both Intepreted and Compiled
|
|
November 22, 2005, 22:57 |
Can not Iterate this UDF
|
#3 |
Guest
Posts: n/a
|
thank you very much Zhang. I used Fluent 6.1.22 with Win XP. This code Intepreted and Compiled but when I iterate the problem ( Channel Flow 2D) it is error. Thank you
|
|
November 23, 2005, 20:26 |
What kind of error message?
|
#4 |
Guest
Posts: n/a
|
Did you hook this UDF?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
HELP! Fluent UDF Iterate error | Sam | FLUENT | 2 | July 10, 2008 22:29 |
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 |