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

UDF problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2007, 04:33
Default UDF problem
  #1
david
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??
  Reply With Quote

Old   August 22, 2007, 04:41
Default Re: UDF problem
  #2
majd
Guest
 
Posts: n/a
do you interpret or compile it?
  Reply With Quote

Old   August 22, 2007, 05:44
Default Re: UDF problem
  #3
david
Guest
 
Posts: n/a
I interpret it. i do follow the example from fluent tutorial and dont know why got parse error.
  Reply With Quote

Old   August 22, 2007, 06:01
Default Re: UDF problem
  #4
majd
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.
  Reply With Quote

Old   August 22, 2007, 16:17
Default Re: UDF problem
  #5
Dylan
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.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 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


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