6.2.10. Hooking DEFINE_EC_RATE UDFs

After you have compiled (Compiling UDFs) your DEFINE_EC_RATE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the User-Defined Function Hooks dialog box (Figure 6.26: The User-Defined Function Hooks Dialog Box) in ANSYS Fluent.

To hook the UDF to ANSYS Fluent:

  1. Set up an appropriate reaction model in the Species Model dialog box.

     Setup → Models → Species   Edit...

    1. From the Model list, select Species Transport.

    2. In the Reactions group box, enable Volumetric and Electrochemical and click OK.

  2. Hook the UDF to ANSYS Fluent using the User-Defined Function Hooks dialog box (Figure 6.63: The User-Defined Function Hooks Dialog Box).

     Parameters & Customization → User Defined Functions  Function Hooks...

    Figure 6.26:  The User-Defined Function Hooks Dialog Box

    The User-Defined Function Hooks Dialog Box

    1. From the Surface Reaction Rate Function drop-down list, select the function name (for example, user_ec_rate::libudf).

    2. Click OK.

See DEFINE_EC_RATE for details about DEFINE_ER_RATE functions.


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