CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF works in Windows but not on Linux? (https://www.cfd-online.com/Forums/fluent/87029-udf-works-windows-but-not-linux.html)

nha1g08 April 9, 2011 13:15

UDF works in Windows but not on Linux?
 
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


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