CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Fluent UDF error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2012, 17:51
Default Fluent UDF error
  #1
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 4
mila_oliv is on a distinguished road
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)


}
mila_oliv is offline   Reply With Quote

Reply

Tags
code, error, fluent, stream function, udf

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling modified applications yvyan OpenFOAM Programming & Development 18 December 17, 2011 14:39
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 18:54
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 10:38.