CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   pressure profile UDF dosent compile (https://www.cfd-online.com/Forums/fluent/134745-pressure-profile-udf-dosent-compile.html)

udifi May 5, 2014 05:30

pressure profile UDF dosent compile
 
Hi
I tried to compile the example from the fluent help

UDF for specifying steady-state parabolic pressure profile boundary
profile for a turbine vane
************************************************** **********************/

#include "udf.h"

DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 1.1e5 - y*y/(.0745*.0745)*0.1e5;
}
end_f_loop(f,t)
}

and it gave me this messag:

Copied d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\selfy.c to d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf\src
udf_names.c and user_nt.udf files in 2d are upto date.
(system "copy "C:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0.0\sr c\makefile_nt.udf "d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf\win64\2d\mak efile" ")
1 file(s) copied.
(chdir "d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf")(chdir "win64\2d")udf_names.c
udf_names.c(7) : error C2059: syntax error : '}'
udf_names.c(8) : warning C4034: sizeof returns 0

dose some one know why?


All times are GMT -4. The time now is 09:01.