CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF parse error at profile function line

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2009, 15:10
Default UDF parse error at profile function line
New Member
Join Date: Jul 2009
Posts: 2
Rep Power: 0
Wiggy is on a distinguished road
Hi, i am relatively new to UDF
below is my UDF file,

/************************************************** ********************
UDF for specifying a steady-state velocity profile boundary condition
************************************************** ********************/
#include "udf.h" /* must be at the beginning of every UDF you write */
real y[ND_ND]; /* this will hold the position vector */
real x;
face_t f;
begin_f_loop(f,thread) /* loops over all faces in the thread passed
in the DEFINE macro argument */
x = y[0];
F_PROFILE(f,thread,index) = 400.351. + 300.*x;

When i interpret my UDF file, it says parse error at the profile function file F_PROFILE(f,thread,index) = 400.351. + x*300.;
But when i remove the decimal values of 400.351 to 400, it has no problem interpreting it.

Is there any other methods or tips that enable me to include decimal values inside the profile function?

Thx a bunch

Last edited by Wiggy; July 21, 2009 at 15:28.
Wiggy is offline   Reply With Quote

Old   July 27, 2009, 15:59
Senior Member
Join Date: Mar 2009
Location: Canada
Posts: 156
Rep Power: 17
Micael is on a distinguished road
Did you try this:
F_PROFILE(f,thread,index) = 400.351 + 300.*x;
instead of this:?
F_PROFILE(f,thread,index) = 400.351. + 300.*x;

There are two decimal points here: "400.351." The second one is inappropriate.
Micael is offline   Reply With Quote


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
UDF profile function of iteration nando83 FLUENT 0 July 9, 2009 11:19
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
errors Fahad Main CFD Forum 0 March 23, 2004 13:20
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16

All times are GMT -4. The time now is 21:17.