CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Problem with UDF in Linux? (http://www.cfd-online.com/Forums/fluent/39989-problem-udf-linux.html)

Andrew March 6, 2006 18:11

Problem with UDF in Linux?
 
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.;

Rashmi March 6, 2006 23:58

Re: Problem with UDF in Linux?
 
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


Andrew March 7, 2006 16:20

Re: Problem with UDF in Linux?
 
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

yoshida March 9, 2006 02:22

Re: Problem with UDF in Linux?
 
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.

Andrew Clark March 9, 2006 13:32

Re: Problem with UDF in Linux?
 
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


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