You can use DEFINE_THICKENED_FLAME_MODEL to specify the thickening factor , efficiency factor,
, and dynamic thickening parameter
for the thickened flame
model (TFM). This UDF can be hooked only if the thickened flame model
is enabled in the Species Model dialog box.
DEFINE_THICKENED_FLAME_MODEL (name,c,t,F,E,Omega)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index that identifies a cell within the given thread. |
|
|
Pointer to cell thread on which the TFM parameters (F, E, Omega) are to be applied. |
|
|
Pointer to array of the thickening factor. |
|
|
Pointer to array of the efficiency factor. |
|
|
Pointer to array of the dynamic thickening factor. |
Function returns
void
There are six arguments to DEFINE_THICKENED_FLAME_MODEL: name, c, t, F, E, and Omega. You supply name, the name of the UDF. After your UDF is compiled, the name that
you have chosen for your function will become visible and selectable
in the graphical user interface in ANSYS Fluent. c, t, F, E, and Omega are variables
that are passed by the ANSYS Fluent solver to your UDF.
Note: The
default values of F, E, and Omega are calculated before the UDF
is called, therefore none of these values necessarily need to be set
in the UDF.
In the simple example below, the DEFINE_THICKENED_FLAME_MODEL returns a fixed thickening factor , with a unity efficiency factor
(so that the effect of thickening on the turbulent flame speed is
neglected), and a unity dynamic thickening parameter (so that thickening
is applied everywhere in the domain, including far from the flame
front).
#include "udf.h"
DEFINE_THICKENED_FLAME_MODEL(user_TFM, c, t, F, E, Omega)
{
*F = 10.;
*E = 1.;
*Omega = 1.;
}
After the UDF that you have defined using DEFINE_THICKENED_FLAME_MODEL is interpreted (Interpreting UDFs)
or compiled (Compiling UDFs), the name
of the argument that you supplied as the DEFINE macro argument (for example, user_TFM)
will become visible and selectable in the User-Defined Function
Hooks dialog box in ANSYS Fluent. See Hooking DEFINE_THICKENED_FLAME_MODEL UDFs for details.