The following DEFINE macros can be
used to specify transition correlations for the Transition SST model
in ANSYS Fluent.
You can use DEFINE_TRANS_FLENGTH to
specify the transition length for the Transition SST turbulence model.
DEFINE_TRANS_FLENGTH (name, c, t)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index of cell on which the transition length function is to be applied. |
|
|
Pointer to cell thread. |
Function returns
real
There are three arguments to DEFINE_TRANS_FLENGTH: name, c, and
t. You supply name, the name of the UDF. c and t are variables that are passed by the ANSYS Fluent solver
to your UDF. Your UDF will need to return the real value for the transition length function to the solver.
After the UDF that you have defined using DEFINE_TRANS_FLENGTH is interpreted (Interpreting UDFs)
or compiled (Compiling UDFs), the name
of the argument that you supplied as the DEFINE macro argument (for example, user_Flength) will become visible and selectable in the Viscous Model dialog box in ANSYS Fluent. See Hooking DEFINE_TRANS UDFs for details.
You can use DEFINE_TRANS_GEOMRGH to specify the geometric
roughness height for the Transition SST turbulence model. For more details on the model,
see Transition SST and Rough Walls.
DEFINE_TRANS_GEOMRGH (name,
c, t)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index of cell on which the geometric roughness height is to be applied. |
|
|
Pointer to cell thread. |
Function returns
real
There are three arguments to DEFINE_TRANS_GEOMRGH:
name, c, and
t. You supply name, the name of the
UDF. c and t are variables that are
passed by the ANSYS Fluent solver to your UDF. Your UDF will need to return the
real value for the geometric roughness height to the
solver.
After the UDF that you have defined using
DEFINE_TRANS_GEOMRGH is interpreted (Interpreting UDFs) or compiled (Compiling UDFs), the name of the argument that you supplied as
the DEFINE macro argument (for example,
user_Geomrgh) will become visible and selectable in the
Viscous Model dialog box in ANSYS Fluent. See Hooking DEFINE_TRANS UDFs for details.
You can use DEFINE_TRANS_RETHETA_C to
specify the critical momentum thickness Reynolds number for the Transition
SST turbulence model.
DEFINE_TRANS_RETHETA_C (name, c, t)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index that identifies the cell on which the critical momentum thickness Reynolds number is to be applied. |
|
|
Pointer to cell thread. |
Function returns
real
There are three arguments to DEFINE_TRANS_RETHETA_C: name, c, and
t. You supply name, the name of the UDF. c and t are variables that are passed by the ANSYS Fluent solver
to your UDF. Your UDF will need to return the real value for the critical momentum thickness Reynolds number to the
solver.
After the UDF that you have defined using DEFINE_TRANS_RETHETA_C is interpreted (Interpreting UDFs)
or compiled (Compiling UDFs), the name
of the argument that you supplied as the DEFINE macro argument (for example, user_Re_thetac) will become visible and selectable in the Viscous Model dialog box in ANSYS Fluent. See Hooking DEFINE_TRANS UDFs for details.
You can use DEFINE_TRANS_RETHETA_T to
specify the transition onset momentum thickness Reynolds number for
the Transition SST turbulence model.
DEFINE_TRANS_RETHETA_T (name, c, t)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index that identifies the cell on which the transition onset momentum thickness Reynolds number is to be applied. |
|
|
Pointer to cell thread. |
Function returns
real
There are three arguments to DEFINE_TRANS_RETHETA_T: name, c, and
t. You supply name, the name of the UDF. c and t are variables that are passed by the ANSYS Fluent solver
to your UDF. Your UDF will need to return the real value for the transition onset momentum thickness Reynolds number
to the solver.
The following functions (which are concatenated into a single C source code file) demonstrate this usage.
#include "udf.h"
DEFINE_TRANS_FLENGTH(user_Flength, c, t)
{
real Flength = 31.468;
return Flength;
}
DEFINE_TRANS_GEOMRGH(user_Geomrgh, c, t)
{
/* Dimensional value of geometric roughness height */
real Geomrgh = 0.001;
return Geomrgh;
}
DEFINE_TRANS_RETHETA_C(user_Re_thetac, c, t)
{
real Re_thetac = 176.396;
return Re_thetac;
}
DEFINE_TRANS_RETHETA_T(user_Re_thetat, c, t)
{
real Re_thetat = 210;
return Re_thetat;
}
After the UDF that you have defined using DEFINE_TRANS is interpreted (Interpreting UDFs)
or compiled (Compiling UDFs), the name
of the argument that you supplied as the DEFINE macro argument (for example, user_Re_thetat) will become visible and selectable in the Viscous Model dialog box in ANSYS Fluent. See Hooking DEFINE_TRANS UDFs for details.