CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 25, 2005, 19:56
Default UDF problem
lichun Dong
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"



face_t f;



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
  Reply With Quote

Old   April 26, 2005, 14:46
Default Re: UDF problem
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.

  Reply With Quote


Thread Tools
Display Modes

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 On
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 October 18, 2017 07:17
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58

All times are GMT -4. The time now is 16:40.