After you have compiled (Compiling UDFs) your DEFINE_SPARK_GEOM 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.60: 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, either select Species Transport from the Model list and enable the Volumetric option in the Reactions list, or simply select Premixed Combustion from the 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.
In the Set Spark Ignition dialog box, select User Defined Spark Geometry from the Model list. Then select the function name (for example, spark_circle::libudf) from the User Geometry drop-down list in the Shape Parameters group box.
See
DEFINE_SPARK_GEOM (R14.5 spark model)
for details
about DEFINE_SPARK_GEOM UDFs.