|
[Sponsors] |
March 6, 2006, 18:11 |
Problem with UDF in Linux?
|
#1 |
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.; |
|
March 6, 2006, 23:58 |
Re: Problem with UDF in Linux?
|
#2 |
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 |
|
March 7, 2006, 16:20 |
Re: Problem with UDF in Linux?
|
#3 |
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 |
|
March 9, 2006, 02:22 |
Re: Problem with UDF in Linux?
|
#4 |
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. |
|
March 9, 2006, 13:32 |
Re: Problem with UDF in Linux?
|
#5 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
UDF using problem, error happens-heip!! | Michael | FLUENT | 1 | December 9, 2008 08:51 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08: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 |