[ANSYS, Inc. Logo] return to home search
next up previous contents index

6.2.15 Hooking DEFINE_PROFILE UDFs

After you have interpreted (Chapter  4) or compiled (Chapter  5) your DEFINE_PROFILE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the appropriate boundary or cell zone condition dialog box in ANSYS FLUENT. To open the boundary or cell zone condition dialog box, select the zone in the Boundary Conditions or Cell Zone Conditions task page and click the Edit... button.

figure Boundary Conditions

or

figure Cell Zone Conditions

To hook the UDF, select the name of your function in the appropriate drop-down list. For example, if your UDF defines a velocity inlet boundary condition, click the Momentum tab in the Velocity Inlet dialog box (Figure  6.2.17) , select the function name (e.g., x_velocity::libudf) from the X Velocity drop-down list, and click OK. Note that the UDF name that is displayed in the drop-down lists is preceded by the word udf (e.g., udf x_velocity::libudf).

Figure 6.2.17: The Velocity Inlet Dialog Box
figure

If you are using your UDF to specify a fixed value in a cell zone, you will need to turn on the Fixed Values option in the Fluid or Solid dialog box. Then click the Fixed Values tab and select the name of the UDF in the appropriate drop-down list for the value you wish to set.

See Section  2.3.15 for details about DEFINE_PROFILE functions.



Hooking Profiles for UDS Equations


For each of the $N$ scalar equations you have specified in your ANSYS FLUENT model using the User-Defined Scalars dialog box you can hook a fixed value UDF for a cell zone (e.g., Fluid or Solid) and a specified value or flux UDF for all wall, inflow, and outflow boundaries.

After you have interpreted (Chapter  4) or compiled (Chapter  5) your DEFINE_PROFILE UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the appropriate boundary or cell zone condition dialog box in ANSYS FLUENT. To open the boundary or cell zone condition dialog box, select the zone in the Boundary Conditions or Cell Zone Conditions task page and click the Edit... button.

figure Boundary Conditions

or

figure Cell Zone Conditions

figure   

In some cases, you may wish to exclude diffusion of the scalar at the inlet of your domain. You can do this by disabling Inlet Diffusion for the scalar in the User-Defined Scalars dialog box.

See Section  2.3.15 for details about DEFINE_PROFILE functions.


next up previous contents index Previous: 6.2.14 Hooking DEFINE_PRANDTL UDFs
Up: 6.2 Hooking Model-Specific UDFs
Next: 6.2.16 Hooking DEFINE_PROPERTY UDFs
Release 12.0 © ANSYS, Inc. 2009-01-14