|
[Sponsors] |
August 22, 2007, 04:33 |
UDF problem
|
#1 |
Guest
Posts: n/a
|
I have overcome a problem for the UDF where i have write a simple C program as shown below:
#include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 15.+(5.*sin(351.9*t)); } end_f_loop(f, thread) } However, it shows parse error at the 1st line, which i cannot solve the problem. Somebody can please help me?? |
|
August 22, 2007, 04:41 |
Re: UDF problem
|
#2 |
Guest
Posts: n/a
|
do you interpret or compile it?
|
|
August 22, 2007, 05:44 |
Re: UDF problem
|
#3 |
Guest
Posts: n/a
|
I interpret it. i do follow the example from fluent tutorial and dont know why got parse error.
|
|
August 22, 2007, 06:01 |
Re: UDF problem
|
#4 |
Guest
Posts: n/a
|
if you use browse to identify the location of your file, you musn't do that. you have to do exactly like fluent example.
|
|
August 22, 2007, 16:17 |
Re: UDF problem
|
#5 |
Guest
Posts: n/a
|
Yeah, for instance...
If your UDF file is in the same directory as your case file and named "example.c", then type just "example.c" in the source file name, not the entire path of the location of the file as the manual suggests. That should work. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |