|
[Sponsors] |
April 25, 2005, 20:56 |
UDF problem
|
#1 |
Guest
Posts: n/a
|
Dear all:
I am new in using UDF and need your help. I am running FLUENT using the worstation of my university through a X-window server. Do I have to do something to move the "udf.h" to my directory, or I have to save my UDF to somewhere? The followed is my udf code, please help me check if it has mistakes. when I interpret it, it always shows a mistake on the second line. If it has no mistake, I think probally I need to do sth. about the path of the UNIX system. #include "udf.h" DEFINE_PROFILE(pressure_out,t,i) { face_t f; begin_f_loop(f,t) { real timep = RP_Get_Real("flow-time"); F_PROFILE(f,t,i) = 101325*(0.12*sin(2200*timep) + 0.7369); } end_f_loop(f,t); } thanks a lot dong |
|
April 26, 2005, 15:46 |
Re: UDF problem
|
#2 |
Guest
Posts: n/a
|
I think there is something to do with the PATH like you mentioned. If Fluent can not find udf.h, it does not know what face_t is. It's just my guess. I don't have any experience about running UNIX. In my case (Windows XP, Fluent 6.1.22) the environmental variable PATH is automatically set up for running UDF.
Zhang |
|
|
|
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 |