2.3.41.  DEFINE_THICKENED_FLAME_MODEL

2.3.41.1. Description

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.

2.3.41.2. Usage

DEFINE_THICKENED_FLAME_MODEL (name,c,t,F,E,Omega)

Argument Type

Description

symbol name

UDF name.

Thread *c

Index that identifies a cell within the given thread.

Thread *t

Pointer to cell thread on which the TFM parameters (F, E, Omega) are to be applied.

F

Pointer to array of the thickening factor.

E

Pointer to array of the efficiency factor.

Omega

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.


2.3.41.3. Example - Thickened Flame Model

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.;
} 

2.3.41.4. Hooking a Thickened Flame Model UDF to ANSYS Fluent

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.


Release 18.2 - © ANSYS, Inc. All rights reserved.