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

parallel udf problem in linux

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2010, 11:19
Default parallel udf problem in linux
  #1
New Member
 
endlessfree
Join Date: Sep 2009
Posts: 2
Rep Power: 0
endlessfree is on a distinguished road
the program with parallel udf was solved the average temperature of Zone ID=4.when the average temperature is above 1013K,send save and exit fluent signal.it may be compiled in windows and linux,but run in windows,can not run in linux. please help me.

display error:

/public/software/Fluent.Inc/fluent6.3.26/lnamd64/3d_host/fluent.6.3.26:
symbol lookup error:
/public/home/nengyuan/endlessfree/example/libudf/lnamd64/3d_node/libudf.so:
undefined symbol: node_recv_int_1


#include "udf.h"

static int alid=4;

DEFINE_ADJUST(my_adjust,d)
{

/*!!!!al Zone ID*/
real cell_tot=0,altavg=0.;

#if !RP_NODE
char *filenamesignal="//public//home//nengyuan//endlessfree//example//exit-fluent.txt"; /*!!!save and exit fluent signal*/
FILE *fp=NULL;
#endif

#if !RP_HOST
Thread *alt;
cell_t c;
#endif

/*#if !RP_NODE
alid=4;
#endif*/

host_to_node_int_1(alid);

#if !RP_HOST
alt= Lookup_Thread(d, alid);
begin_c_loop(c,alt)
{
cell_tot++;
altavg += C_T(c,alt);
}
end_c_loop(c,alt)

#if RP_NODE
altavg=PRF_GRSUM1(altavg);
cell_tot=PRF_GRSUM1(cell_tot);
#endif
#endif

node_to_host_real_2(altavg,cell_tot);

#if !RP_NODE

altavg /= cell_tot;

Message("Al Averge Temperature= %.2f\n",altavg);

if(altavg>=1013){
fp=fopen(filenamesignal,"w");
fclose(fp);
}
#endif

}
endlessfree is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel UDF Problem Dimitris Fluent UDF and Scheme Programming 7 September 20, 2013 02:51
A UDF Problem in Parallel Mode Jun FLUENT 1 October 26, 2011 13:49
Problem with UDF compilation in LINUX tez Fluent UDF and Scheme Programming 2 April 11, 2010 20:18
problem loading UDF in parallel fluent Tim FLUENT 12 July 12, 2008 13:59
Problem in Parallel UDF Giacomo de Renzi FLUENT 12 June 18, 2008 13:19


All times are GMT -4. The time now is 09:39.