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

Help, parallelizing UDF problem.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2009, 02:58
Default Help, parallelizing UDF problem.
  #1
New Member
 
Jong-hoon Lee
Join Date: Jul 2009
Location: Seoul in Korea
Posts: 6
Rep Power: 17
blivurmind is on a distinguished road
Hello,

I have a working udf. How can I use this udf for parallel computing. I have a look at the udf manual in Fluent. But it is quite complicated. What do you suggest me to do?
Above thing is my UDF.


#include "udf.h"
DEFINE_PROFILE(pressure, thread, p)
{
real t;
face_t f;
t = CURRENT_TIME;
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, p)=-84.0*sin(0.017453292*90.0*t);
}
end_f_loop(f, thread)
}


Waiting from you.
Thank you.
blivurmind is offline   Reply With Quote

Old   July 14, 2009, 23:55
Default
  #2
New Member
 
lullywood
Join Date: Jul 2009
Posts: 1
Rep Power: 0
lullywood is on a distinguished road
#include "udf.h"
DEFINE_PROFILE(pressure, thread, p)
{
real t;
t = CURRENT_TIME;
#if RP_NODE
face_t f;
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, p)=-84.0*sin(0.017453292*90.0*t);
}
end_f_loop(f, thread)
#endif
}
lullywood is offline   Reply With Quote

Old   July 24, 2009, 12:40
Default UDF Parallele
  #3
Senior Member
 
christine
Join Date: Jul 2009
Location: europe
Posts: 125
Rep Power: 17
yorelchr is on a distinguished road
Olà

I am also trying to run simulations in parallele with a UDF. It seems that my file.jou, written for launching the program is ok, i've tested it on serial run. But when i want to launch the calculations on parallele, when the iterations are to start, the program stops and gives me errors..quite incomprehensible for me.
I haven't used any of the #IF NODE ecc, because i don't understand how to use them.
My UDF is like this :

#include "udf.h"
#include "math.h"
#include "stdio.h"
#include <stdlib.h>
#include <unistd.h>

then the list of variables...
then

DEFINE_ON_DEMAND(calc_holewall)

list of variables...

the program reads a file of parameters..

then it starts a series of loops...

begin_c_loop(c,t)
...
end_c_loop(c,t)

then after that

DEFINE_SOURCE(xmom_source,c,t,dS,eqn)
DEFINE_SOURCE(ymom_source,c,t,dS,eqn)
DEFINE_SOURCE(zmom_source,c,t,dS,eqn)

Can someone explain me how to deal with that? I can't send my program for "confidential reasons", but i can give maybe more indications if necessary.

Thanks a lot

Yorelchr
yorelchr 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Help, parallelizing UDF problem blivurmind FLUENT 0 July 9, 2009 22:39
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
Problem related with UDF for dynamic mesh Ryan FLUENT 6 April 29, 2004 10:29
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


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