CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Parallel UDF problem, hello world version

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

LinkBack Thread Tools Display Modes
Old   March 10, 2011, 09:20
Default Parallel UDF problem, hello world version
New Member
Pierre-Louis Schmitt
Join Date: Jan 2011
Posts: 10
Rep Power: 6
pilou is on a distinguished road
I think my last post was a bit to long and the UDF way to complex to have an answer so I made a "Hello world" version of the problem. This is the serial version that works fine, but never works in parallel.

#include <udf.h>

DEFINE_SR_RATE(my_rate_ox, f, t, r, mw, yi, rr)

face_t fr;
int ID1,ID2;


Domain *domain=Get_Domain(1);
Thread *tr=Lookup_Thread(domain,ID2);

if (THREAD_ID(t)==ID1)
printf("Hello world\n");

*rr = 0.000001;


It seems hard to make Fluent loop over a face thread different from the "t" defined on the DEFINE_SR_RATE's arguments. Do you know a way to overpass this problem and make it work in a parallel computation.

Thanks in advance.
pilou is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
A UDF Problem in Parallel Mode Jun FLUENT 1 October 26, 2011 12:49
problem loading UDF in parallel fluent Tim FLUENT 12 July 12, 2008 12:59

All times are GMT -4. The time now is 00:26.