After you have compiled (Compiling UDFs) your DEFINE_SOX_RATE UDF in ANSYS Fluent,
the function name you supplied in the DEFINE macro argument (for example, user_sox::libudf) will become visible and selectable for the SOx Rate drop-down list in the SOx Model dialog box
(Figure 6.59: The SOx Model Dialog Box).
Setup → Models → Species → SOx
Edit...
By default, the custom SOx rate of your UDF is added to the
rate calculated internally by ANSYS Fluent. The UDF rate will be added
to the forward rate if it is assigned to the POLLUT_FRATE macro, or the reverse rate if it is assigned to the POLLUT_RRATE macro. If you would rather entirely replace
the internally calculated SOx rate with your custom rate, select Replace ANSYS Fluent Rate in the UDF Rate group box and click Apply.
Unless specifically defined in your SOx rate UDF, data and parameter settings will be derived from the settings in the SOx Model dialog box. Therefore, it is good practice to make the appropriate settings in the SOx Model dialog box, even though you can use a UDF to replace the default rates with user-specified rates. There is no computational penalty for doing this because the default rate calculations will be ignored when Replace ANSYS Fluent Rate is selected.
To specify a custom maximum limit () for the integration of the temperature PDF for
each cell, you must first select the UDF name (for example, user_sox::libudf) from the SOx Rate drop-down list, as described previously. Then, select either temperature or temperature/species from the PDF Mode drop-down list in the Turbulence Interaction Mode group box. Finally, select user-defined from the Tmax Option drop-down list and click Apply.
See
DEFINE_SOX_RATE
for details
about defining DEFINE_SOX_RATE functions.