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

Doubt - Variable Heat Flux input - UDF

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 19, 2017, 04:29
Default Doubt - Variable Heat Flux input - UDF
  #1
New Member
 
Neethu N
Join Date: Nov 2017
Posts: 8
Rep Power: 8
Neethu_N is on a distinguished road
I need to give a parabolic heat flux at the top wall of a 2D square metal plate. I wrote the following code for it.

#include "udf.h"

DEFINE_PROFILE(heat_flux_parabola, thread, heat)
{
real P[ND_ND];
real x = P[0];
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(P, f, thread);
F_PROFILE(f, thread, heat)= (-4*pow(10,8)*pow((x-0.05),2)) + pow(10,6);
}
end_f_loop(f, thread)
}

The graph of the heat flux plotted in Matlab (1 Heat flux matlab.png) and that of wall heat flux plotted in CFD-Post (1 Heat flux cfd.png) is attached.

The matlab plot is as expected, with a peak value of 10^6, but the fluent variation is cut off at around 10^5, with a linear variation in the middle. Can somebody please explain why this is happening? Is there a a limit for heat flux in FLUENT?
Attached Images
File Type: png 1 Heat flux matlab.png (10.1 KB, 4 views)
File Type: png 1 Heat flux cfd.png (24.2 KB, 5 views)
Neethu_N is offline   Reply With Quote

 

Tags
fluent, fluent - 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
Define_profile UDF for Transient Heat flux boundary condition Amoljoshi Fluent UDF and Scheme Programming 2 June 20, 2018 21:55
variable heat flux as boundary conditions at a trapezoidal receiver in a CSP plant Louiza RBH COMSOL 2 September 29, 2016 07:43
UDF for Heat Flux kishan kumar jaiswal FLUENT 4 April 21, 2014 18:01
Variable name for heat flux peterle CFX 4 February 13, 2014 02:21
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 11:10.