|
[Sponsors] |
August 23, 2020, 00:53 |
gaussian profiled heat flux
|
#1 |
New Member
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 7 |
i am trying to solve a heat transfer problem with a Gaussian like heat flux at the top of the boundary of a rectangle. the length of the rectangle is 0.08m and i did the shape in Matlab to visualize it and the equation i used looks good. but when i solve the problem in fluent using the same formula for the Gaussian distribution, i get a different results. i suspect that the problem may be related to the fact that in Matlab i base my calculation on the unit of length in which the maximum is 0.08. but in fluent it is based on the number of grid elements. is that true for fluent DEFINE_PROFILE Macro?
Here is my UDF. Code:
/*********************************************************************** UDF for specifying steady-state parabolic pressure profile boundary profile for a turbine vane ************************************************************************/ #include "udf.h" DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f,t) { //F_CENTROID(x,f,t); y = x[i]; F_PROFILE(f,t,i) = 1e8*exp(-10000*y*y); } end_f_loop(f,t) } |
|
August 24, 2020, 01:59 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
to be
Code:
F_CENTROID(x,f,t); y = x[1]; Code:
//F_CENTROID(x,f,t); y = x[i]; using ND_ND macro vector size could be 2 or 3 depends on 2D or 3D case you are solving x[0] - x- axis x[1] - y - axis x[2] - z - axis // is a sing that everything on the right is comment, it is not executed Fluent uses SI units as default, for length it is meters
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total heat transf. rate vs Total surface heat flux | Renato Sousa | FLUENT | 1 | April 14, 2020 03:27 |
CEL expression for calculating heat flux to be applied as surface boundary condition | shadnia | CFX | 14 | August 20, 2018 18:32 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 08:44 |
Forced convective heat transfere with fixed heat flux? | BenFranklinIII | OpenFOAM Running, Solving & CFD | 0 | July 30, 2015 05:31 |
Enforce bounds error with heat loss boundary condition at solid walls | Chander | CFX | 2 | May 1, 2012 20:11 |