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

Parse Error:- Interpreting UDF on remote terminal

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2009, 13:35
Default Parse Error:- Interpreting UDF on remote terminal
  #1
New Member
 
Moatazbellah Mahmoud Mousa
Join Date: May 2009
Posts: 12
Rep Power: 16
moataz.che is on a distinguished road
Hello,
I am trying to interpret the following udf on a remote linux host. Everytime I try to so I got the following error:-

cpp -I"/opt/asn/apps/Fluent.Inc/fluent6.3.26/src" -I"/opt/asn/apps/Fluent.Inc/fluent6.3.26/cortex/src" -I"/opt/asn/apps/Fluent.Inc/fluent6.3.26/client/src" -I"/opt/asn/apps/Fluent.Inc/fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig-host.h>" "/home/aammmm/mass_flux.c.txt"
Error: /home/aammmm/mass_flux.c.txt: line 2: syntax error.
Error: /home/aammmm/mass_flux.c.txt: line 2: syntax error.
Error: /home/aammmm/mass_flux.c.txt: line 2: syntax error.
Error: /home/aammmm/mass_flux.c.txt: line 2: syntax error.
Error: /home/aammmm/mass_flux.c.txt: line 2: syntax error.

My UDF is:-
#include "udf.h"

DEFINE_PROFILE(mass_flux,t,i)
{
#define R 0.0489
#define B 1./7.
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 1.26*4.64*pow((1-y/R),B);
}
end_f_loop(f,t)
}


I will be so grateful for your help
moataz.che is offline   Reply With Quote

Old   March 7, 2017, 14:13
Default
  #2
New Member
 
Mike McManuc
Join Date: Nov 2016
Posts: 9
Rep Power: 9
BigMc is on a distinguished road
Hi,

I have a similar problem, just wondering did you find a solution.

Thanks
BigMc 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
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
Using Fluent with a UDF frm a remote m/c aarti FLUENT 2 September 11, 2008 19:53
UDF: parse error manu FLUENT 3 December 4, 2007 12:09
UDF parse error on line 1 ..... (Unusual) Amit Maha FLUENT 4 June 30, 2006 12:15
Parse error in udf Karthick FLUENT 6 March 30, 2004 11:35


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