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

Problem with UDF in Linux?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 6, 2006, 18:11
Default Problem with UDF in Linux?
  #1
Andrew
Guest
 
Posts: n/a
I wrote a short and simple UDF for Fluent Windows XP, which works in both serial and parallel processing.

However when I take this simulation into Linux, I keep getting the following error:

Error: /home/fluentuser/UDF.c: line 2: Syntax Error

I run fluent from the /home/fluentuser directory and that is where my cas/data is stored.

By the way, the system has recently had a fresh install so all it has on is Redhat and Fluent 6.2.16

Can anyone help me solve the problem,

Thank you

Andrew

P.S. The code is intepreted and reads as follows:

#include "udf.h"

DEFINE_SDOF_PROPERTIES(store, prop, dt, time, dtime) {

/* Define the mass matrix */

prop[SDOF_MASS] = 5000.;

prop[SDOF_IZZ] = 5000.;
  Reply With Quote

Old   March 6, 2006, 23:58
Default Re: Problem with UDF in Linux?
  #2
Rashmi
Guest
 
Posts: n/a
hi

is the program written in windows initially and then the same file u r using in linux then u will get error. pls retype ur udf in linux and then try. hope it works i had the same problem.

thanks

  Reply With Quote

Old   March 7, 2006, 16:20
Default Re: Problem with UDF in Linux?
  #3
Andrew
Guest
 
Posts: n/a
Thank you for the suggestion. I changed the format from Dos to UNIX already, and also tried typing it out again in Linux and the same messages.

Andrew
  Reply With Quote

Old   March 9, 2006, 02:22
Default Re: Problem with UDF in Linux?
  #4
yoshida
Guest
 
Posts: n/a
In my system ( although it is WinXP + Fluent 6.2), the bracket must be specified in a new line like following.

DEFINE_SDOF_PROPERTIES(store, prop, dt, time, dtime) {

Please try.
  Reply With Quote

Old   March 9, 2006, 13:32
Default Re: Problem with UDF in Linux?
  #5
Andrew Clark
Guest
 
Posts: n/a
Thank you everybody. The environments where incorrectly setup when Fluent was installed, so for some strange reason it wouldn't find the UDF even though I started Fluent from the location where the UDF was located.

Thanks again,

Andrew
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 08:51
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF PROBLEM anant FLUENT 2 January 17, 2007 01:15
I have problem of UDF with turbulent premx source. Z FLUENT 0 February 16, 2005 04:34


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