|
[Sponsors] |
December 19, 2017, 05:29 |
Doubt - Variable Heat Flux input - UDF
|
#1 |
New Member
Neethu N
Join Date: Nov 2017
Posts: 8
Rep Power: 8 |
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? |
|
December 19, 2017, 12:48 |
|
#2 |
New Member
Neethu N
Join Date: Nov 2017
Posts: 8
Rep Power: 8 |
Answering my own question, there was a mistake in the code.
x should be assigned the value inside the loop only. That solved it. Thank you! |
|
Tags |
fluent, fluent - udf |
|
|
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 22:55 |
variable heat flux as boundary conditions at a trapezoidal receiver in a CSP plant | Louiza RBH | COMSOL | 2 | September 29, 2016 08:43 |
UDF for Heat Flux | kishan kumar jaiswal | FLUENT | 4 | April 21, 2014 19:01 |
Variable name for heat flux | peterle | CFX | 4 | February 13, 2014 03:21 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |