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

gaussian profiled heat flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2020, 00:53
Default gaussian profiled heat flux
  #1
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 7
vek123 is on a distinguished road
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)
}
vek123 is offline   Reply With Quote

Old   August 24, 2020, 01:59
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
to be
Code:
F_CENTROID(x,f,t);
y = x[1];
was
Code:
//F_CENTROID(x,f,t);
y = x[i];
you've defined x as a vector real x[ND_ND];
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
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
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


All times are GMT -4. The time now is 09:58.