[ANSYS, Inc. Logo] return to home search
next up previous contents index

2.3.8 DEFINE_GRAY_BAND_ABS_COEFF



Description


You can use DEFINE_GRAY_BAND_ABS_COEFF to specify a UDF for the gray band absorption coefficient as a function of temperature, that can be used with a non-gray discrete ordinates model.



Usage



DEFINE_GRAY_BAND_ABS_COEFF( name, c, t, nb)


Argument Type Description
symbol name UDF name.
cell_t c Cell index.
Thread *t Pointer to cell thread.
int nb Band number associated with non-gray model.
   
Function returns  
real  
   

There are four arguments to DEFINE_GRAY_BAND_ABS_COEFF: name, c, t, and nb. You supply name, the name of the UDF. The variables c, t, and nb are passed by the ANSYS FLUENT solver to your UDF. Your UDF will need to return the real value of the gray band coefficient to the solver.



Example


The following UDF, named user_gray_band_abs, specifies the gray-band absorption coefficient as a function of temperature that can be used for a non-gray discrete ordinates model.

#include  "udf.h"

DEFINE_GRAY_BAND_ABS_COEFF(user_gray_band_abs,c,t,nb)
{
   real abs_coeff = 0;
   real T = C_T(c,t);

  switch (nb)
  {
     case 0 :  abs_coeff = 1.3+0.001*T; break;
     case 1 :  abs_coeff =  2.7 + 0.005*T; break;
}

return abs_coeff;

}



Hooking a Gray Band Coefficient UDF to ANSYS FLUENT


After the UDF that you have defined using DEFINE_GRAY_BAND_ABS_COEFF is interpreted (Chapter  4) or compiled (Chapter  5), the name of the argument that you supplied as the first DEFINE macro argument
(e.g., user_gray_band_abs) will become visible and selectable in the Create/Edit Materials dialog box for the Absorption Coefficient.

See Section  6.2.8 for details.


next up previous contents index Previous: 2.3.7 DEFINE_EMISSIVITY_WEIGHTING_FACTOR
Up: 2.3 Model-Specific DEFINE Macros
Next: 2.3.9 DEFINE_HEAT_FLUX
Release 12.0 © ANSYS, Inc. 2009-01-14