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

libudf error: undefined symbol:

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2009, 19:16
Default libudf error: undefined symbol:
  #1
Prashanth
Guest
 
Posts: n/a
I am compiling an UDF for a particle deposition study. I am getting the following error though my UDF gets compiled with just a few warnings and no error.

Opening library "libudf"...Error: libudf/lnamd64/3d_host/libudf.so: undefined symbol: dpm_scalupError: libudf/lnamd64/3d_node/libudf.so: undefined symbol: dpm_scalupError:

Primitive Error at Node 0: open_udf_library: no error /nfs/14/osu5206/.bashrc: line 1: module: command not found

I am posting my UDF below. Please let me know if Im missing something. The same UDF was compiling perfectly and the library was also loading yesterday. I just changed some parts of my code to comments and now Im having this problem.

#include "udf.h" #include "dpm.h" #define nu_s 0.27 #define nu_p 0.27 #define YMIN 0.0 #define YMAX 0.4 #define UMEAN 1.0 #define B 1./7. #define DELOVRH 0.5 #define VISC 1.7894e-05 #define RGAS (UNIVERSAL_GAS_CONSTANT/MW) #define Tdatum 288.15

/*Domain *domain; /*Get domain pointer and assign later to domain*/ /*int UDM_checked = 0; /*availability of UDMLs checked*/ /*void reset_UDM_s(void);

DEFINE_DPM_BC(deposition_bc, p, thread, f, f_normal, dim) { real crit_vel,alpha,Tavg,Ep,vcr; real norm_coeff=1.; real tang_coeff=1.; real vn=0.; real R=287.; Thread *t; real normal[3]; int i,idim=dim; real Cu,cbar,lamda,kn; real Wa = 0.039; real x[ND_ND];

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->state.V)/ MAX(NV_MAG(p->state.V),DPM_SMALL))));

if ((NNULLP(t)) && (THREAD_TYPE(t) == THREAD_F_WALL))

F_CENTROID(x,f,t);

/*computing normal velocity*/

for(i=0.;i<idim;i++)

vn += p->state.V[i]*normal[i];

/*computing critical velocity*/

Tavg = (F_T(f,t)+P_T(p))/2.;

Ep = (3.*(pow(10.,20.)))*exp(-0.02365*Tavg);

vcr = pow(((2.*Ep)/P_DIAM(p)),(10./7.));

int cntr=0.;

/*particle continues its path - no sticking*/

if (vn > vcr)

return PATH_ACTIVE;

else

{

F_UDMI(f,t,0) += P_MASS(p); /*mass of particles deposited*/

F_UDMI(f,t,1) += 1.; /* No. of particles deposited*/

return PATH_ABORT;

}

/* DEFINE_ON_DEMAND(reset_UDM) { domain = Get_Domain(1); reset_UDM_s(); }

*/

  Reply With Quote

Old   February 20, 2009, 07:50
Default Re: libudf error: undefined symbol:
  #2
mange
Guest
 
Posts: n/a
it seems you do not have matching /* */ . try to remove that first comment line.

/m
  Reply With Quote

Old   February 20, 2009, 09:59
Default Re: libudf error solved - SEGMENTATION ERROR now
  #3
Prashanth
Guest
 
Posts: n/a
Hi

Thanks for the reply. I did take out all my comments and try the code as it is. It compiled perfectly without any error but when I run the case with my UDF as my wall boundary condition, I get a new error as follows:

Stack backtrace generated at node 1. Report bug to administrator. Process violation at node 1: Segmentation error

How do I get around this error?

  Reply With Quote

Old   February 20, 2009, 10:08
Default Re: libudf error solved - SEGMENTATION ERROR now
  #4
mange
Guest
 
Posts: n/a
if you run in parallel you need to put

#if !RP_HOST #endif

around your code. because the host process does not have access to the data.

/M
  Reply With Quote

Old   February 24, 2009, 19:04
Default Re: libudf error solved - SEGMENTATION ERROR now
  #5
Prashanth
Guest
 
Posts: n/a
Hi

I included the above mentioned commands in my code. Now I'm getting the same SEGMENTATION ERROR with additional message before it as below:

Stack Backtrace Generated at node ... of process id.. Please include this information about the bug when you contact administrator.

What does this mean? I'm really at a dead end right now as I have checked and re-checked my UDF and it seems to be right. Please let me know your thoughts. I can send you my UDF if that would help.
  Reply With Quote

Old   July 28, 2010, 07:03
Default a way out of this problem
  #6
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 15
almostafa67 is on a distinguished road
if u have some errors in ur udf,FLUENT will show this error,I used FLUENT 6.3 to compile my udf but i faced this error,And i could not get rid of this error till i used ansys 12.0 and ansys showed me that i had some syntax error in my udf, i corrected them then compiled udf,and eventually thank GOD it compiled without any error.
almostafa67 is offline   Reply With Quote

Old   August 22, 2019, 00:24
Default
  #7
New Member
 
Join Date: Aug 2019
Posts: 6
Rep Power: 6
Allen_ayt is on a distinguished road
Hi!


I also came across the same problem, so how did you solve the 'undefined symbol' problem in parallel condition?


Thanks!
Allen_ayt 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
OpenFOAM 15 libreadlineso5 undefined symbol PC frafridr OpenFOAM Installation 0 February 3, 2009 19:37
Error with posdat.f - undefined symbol: for_open Emmanuel Resch Siemens 2 August 20, 2007 15:46
Symbol lookup error in 14 that was not present in 13 adona058 OpenFOAM Bugs 1 July 25, 2007 16:04
undefined symbol Dario Nexus FLUENT 0 October 12, 2006 07:54
error setting up libudf andrew_garrard FLUENT 4 August 19, 2003 10:17


All times are GMT -4. The time now is 19:42.