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

error: line 1 parse error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 28, 2004, 02:49
Default error: line 1 parse error
  #1
Arky
Guest
 
Posts: n/a
I'm trying to pass the Interpreted UDF to Fluent 6.1. But the progrma generates the following messgae: line 1 parse error. Even when I'm trying to interpret HelloWorld UDF. Can anybody help me?
  Reply With Quote

Old   April 28, 2004, 03:42
Default Re: error: line 1 parse error
  #2
thomas
Guest
 
Posts: n/a
post your UDF !
  Reply With Quote

Old   April 28, 2004, 06:02
Default Re: error: line 1 parse error
  #3
Arky
Guest
 
Posts: n/a
I was trying to interpret the following example code (which is in documentation). Still no result...

#include "udf.h" /* must be at the beginning of every UDF you write */

DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f;

begin_f_loop(f, thread) /* loops over all faces in the thread passed

in the DEFINE macro argument */

{

F_CENTROID(x,f,thread);

y = x[1];

F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.0745)*20.;

} end_f_loop(f, thread) }
  Reply With Quote

Old   April 28, 2004, 08:18
Default Re: error: line 1 parse error
  #4
thomas
Guest
 
Posts: n/a
For me it compiled and interpret well. Check your compiler.
  Reply With Quote

Old   April 28, 2004, 09:10
Default Re: error: line 1 parse error
  #5
Karthick
Guest
 
Posts: n/a
Dear Arky

U check whether the udf file is in same folder as the case file u are running. What I have done is, first I've kept the same udf which u posted in my desktop and interpreted. It showed parse error.

Then I transferred to the case file folder and run the same udf. It interpreted well.

If u have still problems, write to me.

Regards Karthick
  Reply With Quote

Old   April 29, 2004, 03:57
Default Re: error: line 1 parse error
  #6
Arky
Guest
 
Posts: n/a
The UDF is in the folder that contains .cas and .dat files. I even tried to place the UDF source file, .cas and .dat files into ..\ntbin\ntx86, and still the same error. I suppose that something wrong with paths to some files, but I dont know exactly to which ones.
  Reply With Quote

Old   April 29, 2004, 04:39
Default Re: error: line 1 parse error
  #7
Karthick
Guest
 
Posts: n/a
Dear Arky

Don't worry, it will not be a problem with ur udf. May be there may be a problem with ur path. I'll send u file helps to u set the path correctly to ur personal id.

Check it and then tell

Regards Karthick
  Reply With Quote

Old   April 30, 2004, 05:34
Default Re: error: line 1 parse error
  #8
Arky
Guest
 
Posts: n/a
Thanx a lot! i've installed MS VC and everything is working properly! Thanks again.
  Reply With Quote

Old   May 6, 2004, 05:44
Default Re: error: line 1 parse error
  #9
Barry
Guest
 
Posts: n/a
In windows you can fix the problem by simply launching fluent from the directory where your UDF and case files are, by typing fluent xxx (e.d 2dddp etc) on the dos prompt
  Reply With Quote

Reply

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
Native ParaView Reader Bugs tj22 OpenFOAM Paraview & paraFoam 266 July 1, 2015 02:00
nonNewtonian viscosity model mhassani OpenFOAM Programming & Development 5 January 7, 2013 10:27
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 12:08.