6.2.9. Hooking DEFINE_ECFM_SPARK_SOURCE UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_ECFM_SPARK_SOURCE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Set Spark Ignition dialog box (Figure 6.25: The Set Spark Ignition Dialog Box) in ANSYS Fluent.

To hook the UDF to ANSYS Fluent, begin by opening the Species Model dialog box.

 Setup → Models → Species   Edit...

In the Species Model dialog box, select Premixed Combustion from the Model list, and select Extended Coherent Flame Model from the Premixed Model list.

Next, open the Spark Ignition dialog box.

 Setup → Models → Species → Spark Ignition   Edit...

Make sure that Number of Sparks is set to a nonzero number in the Spark Ignition dialog box and click the Define... button for the spark you want to define, in order to open the Set Spark Ignition dialog box.

Figure 6.25:  The Set Spark Ignition Dialog Box

The Set Spark Ignition Dialog Box

In the Set Spark Ignition dialog box, select User Defined Sigma Source from the ECFM Spark Model list. Then select the function name (for example, sigma_spark_source::libudf) from the User Sigma Source drop-down list in the Model Parameters group box.

See DEFINE_ECFM_SPARK_SOURCE for details about defining DEFINE_ECFM_SPARK_SOURCE UDFs.


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