CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Parallelizing Transient UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2009, 12:18
Exclamation Parallelizing Transient UDF
  #1
New Member
 
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 7
eliasmontoya is on a distinguished road
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
eliasmontoya is offline   Reply With Quote

Old   October 19, 2009, 13:54
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 8
tstorm is on a distinguished road
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.)
tstorm is offline   Reply With Quote

Old   October 20, 2009, 09:47
Default
  #3
New Member
 
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 7
eliasmontoya is on a distinguished road
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.
eliasmontoya is offline   Reply With Quote

Reply

Tags
parallel, transient, udf

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
Help, parallelizing UDF problem. blivurmind Fluent UDF and Scheme Programming 2 July 24, 2009 11:40
Help, parallelizing UDF problem blivurmind FLUENT 0 July 9, 2009 21: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 21:32
UDF for transient boundary condition? Shankar FLUENT 1 November 22, 2003 09:10


All times are GMT -4. The time now is 12:44.