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

Parallelizing Transient UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2009, 13:18
Exclamation Parallelizing Transient UDF
  #1
New Member
 
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 17
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, 14:54
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 17
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, 10:47
Default
  #3
New Member
 
Elias Montoya
Join Date: Aug 2009
Posts: 9
Rep Power: 17
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


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


All times are GMT -4. The time now is 14:32.