CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Can not Iterate this UDF

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

LinkBack Thread Tools Display Modes
Old   November 22, 2005, 03:05
Default Can not Iterate this UDF
Posts: n/a
Sponsored Links
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"



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


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

  Reply With Quote
Sponsored Links

Old   November 22, 2005, 16:17
Default Re: Can not Iterate this UDF
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
  Reply With Quote

Old   November 22, 2005, 22:57
Default Can not Iterate this UDF
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
  Reply With Quote

Old   November 23, 2005, 20:26
Default What kind of error message?
Posts: n/a
Did you hook this UDF?
  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
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
HELP! Fluent UDF Iterate error Sam FLUENT 2 July 10, 2008 21: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

Sponsored Links

All times are GMT -4. The time now is 08:14.