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

How to define Heat flux UDF in ansys in Boundary Condition?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2019, 05:20
Default How to define Heat flux UDF in ansys in Boundary Condition?
  #1
New Member
 
Azim Memon
Join Date: Jul 2019
Posts: 12
Rep Power: 6
Azim07 is on a distinguished road
Hello,

I have written the Heat Flux UDF and i want to define it in Boundary Condition, i mean in the wall. How can i do ?


# include "udf.h"
# include "unsteady.h"

DEFINE_EXECUTE_AT_END (execute_loop)
{
face_t f;
Thread *t;
real c_time=0.0000;
real q;
c_time=CURRENT_TIME;

if (c_time>0.00 && c_time<2700)
{
q=500;
}

if ((c_time>=2700)&&(c_time<=5400))
{
q=-500;
}
}
Azim07 is offline   Reply With Quote

Old   August 16, 2019, 00:28
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Ansys FLuent Customization manual

look for DEFINE_PROFILE macro

best regards
AlexanderZ 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
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Udf for moving heat flux in 2D cylindrical geometry devia21 Fluent UDF and Scheme Programming 0 April 20, 2015 00:27
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17


All times are GMT -4. The time now is 22:33.