|
[Sponsors] |
March 9, 2006, 06:47 |
problem about udf
|
#1 |
Guest
Posts: n/a
|
hi,everyone I have write a udf for the viscous resistance,but when i computer the case,i tell me that error as follows: cpp -ID:\FLUENT.INC\fluent6.2.16/client/src - UDFCONFIG_H="<udfconfig.h>" vr.c Error: vr.c: line 11: parse error. Error: vr.c: line 13: Viscous_Resistance: undeclared variable
the udf file has been given too.any advice will be appreciated. ************************************************** ********************/ /* unsteady.c */ /* UDF for specifying a transient Viscous Resistance boundary condition */ /************************************************** ********************/ #include "udf.h" #include "prop.h" DEFINE_PROPERTY(cell_Vis_Resistance, c, t,position) { { real ti = RP_Get_Real("flow-time"); real Viscous_Resistance(c,t,position)=1.0e+9 +9.9E7*ti; } return Viscous_Resistance } |
|
March 9, 2006, 07:22 |
Re: problem about udf
|
#2 |
Guest
Posts: n/a
|
cell_Vis_Resistance this ust be replaced with Viscous_Resistance
|
|
March 9, 2006, 08:56 |
Re: problem about udf
|
#3 |
Guest
Posts: n/a
|
Thanks Q a lot, I have replaced the cell_Vis_Resistance with Viscous_Resistance, but when I integrated the udf the fluent tell warring me that: cpp -ID:\FLUENT.INC\fluent6.2.16/src UDFCONFIG_H="<udfconfig.h>" vr.c Error: vr.c: line 11: parse error. Error: vr.c: line 13: function returning float returns function returning float.
|
|
March 9, 2006, 09:11 |
Re: problem about udf
|
#4 |
Guest
Posts: n/a
|
Thanks Q a lot, I have replaced the cell_Vis_Resistance with Viscous_Resistance, but when I integrated the udf the fluent tell warring me that: cpp -ID:\FLUENT.INC\fluent6.2.16/src UDFCONFIG_H="<udfconfig.h>" vr.c Error: vr.c: line 11: parse error. Error: vr.c: line 13: function returning float returns function returning float.
|
|
|
|
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 07:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 01:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 10:58 |