|
[Sponsors] |
April 9, 2011, 14:15 |
UDF works in Windows but not on Linux?
|
#1 |
New Member
Nuril
Join Date: Dec 2010
Posts: 17
Rep Power: 16 |
Hello here is a udf I am using for Fluent for the velocity inlet.
#include "udf.h" DEFINE_PROFILE(velocity_magnitude, t, i) { real velocity; real the_current_time; face_t f; the_current_time = CURRENT_TIME; if (the_current_time<1) { velocity=0.01; } if (the_current_time>=1) { velocity=0; } begin_f_loop(f,t) { F_PROFILE(f,t,i) = velocity; } end_f_loop(f,t) } I dont understand why it does not work on Linux I get an error saying SYNTAX ERROR ON LINE 2, but i dont have anything written on line 2? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF error from Windows to Linux | manu | FLUENT | 3 | January 10, 2008 05:02 |
compatibility problem of UDF on LINUX | manu | FLUENT | 4 | December 19, 2007 05:58 |
removing of linux and keeping windows | Anja | Main CFD Forum | 4 | August 23, 2006 08:01 |
UDF works in 2D but not in 3D? Suggestions? | Brian | FLUENT | 7 | March 15, 2006 03:29 |
Windows EXE file and Linux | MING | Main CFD Forum | 4 | October 22, 2004 06:31 |