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

UDF on parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2009, 07:02
Default UDF on parallel
  #1
Senior Member
 
christine
Join Date: Jul 2009
Location: europe
Posts: 125
Rep Power: 17
yorelchr is on a distinguished road
olà everyone,

I have a problem with a UDF that i'm trying to use on parallel. When using it in the serial mode, it's ok. But i don't understand how to use the commands such as "#if RP_HOST .... and also the commands such as "host_to_node"...ecc.
My udf is as follows - i can't send it for "confidential reasons" - so i will try to be as clear as precise as possible :

-----------------------------------------------
#include "udf.h"
#include "math.h"
#include "stdio.h"
#include <stdlib.h>
#include <unistd.h>
#include "para.h" (is this one useful? )

#define M_PI 3.14159265....

int **holewall;
int *indicet;


DEFINE_ON_DEMAND(calc_holewall)
- list of variables...
- reading of the data file

- other variables :
meth = (Thread **)malloc(sizeof(Thread *)*idotmax);
holewall = (int **)malloc(sizeof(int *)*idotmax);
- program that loops on c_loop

end of DEFINE_ON_DEMAND

DEFINE_SOURCE(xmom_source,c,t,dS,eqn)
-list of variables
- program

the same for ymom and zmom.
------------------------------------------------
I don't know how i can understand what the host or the nodes do...

If someone as any clue for me...i can be more precise if needed.

Thank you very much.
yorelchr is offline   Reply With Quote

Reply

Tags
fluent - udf - parallel


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
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 10:48
Help: how to realize UDF on parallel cluster? Haoyin FLUENT 1 August 6, 2007 14:53
Parallel Fluent +UDF Jack Martinez FLUENT 0 June 28, 2007 12:19
UDF in Parallel Gavin FLUENT 1 June 19, 2005 23:17
UDF in parallel version. yobee FLUENT 0 August 17, 2004 05:12


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