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

Help with Define on Demand UDF in Parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2007, 09:20
Default Help with Define on Demand UDF in Parallel
  #1
Mahesh
Guest
 
Posts: n/a
Hello!

I am trying to compile a simple UDF (mentioned below) on a 64 bit 4 processors Linux Machine.

The default interconnect is ethernet.

The UDF runs well on series. In parallel, I am able to build and load the library successfully. I checked it created a 3ddp_node and 3ddp_host directory in the lnamd64 (architecture) folder. But when I try to hook the library in the with the case file it give this error

Primitive Error at Node 0: received Segmentation Violation

connect to address 10.1.1.249: Connection refused

connect to address 10.1.1.249: Connection refused

trying normal rsh (/usr/bin/rsh)

connect to address 10.1.1.249: Connection refused

connect to address 10.1.1.249: Connection refused

trying normal rsh (/usr/bin/rsh)

The UDF is:

#include "udf.h"

DEFINE_ON_DEMAND(myfunction)

{

Domain *d;

Thread *t;

d=Get_Domain(1);

t=Lookup_Thread(d,4);

F_T(2,t)=100;

F_T(98,t)=5000;

}

I couldnot sort out the error. Please guide. Any help is highly appreciable

Thanks and Regards

Mahesh
  Reply With Quote

Old   August 6, 2007, 12:21
Default Re: Help with Define on Demand UDF in Parallel
  #2
Joe
Guest
 
Posts: n/a
Your networking is not set up correctly.

Check you can ping and rsh to each node. Test each node to all the other nodes.
  Reply With Quote

Old   August 7, 2007, 05:34
Default Re: Help with Define on Demand UDF in Parallel
  #3
Mahesh
Guest
 
Posts: n/a
Hello Joe

Thanks for your input, I will contact our system administrator to check about the same. But before I was able to run fluent in parallel(without a UDF) on these same nodes. Does inclusion of UDF needs further modification in network settings.

Some further queries, when we run fluent in parallel the grid gets divided on different nodes then if we want to access a particular face, knowing its local face index(face_t f) before running in parallel, is it possible to access that face with the same index or after grid division each node has its own thread and consequent face id.

Basically I am facing problem when I try to communicate between nodes like sending no of face elements to node0. An eg UDF is mentioned below.

#include "udf.h"

DEFINE_ON_DEMAND(myfunction)

{

Domain *d;

Thread *t;

face_t f;

int n_faces;

d=Get_Domain(1);

t=Lookup_Thread(d,4);

n_faces=THREAD_N_ELEMENT_INT(t)

#if RP_NODE

if (! I_AM_NODE_ZERO_P)

{

PRF_CSEND_INT(node_zero, n_faces, 1, myid);

}

Message0("\nTotal no. of faces at top boundary are %d \n",n_faces);

#endif

#endif

}
  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
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 09:23
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19


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