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

what's wrong with the UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2005, 01:41
Default what's wrong with the UDF
  #1
major
Guest
 
Posts: n/a
hello, everyone, my UDF is as follow:

include "udf.h" DEFINE_PROPERTY(cell_diffusion_coefficent,c,t) { real ud; real rho=C_R(c,t); real mu=C_MU_EFF(c,t); ud=mu/rho; return ud; }

when i interpreted it in fluent 6.1.22,the folowing error messages are given:

DUDFCONFIG_H="<udfconfig.h>" E:\user CFD\diffusion coefficient. cError: E:\user CFD\diffusion coefficient.c: line 1: parse error.

thanks in advance for any help!
  Reply With Quote

Old   February 26, 2005, 06:29
Default Re: what's wrong with the UDF
  #2
Y
Guest
 
Posts: n/a
You made very simple mistake you did not put # sign before your include "udf.h".

it should be like this #include "udf.h"

Y
  Reply With Quote

Old   February 26, 2005, 10:39
Default Re: what's wrong with the UDF
  #3
Bikash
Guest
 
Posts: n/a
may be your ###.c file is not in the same location as is your cas file. or your ###.c file should be in the same folder where you read your .msh file.(if you just opened your.msh file)
  Reply With Quote

Old   February 27, 2005, 09:35
Default Re: what's wrong with the UDF
  #4
major
Guest
 
Posts: n/a
thanks for help! I'm sorry for missing the "#" in the forum, but there is "#" in my UDF when I interpreted it to FLUENT. My ***.c file and my case file are under the same directory. There's no mesh file under the directory. I'll try to put them in the same folder and intertpret it again.
  Reply With Quote

Old   February 28, 2005, 12:23
Default Re: what's wrong with the UDF
  #5
Y
Guest
 
Posts: n/a
Hey the program should run since its working for me. Y
  Reply With Quote

Old   March 2, 2005, 09:32
Default Re: what's wrong with the UDF
  #6
major
Guest
 
Posts: n/a
Dear Y, I want to know if this program can be interpreted successfully in your fluent case. Thanks for responsing!
  Reply With Quote

Old   March 3, 2005, 06:39
Default Re: what's wrong with the UDF
  #7
major
Guest
 
Posts: n/a
I have done this problem. Thanks for each responsing!
  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
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
UDF error CG Motion Alex FLUENT 0 March 22, 2006 17:40
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03


All times are GMT -4. The time now is 23:30.