|
[Sponsors] |
February 23, 2006, 22:55 |
why can not find udf.h?
|
#1 |
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! |
|
February 24, 2006, 03:58 |
Re: why can not find udf.h?
|
#2 |
Guest
Posts: n/a
|
Dont use spaces in the name of your source file. Try "momentum_source.c" instead of "momentum source.c".
RoM |
|
February 25, 2006, 11:56 |
Re: why can not find udf.h?
|
#3 |
Guest
Posts: n/a
|
you have to include it
|
|
|
|
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 |