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

Parse error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2006, 07:10
Default Parse error
  #1
Fernando
Guest
 
Posts: n/a
Hi. I'm trying to interpret a UDF in Fluent 6.2, but I get an error message:

"cpp -IC:\Fluent.Inc\fluent6.2.16/src -IC:\Fluent.Inc\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Fluent.Inc\Ejemplos Fluent\pexit.c Error: C:\Fluent.Inc\Ejemplos Fluent\pexit.c: line 1: parse error."

If i use the Contributed CPP option, the error message is the same:

"C:\Fluent.Inc tbin tx86\cpp.exe -IC:\Fluent.Inc\fluent6.2.16/src -IC:\Fluent.Inc\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Fluent.Inc\Ejemplos Fluent\pexit.c Error: C:\Fluent.Inc\Ejemplos Fluent\pexit.c: line 1: parse error."

The UDF I'm trying to interpret is the following (it comes from the Fluent tutorials):

#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position) {

float t, pressure;

face_t f;

t = RP_Get_Real("flow-time");

pressure = (0.12*sin(2200*t)+0.737)*101325.0;

begin_f_loop(f, thread) {

F_PROFILE(f, thread, position) = pressure;

}

end_f_loop(f, thread) }

I've been reading all the posts about this same problem, but I haven't found a solution. The UDF is in the same folder as the case files, but I always get the same error. Can anybody help me?
  Reply With Quote

Old   January 21, 2006, 08:57
Default Re: Parse error
  #2
lcw
Guest
 
Posts: n/a
Advise you to delete space in the name of current folder. Lucky!

LCW
  Reply With Quote

Old   January 21, 2006, 12:55
Default Re: Parse error
  #3
Fernando
Guest
 
Posts: n/a
Uf, thanks very much, LCW, I was becoming crazy!

Fer
  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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
nonNewtonian viscosity model mhassani OpenFOAM Programming & Development 5 January 7, 2013 09: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 20:11
user defined function cfduser CFX 0 April 29, 2006 10:58


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