CFD Online Logo CFD Online URL
Home > Forums > FLUENT

some questions about UDFs--------DEFINE_DPM_DRAG

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

LinkBack Thread Tools Display Modes
Old   November 21, 2007, 05:05
Default some questions about UDFs--------DEFINE_DPM_DRAG
Posts: n/a
Hi, dear all,

I am trying to modify the drag coefficient of particles in DPM. As known in Fluent, drag coefficient Cd=f(Re_p). I try to modify this as Cd=f(Ma_p,Re_p).

When I do this, I have to use some variables(e.g. T_g, Cp_g) of the cells which the particle currently in. I tried as follows:

DEFINE_DPM_DRAG(henderson, Re, P) {... cell_t c;


Thread *t;


Cp_g=C_CP(c,t); T_g=C_T(c,t); ...}

However, when I compile it in Fluent, there always appereas following messages:

(chdir "libudf")() (chdir "ntx86\2ddp")() henderson.c ..\..\src\henderson.c(9) : warning C4047: '=' : 'struct thread_struct *' differs in levels of indirection from 'int '

# Generating udf_names.c because of makefile henderson.obj udf_names.c

# Linking libudf.dll because of makefile user_nt.udf udf_names.obj henderson.obj

Creating library libudf.lib and object libudf.exp

henderson.obj : error LNK2001: unresolved external symbol _RP_THREAD

henderson.obj : error LNK2001: unresolved external symbol _RP_CELL

libudf.dll : fatal error LNK1120: 2 unresolved externals

Can anyone help me. I don't understand what is the problem. Thanks a lot!
  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
Compiled UDFs - questions Antonis FLUENT 6 December 26, 2012 07:12
problem using property udfs in parallel mode EllenW Fluent UDF and Scheme Programming 5 July 10, 2009 04:31
problem using property udfs in parallel mode EllenW FLUENT 0 June 23, 2009 17:18
Unsteady and Flux UDFs for UDSs tom FLUENT 0 February 13, 2009 11:27
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 16:36

All times are GMT -4. The time now is 17:30.