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

problem about udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2006, 06:47
Default problem about udf
  #1
lihx
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 }
  Reply With Quote

Old   March 9, 2006, 07:22
Default Re: problem about udf
  #2
Q
Guest
 
Posts: n/a
cell_Vis_Resistance this ust be replaced with Viscous_Resistance
  Reply With Quote

Old   March 9, 2006, 08:56
Default Re: problem about udf
  #3
lihx
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.

  Reply With Quote

Old   March 9, 2006, 09:11
Default Re: problem about udf
  #4
lihx
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.

  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
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


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