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

Fluent 6.3.26 on Linux does not compile an UDF

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

LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2013, 04:58
Default Fluent 6.3.26 on Linux does not compile an UDF
New Member
Join Date: Nov 2013
Posts: 14
Rep Power: 12
Entwistle is on a distinguished road
Hello to everybody;

I have a problem when I try to interpret a very basic UDF (a velocity inlet boudary condition) in Fluent 6.3.26. When I press the "compile" button, fluent show me the next message:

cpp -I"/usr/Fluent.Inc/fluent6.3.26/src" -I"/usr/Fluent.Inc/fluent6.3.26/cortex/src" -I"/usr/Fluent.Inc/fluent6.3.26/client/src" -I"/usr/Fluent.Inc/fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "here is the path of my UDF"

Error: PATH OF MY UDF: line 1: syntax error.

cpp: output pipe has been closed

my .c file is this (as you can see it is very simple:
#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)


real x[ND_ND];

real z; /* Z siempre tiene que ser la coordenada vertical */

face_t f;

begin_f_loop(f, thread)



z = x[2];

F_PROFILE(f, thread, position) = 0.567*z;


end_f_loop(f, thread)

Well, this happens in Fluent 6.3.26, that is installed on a linux server. I try to compile both, in serial mode and in parallel mode; and it fails in both.

Instead of this, when I try to compile in my W7 (64) workstation, there is no problem and it runs correctly.

Someone could help me, please?

Thank you very much.
Entwistle is offline   Reply With Quote

Old   March 4, 2014, 14:49
Senior Member
Join Date: Feb 2010
Location: Shiraz, Iran
Posts: 108
Rep Power: 16
m2montazari is on a distinguished road
the problem is with line endings. in windows the line ending character is different from *nix systems.
so convert line endings with a program like geany or in your linux, delete the line endings to have ONE-line text and then press enter at appropriate locations to have correct form of file.
m2montazari is offline   Reply With Quote


interpreted udf, linux server, problem

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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 09:07
Linux Fluent HPC parallel system check failed saad3000 FLUENT 1 January 8, 2021 03:34
UDF in Fluent Andrew Fluent UDF and Scheme Programming 5 March 7, 2016 03:38
Fluent 6.3.26 vs 12.1 and partition method Anorky FLUENT 0 April 27, 2010 10:55
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 03:07

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