|
[Sponsors] |
UDF library you are trying to load (libudf)... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 18, 2015, 07:10 |
UDF library you are trying to load (libudf)...
|
#1 |
New Member
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11 |
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 |
|
November 18, 2015, 09:04 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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). |
|
November 18, 2015, 13:52 |
|
#3 | |
New Member
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11 |
Quote:
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; } |
||
November 18, 2015, 14:01 |
|
#4 | |
New Member
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11 |
Quote:
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!!! |
||
November 19, 2015, 04:34 |
|
#5 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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".) |
|
November 21, 2015, 10:33 |
|
#6 | |
New Member
ehsan
Join Date: Oct 2015
Location: tehran
Posts: 26
Rep Power: 11 |
Quote:
i solved the problem. |
||
March 8, 2018, 01:57 |
|
#7 |
New Member
Join Date: Mar 2018
Posts: 1
Rep Power: 0 |
Hey I am facing a similar error. Can you tell that how did you resolve the error?
|
|
|
|
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 |