|
[Sponsors] |
February 26, 2005, 02:41 |
what's wrong with the UDF
|
#1 |
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! |
|
February 26, 2005, 07:29 |
Re: what's wrong with the UDF
|
#2 |
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 |
|
February 26, 2005, 11:39 |
Re: what's wrong with the UDF
|
#3 |
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)
|
|
February 27, 2005, 10:35 |
Re: what's wrong with the UDF
|
#4 |
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.
|
|
February 28, 2005, 13:23 |
Re: what's wrong with the UDF
|
#5 |
Guest
Posts: n/a
|
Hey the program should run since its working for me. Y
|
|
March 2, 2005, 10:32 |
Re: what's wrong with the UDF
|
#6 |
Guest
Posts: n/a
|
Dear Y, I want to know if this program can be interpreted successfully in your fluent case. Thanks for responsing!
|
|
March 3, 2005, 07:39 |
Re: what's wrong with the UDF
|
#7 |
Guest
Posts: n/a
|
I have done this problem. Thanks for each responsing!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |
UDF error CG Motion | Alex | FLUENT | 0 | March 22, 2006 18:40 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |