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.
DEFINE_CPHI (name, c, t)
|
Argument Type |
Description |
|
|
UDF name. |
|
|
Cell index. |
|
|
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.
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.