6.4.15. Hooking DEFINE_DPM_VP_EQUILIB UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_VP_EQUILIB UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable from the Create/Edit Materials dialog box in ANSYS Fluent.

To hook the UDF, first set up your species transport and combustion models in the Species Model dialog box.

 Setup → Models → Species  Edit...

Then, create a particle injection using the Injections dialog box.

 Setup → Models → Discrete Phase → Injections New...

Set up the particle injection, making sure to select Multicomponent for the Particle Type.

Next, open the Materials task page.

 Setup →   Materials

Select the appropriate material in the Materials list (for example, particle-mixture-template) and click Create/Edit to open the Create/Edit Materials dialog box (Figure 6.99: The Create/Edit Materials Dialog Box).

Figure 6.99:  The Create/Edit Materials Dialog Box

The Create/Edit Materials Dialog Box

Select user-defined from the drop-down list for Vapor-Particle-Equilibrium in the Properties group box. This will open the User-Defined Functions dialog box. Select the UDF name (for example, raoult_vp::libudf) from the list of UDFs displayed and click OK. Then click Change/Create in the Create/Edit Materials dialog box.

Figure 6.100:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

See DEFINE_DPM_VP_EQUILIB for details about DEFINE_DPM_VP_EQUILIBRIUM functions.


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