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:
Set up an appropriate reaction model in the Species Model dialog box.
Setup → Models → Species
Edit...
From the Model list, select Species Transport.
In the Reactions group box, enable Volumetric and Electrochemical and click .
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...
From the Surface Reaction Rate Function drop-down list, select the function name (for example, user_ec_rate::libudf).
Click .
See
DEFINE_EC_RATE
for details
about DEFINE_ER_RATE functions.