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

UDF Interpreting Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2010, 23:42
Default UDF Interpreting Error
  #1
New Member
 
Jiang Wen
Join Date: May 2010
Posts: 1
Rep Power: 0
stephen is on a distinguished road
Hi,

I am new Fluent user, I am facing problem while intepreting my C file.

Error: C:\Users\Stephen\Desktop\UDF Trial\udfexample.c: line 1: parse error.

#include "udf.h"
DEFINE_PROFILE(x_vel,thread,index)
{
real x[ND_ND];
real y;
face_t f;

begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
y=x[1];
F_PROFILE(f,thread,index)=y*y;
}
end_f_loop(f,thread)
}


Can someone help me up for this problem? Thanks a lot.
stephen is offline   Reply With Quote

Old   May 8, 2010, 02:10
Default
  #2
New Member
 
Sowmya K
Join Date: Nov 2009
Posts: 22
Rep Power: 17
skris2009 is on a distinguished road
Fluent has given me this error on many occasions. You could try and remove spaces in file path names (UDF Trial to UDFTrial). Hope it helps.
skris2009 is offline   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
Compile calcMassFlowC aurore OpenFOAM Programming & Development 13 March 23, 2018 08:43
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 06:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 20:23.