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

UDF problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2005, 19:56
Default UDF problem
  #1
lichun Dong
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
  Reply With Quote

Old   April 26, 2005, 14:46
Default Re: UDF problem
  #2
Zhang
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
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
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 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 00:42.