CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Parallelizing Transient UDF (

eliasmontoya October 19, 2009 12:18

Parallelizing Transient UDF
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

/************************************************** ********************
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,


tstorm October 19, 2009 13:54

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.)

eliasmontoya October 20, 2009 09:47

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.

All times are GMT -4. The time now is 20:01.