|
[Sponsors] |
October 19, 2009, 13:18 |
Parallelizing Transient UDF
|
#1 |
New Member
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 17 |
Hi, I am a newbie on UDFs and I have a problem that maybe is easy or even for some of you who have a lot of experience.
From the fluent's UDF manual I copied an example and changed a function to get the following UDF /************************************************** ******************** unsteady.c UDF for specifying a transient velocity profile boundary condition ************************************************** *********************/ #include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 0.5*t; } end_f_loop(f, thread) } It works when I run it in serial fluent, but it does not work when I try to run the simulation in parallel fluent. I have read the manual but I honestly dont know how to make it work. It would be great if someone told me what should I add or change to make it work for parallel fluent. Thanks for any reply, Elias |
|
October 19, 2009, 14:54 |
|
#2 |
Member
Join Date: Apr 2009
Posts: 78
Rep Power: 17 |
That doesn't look like it will need any special treatment to run in parallel.
You will have to compile the library in parallel fluent though (you can't compile in serial and load that library in parallel.) |
|
October 20, 2009, 10:47 |
|
#3 |
New Member
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 17 |
tstorm, Thank you very much for your reply. I think I was having a problem with the compiler or something like that. I have tried in another computer and nw it worked.
Thank you anyway. |
|
Tags |
parallel, transient, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help, parallelizing UDF problem. | blivurmind | Fluent UDF and Scheme Programming | 2 | July 24, 2009 12:40 |
Help, parallelizing UDF problem | blivurmind | FLUENT | 0 | July 9, 2009 22:39 |
Multi step transient UDF velocity profile problem | William177 | FLUENT | 1 | February 3, 2008 07:47 |
spatial and transient B.C. using UDF | Park | FLUENT | 0 | April 28, 2005 22:32 |
UDF for transient boundary condition? | Shankar | FLUENT | 1 | November 22, 2003 09:10 |