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

heat flux UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghost82

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2012, 17:34
Default heat flux UDF
  #1
New Member
 
KAKI
Join Date: Aug 2011
Posts: 18
Rep Power: 15
lopital03000 is on a distinguished road

pleas help me i want UDF of heat flux, Q=f(z)=1-(z/0.002)*(z/0.002)
exemple in the link:
http://www4.0zz0.com/2012/12/11/21/311406276.jpg
lopital03000 is offline   Reply With Quote

Old   December 12, 2012, 06:48
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
Code:
#include "udf.h"
     
/* profile for heat flux*/
DEFINE_PROFILE(heatflux_profile, t, i)
{

  real x[ND_ND];   /* this will hold the position vector */
  face_t f;
     
  begin_f_loop(f, t)
  {
    F_CENTROID(x, f,t);
    F_PROFILE(f, t, i) =1.-(x[2]/0.002)*(x[2]/0.002);
  }
  end_f_loop(f, t)
}
You could easily change this code:
http://www.cfd-online.com/Forums/flu...9-help-me.html

If needed edit the formula or translate your geometry to have the base aligned with z=0 (from the picture I see your geometry is centered in Z);
also take care if you need positive or negative Q and if needed change the formula.

Daniele
Far likes this.
ghost82 is offline   Reply With Quote

Old   December 12, 2012, 12:52
Default
  #3
New Member
 
KAKI
Join Date: Aug 2011
Posts: 18
Rep Power: 15
lopital03000 is on a distinguished road
Thank you very much my brother, can you give me your email address to communicate
lopital03000 is offline   Reply With Quote

Old   December 13, 2012, 10:47
Default
  #4
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
post your questions here, so also somebody else can help you.
ghost82 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
Heat Flux Profile at Fluid-Porous Interface Hitch8 CFX 4 December 15, 2012 10:57
Enforce bounds error with heat loss boundary condition at solid walls Chander CFX 2 May 1, 2012 21:11
Basic question: UDF for wall heat flux Carl FLUENT 1 August 5, 2006 20:01
UDF for a heat flux applied during T second on a w nazeem FLUENT 0 June 12, 2004 11:28
udf for transient heat flux BC isaac FLUENT 1 June 3, 2004 17:29


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