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

Problem in UDF compilation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Galileo

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 31, 2012, 13:24
Default Problem in UDF compilation
  #1
New Member
 
Bimlesh
Join Date: May 2012
Posts: 12
Rep Power: 14
iitgbim is on a distinguished road
here is part of udf, where I am getting error (not defined variable)

# include "udf.h"
# define C 0.3
# define diam2 2.e-4
# define Cmu 0.09

DEFINE_EXCHANGE_PROPERTY(modified_drag,cell,mix_th read,s_col,f_col)

{
Thread*thread_l;
Thread*thread_g;

real slip_x;
real slip_y;
real slip_z;
real slip;
real k_l;
real d_l;
real mu_t_l;
real mu_l;
real rho_l;
real rho_g;
real reyp;
real cd;

/* liquid phase-primary*/

thread_l=THREAD_SUB_THREAD(mix_thread,s_col);

/* gas phase-secondary*/

thread_g=THREAD_SUB_THREAD(mix_thread,f_col);

/* slip velocity*/

slip_x=C_U(cell,thread_l)-C_U(cell,thread_g);
slip_y=C_V(cell,thread_l)-C_U(cell,thread_g);
slip_z=C_W(cell,thread_l)-C_W(cell,thread_g);

/*Parameters*/

rho_g = C_R(cell, thread_g);
rho_l = C_R(cell, thread_l);
mu_l = C_MU_L(cell, thread_l);

/*turbulent kinetic energy and dissipation rate for liquid*/

k_l=C_K_L(cell,thread_l);
d_l=C_D_L(cell,thread_l);

It says C_D_L is not defined
iitgbim is offline   Reply With Quote

 


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
UDF problem mansha goraya FLUENT 0 October 29, 2007 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF PROBLEM anant FLUENT 2 January 17, 2007 00:15
parallel UDF problem kerem FLUENT 2 June 20, 2006 06:56


All times are GMT -4. The time now is 06:10.