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

UDF works in Windows but not on Linux?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2011, 14:15
Default UDF works in Windows but not on Linux?
  #1
New Member
 
Nuril
Join Date: Dec 2010
Posts: 17
Rep Power: 16
nha1g08 is on a distinguished road
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
nha1g08 is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 13:58.