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

why can not find udf.h?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2006, 22:55
Default why can not find udf.h?
  #1
wanghong
Guest
 
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)

.local.int index (r1)

0 .local.end

0 save

.local.pointer x (r3)

1 begin.data 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?

Thanks!

  Reply With Quote

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

RoM
  Reply With Quote

Old   February 25, 2006, 11:56
Default Re: why can not find udf.h?
  #3
A
Guest
 
Posts: n/a
you have to include it
  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
OpenFoam171: error /usr/bin/ld: cannot find -llduSolvers Schipper OpenFOAM Programming & Development 9 August 26, 2020 05:31
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 13: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 22:45


All times are GMT -4. The time now is 12:24.