CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   compiled udf functions at fluent 15 win 8 64 bit (https://www.cfd-online.com/Forums/fluent-udf/128955-compiled-udf-functions-fluent-15-win-8-64-bit.html)

hillat January 24, 2014 16:35

compiled udf functions at fluent 15 win 8 64 bit
 
when I am trying to compiled it's return error 139.

pakk January 25, 2014 05:35

That obviously means that there is a mistake in your udf.

hillat January 25, 2014 07:08

it's written my the follwing message
 
Code:


The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).
The system cannot find the file specified.


my udf code is

Code:


#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1]/0.01;
F_PROFILE(f, thread, position) = 0.219*(-y*y+y);
}
end_f_loop(f, thread)
}



All times are GMT -4. The time now is 06:02.