You can use DEFINE_SBES_BF to specify
a custom blending function for the Stress-Blended Eddy Simulation
(SBES) model, which is a hybrid RANS-LES turbulence model available
for the following models: baseline (BSL) -
, shear-stress transport
(SST)
-
, and transition SST. Using a UDF allows
you to define the blending function zonally for cases where the division
between RANS and LES is clear from the geometry and the flow physics.
See Stress-Blended Eddy Simulation (SBES) in
the Theory Guide for details.
DEFINE_SBES_BF (name, c, t)
|
Argument Type |
Description |
|---|---|
|
|
UDF name. |
|
|
Index that identifies the cell on which the SBES blending function is to be applied. |
|
|
Pointer to cell thread. |
Function returns
real
There are three arguments to DEFINE_SBES_BF: name, c, and t. You supply name, which is
the calling name of the UDF. The arguments 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 of for the SBES blending function to the solver.
A zonal approach is demonstrated in the following example. Depending on the x-coordinate, the blending function is 0.0 (LES mode) or 1.0 (RANS mode).
#include "udf.h"
DEFINE_SBES_BF(user_SBES_bf, c, t)
{
real bf_value;
real xc[ND_ND];
C_CENTROID(xc,c,t);
if (xc[0] > 2.0)
bf_value = 0.0;
else
bf_value = 1.0;
return bf_value;
}After the UDF that you have defined using DEFINE_SBES_BF is interpreted (Interpreting UDFs)
or compiled (Compiling UDFs), the name
of the argument that you supplied as the DEFINE macro argument (for example, user_SBES_bf) will become visible and selectable in the Viscous Model dialog box in ANSYS Fluent. See Hooking DEFINE_SBES_BF UDFs for details.