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

How can I impose variable boundary conditions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2009, 16:53
Default How can I impose variable boundary conditions?
  #1
Member
 
Behrang Asgharian
Join Date: Oct 2009
Posts: 38
Rep Power: 17
behrang2009 is on a distinguished road
Hi Guys!
How can I define variable boundary conditions such as variable temperature on a wall? I believe that I should use UDF. Which parts of the UDF Manual help me most. Any hint?
Thanks
Good luck
behrang2009 is offline   Reply With Quote

Old   December 18, 2009, 20:43
Default
  #2
New Member
 
matth
Join Date: Aug 2009
Posts: 8
Rep Power: 17
dahu007 is on a distinguished road
That's right you have ti write an UDF :
I used to do it with the velocity but it should be the same with the temperature. This is an example of a UDF of an unsteady velocity (you can find it in the UDF user guide of Fluent) (in the part boundary counditions and details UDF examples)


/************************************************** ********************
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) = 20. + 5.0*sin(10.*t);
}
end_f_loop(f, thread)
}


When your UDF is written you have just to interpret it in Fluent !!!
dahu007 is offline   Reply With Quote

Old   December 20, 2009, 21:26
Default
  #3
Member
 
Behrang Asgharian
Join Date: Oct 2009
Posts: 38
Rep Power: 17
behrang2009 is on a distinguished road
Thanks man.
I have started reading UDF Manual
behrang2009 is offline   Reply With Quote

Reply


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25
what's wrong with my Robin boundary conditions? hadesmajesty Main CFD Forum 0 September 23, 2009 05:57
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 19:03
Help with boundary conditions Dan CFX 0 April 3, 2006 12:32


All times are GMT -4. The time now is 02:06.