CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Can not Iterate this UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2005, 03:05
Default Can not Iterate this UDF
  #1
mike
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

  Reply With Quote

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

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

Old   November 23, 2005, 20:26
Default What kind of error message?
  #4
Zhang
Guest
 
Posts: n/a
Did you hook this UDF?
  Reply With Quote

Reply


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 Off
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 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


All times are GMT -4. The time now is 15:43.