|
[Sponsors] |
July 13, 2009, 02:58 |
Help, parallelizing UDF problem.
|
#1 |
New Member
Jong-hoon Lee
Join Date: Jul 2009
Location: Seoul in Korea
Posts: 6
Rep Power: 17 |
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. |
|
July 14, 2009, 23:55 |
|
#2 |
New Member
lullywood
Join Date: Jul 2009
Posts: 1
Rep Power: 0 |
#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 } |
|
July 24, 2009, 12:40 |
UDF Parallele
|
#3 |
Senior Member
christine
Join Date: Jul 2009
Location: europe
Posts: 125
Rep Power: 17 |
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 |
|
|
|
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 |