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

UDF library you are trying to load (libudf)...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2015, 07:10
Default UDF library you are trying to load (libudf)...
  #1
New Member
 
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11
ehsan105 is on a distinguished road
hi
What is the cause of the error?


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

C:\Users\Ehsan\libudf\win64\3d\libudf.dll


I was wondering if you could help me do that. please guid me
ehsan105 is offline   Reply With Quote

Old   November 18, 2015, 09:04
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Usually Fluent gives really cryptic errors. But sometimes Fluent is really clear. This is one of the clear cases:

Code:
The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).
You are trying to load a UDF which is not compiled. Either you forgot to compile, or you tried to compile it and it failed, but you didn't notice the errors showing on your screen.
pakk is offline   Reply With Quote

Old   November 18, 2015, 13:52
Default
  #3
New Member
 
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11
ehsan105 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Usually Fluent gives really cryptic errors. But sometimes Fluent is really clear. This is one of the clear cases:

Code:
The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).
You are trying to load a UDF which is not compiled. Either you forgot to compile, or you tried to compile it and it failed, but you didn't notice the errors showing on your screen.
hi
Thank you for your response
i tried to interpret this udf, but Again the error is as follows:
Error: C:\Users\Ehsan\Desktop\case DPM\DPM_BC.c: line 36: structure reference not implemented

/* reflect boundary condition for inert particles */
#include "udf.h"
DEFINE_DPM_BC(bc_reflect,p,t,f,f_normal,dim)
{
real alpha; /* angle of particle path with face normal */
real vn=0.;
real nor_coeff = 1.;
real tan_coeff = 0.3;
real normal[3];
int i, idim = dim;
real NV_VEC(x);
#if RP_2D
/* dim is always 2 in 2D compilation. Need special treatment for 2d
axisymmetric and swirl flows */
if (rp_axi_swirl)
{
real R = sqrt(P_POS(p)[1]*P_POS(p)[1] +
P_POS(p)[2]*P_POS(p)[2]);
if (R > 1.e-20)
{
idim = 3;
normal[0] = f_normal[0];
normal[1] = (f_normal[1]*P_POS(p)[1])/R;
normal[2] = (f_normal[1]*P_POS(p)[2])/R;
}
else
{
for (i=0; i<idim; i++)
normal[i] = f_normal[i];
}
}
else
#endif
for (i=0; i<idim; i++)
normal[i] = f_normal[i];
if(p->type==DPM_TYPE_INERT)
{

alpha = M_PI/2. - acos(MAX(-1.,MIN(1.,NV_DOT(normal,P_VEL(p))/
MAX(NV_MAG(P_VEL(p)),DPM_SMALL))));
if ((NNULLP(t)) && (THREAD_TYPE(t) == THREAD_F_WALL))
F_CENTROID(x,f,t);
/* calculate the normal component, rescale its magnitude by
the coefficient of restitution and subtract the change */
/* Compute normal velocity. */
for(i=0; i<idim; i++)
vn += P_VEL(p)[i]*normal[i];
/* Subtract off normal velocity. */
for(i=0; i<idim; i++)
P_VEL(p)[i] -= vn*normal[i];
/* Apply tangential coefficient of restitution. */
for(i=0; i<idim; i++)
P_VEL(p)[i] *= tan_coeff;
/* Add reflected normal velocity. */
for(i=0; i<idim; i++)
P_VEL(p)[i] -= nor_coeff*vn*normal[i];
/* Store new velocity in P_VEL0 of particle */
for(i=0; i<idim; i++)
P_VEL0(p)[i] = P_VEL(p)[i];
return PATH_ACTIVE;
}
return PATH_ABORT;
}
ehsan105 is offline   Reply With Quote

Old   November 18, 2015, 14:01
Default
  #4
New Member
 
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11
ehsan105 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Usually Fluent gives really cryptic errors. But sometimes Fluent is really clear. This is one of the clear cases:

Code:
The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).
You are trying to load a UDF which is not compiled. Either you forgot to compile, or you tried to compile it and it failed, but you didn't notice the errors showing on your screen.

in 2d

error:
Error: C:\Users\Ehsan\Desktop\case DPM\DPM_BC.c: line 17: P_POS: undeclared variable
#f

this code for fluent help!!!
ehsan105 is offline   Reply With Quote

Old   November 19, 2015, 04:34
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Now you are interpreting, but first you were compiling...

Show the error you get when you compile!

(And don't use spaces in your folder names, that confuses Fluent. So not "C:\Users\Ehsan\Desktop\case DPM", but for example "C:\Users\Ehsan\Desktop\case_DPM".)
pakk is offline   Reply With Quote

Old   November 21, 2015, 10:33
Default
  #6
New Member
 
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11
ehsan105 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Now you are interpreting, but first you were compiling...

Show the error you get when you compile!

(And don't use spaces in your folder names, that confuses Fluent. So not "C:\Users\Ehsan\Desktop\case DPM", but for example "C:\Users\Ehsan\Desktop\case_DPM".)
tank you very much
i solved the problem.
ehsan105 is offline   Reply With Quote

Old   March 8, 2018, 01:57
Default
  #7
New Member
 
Join Date: Mar 2018
Posts: 1
Rep Power: 0
Hk96 is on a distinguished road
Hey I am facing a similar error. Can you tell that how did you resolve the error?
Hk96 is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
load libudf problem alfred Fluent UDF and Scheme Programming 24 November 1, 2013 00:53
How to call FORTRAN files as UDF? Ehsan-F Fluent UDF and Scheme Programming 6 September 11, 2012 12:03
Parralel procesing: udf library does not load. Filankes FLUENT 0 March 6, 2011 10:55
Error in opening the UDF library Sri FLUENT 3 December 11, 2006 17:19


All times are GMT -4. The time now is 23:25.