CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Fluent UDF error (http://www.cfd-online.com/Forums/fluent-udf/104978-fluent-udf-error.html)

mila_oliv July 19, 2012 17:51

Fluent UDF error
 
Hi,

i'm new at udf and everytime i try to compile my udf, after press build button, i receive this message:

The UDF library you are trying to load (C:\Users\mila.oliv\Desktop\Testes UDF\UDF_files\dp0\FFF\Fluent\libudf) is not compiled for 2ddp on the curent platform (win64).
The system could not find specific file.
C:\Users\mila.oliv\Desktop\Testes UDF\UDF_files\dp0\FFF\Fluent\C:\Users\mila.oliv\De sktop\Testes UDF\UDF_files\dp0\FFF\Fluent\libudf\win64\2ddp\lib udf.dll

I'm trying to do a udf that shows stream functions and see if my results match fluent's results. Here is my code:

Quote:

#include "udf.h"
#include "mem.h"


DEFINE_EXECUTE_AT_EXIT(funcaocorrente)
{

real NV_VEC(psi); /* stream function*/
real NV_VEC(u); /* velocity x*/
real NV_VEC(vxdy); /* velocity x times distance between nodes*/
int i, j, deltax, m, n;
cell_t c;
Thread *t;
Thread *tc;

i=1;
j=1;


/* boundary conditions*/
psi[i][1]=0;
psi[i][n]=0;
psi[1][j]=0;
psi[n][j]=0;
/*boundary conditions*/


n=C_NNODES(c,t); /* nodes in the mesh*/
m=(n^0.5)-1; /* mesh divisions: m X m */
deltax=1/m; /* distance between nodes*/
NV_D(u,=,C_U(c,t)); /* u as Vx (in a cell) */
vxdy=NV_S(u,*=,deltax);


begin_c_loop(c,tc)
{

psi+=vxdy;

}end_c_loop(c,tc)


}


All times are GMT -4. The time now is 03:29.