2.3.3.  DEFINE_CPHI

2.3.3.1. Description

You can use DEFINE_CPHI to set the value of the mixing constant (see Equation 11–6 and Equation 11–8 in the Theory Guide for details). It is useful for modeling flows where departs substantially from its default value of , which occurs at low Reynolds and/or high Schmidt numbers.

2.3.3.2. Usage

DEFINE_CPHI (name, c, t)

Argument Type

Description

symbol name

UDF name.

cell_t c

Cell index.

Thread *t

Pointer to cell thread.

Function returns

real

There are three arguments to DEFINE_CPHI: name, c, and t. You supply name, the name of the UDF. c and t are passed by the ANSYS Fluent solver to your UDF. Your UDF will need to compute the real value of the mixing constant () and return it to the solver.

2.3.3.3. Hooking a Mixing Constant UDF to ANSYS Fluent

After the UDF that you have defined using DEFINE_CPHI is interpreted (Interpreting UDFs) or compiled (Compiling UDFs), the name of the argument that you supplied as the first DEFINE macro argument will become visible and selectable in the User-Defined Function Hooks dialog box in ANSYS Fluent whenever the Composition PDF Transport model is enabled. See Hooking DEFINE_CPHI UDFs for details.


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