CFD Online Logo CFD Online URL
Home > Forums > FLUENT

why can not find udf.h?

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

LinkBack Thread Tools Display Modes
Old   February 23, 2006, 23:55
Default why can not find udf.h?
Posts: n/a
hi! my UDF code is following: #include "udf.h" #define CON 20.0 DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn) { real source; if (C_T(cell,thread) >= 1974.) { /* source term */ source = CON*C_U(cell,thread); /* derivative of source term w.r.t. x-velocity. */ dS[eqn] = CON; } else source = dS[eqn] = 0.; return source; }

after my momentum source is interpreted, my computer shows: cpp -ID:\Fluent.Inc-2\fluent6.2.16/src -ID:\Fluent.Inc-2\fluent6.2.16/cortex/src -ID:\Fluent.Inc-2\fluent6.2.16/client/src -ID:\Fluent.Inc-2\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" F:\momentum source.c Error: F:\momentum source.c: line 1: parse error. trying it IN C: again,computer still can not find udf.h. but when trying a UDF'example provided by FLUENT, computer finds udf.h file,it appears following information: cpp -ID:\Fluent.Inc-2\fluent6.2.16/src -ID:\Fluent.Inc-2\fluent6.2.16/cortex/src -ID:\Fluent.Inc-2\fluent6.2.16/client/src -ID:\Fluent.Inc-2\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" F: ry.c

.entry inlet_x_velocity:

.local.pointer thread (r0) index (r1)

0 .local.end

0 save

.local.pointer x (r3)

1 12 bytes, 0 bytes initialized:

.local.float y (r5)

6 push.float 0


159 restore

160 ret.v

why can not it find udf.h?


  Reply With Quote

Old   February 24, 2006, 04:58
Default Re: why can not find udf.h?
Posts: n/a
Dont use spaces in the name of your source file. Try "momentum_source.c" instead of "momentum source.c".

  Reply With Quote

Old   February 25, 2006, 12:56
Default Re: why can not find udf.h?
Posts: n/a
you have to include it
  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
OpenFoam171: error /usr/bin/ld: cannot find -llduSolvers Schipper OpenFOAM Programming & Development 5 November 15, 2012 15:13
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 16:22
How to find & view location of a node in CFX? Bill CFX 2 December 6, 2005 14:18
a way to find out wall-neighboring cells? Christian FLUENT 4 May 10, 2002 08:30
Where can find airfoil data with pressure distribution or aerodynamic data Ahlo Main CFD Forum 5 January 12, 1999 23:45

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