The
Define/Custom Field Functions... menu item opens the
Custom Field Function Calculator dialog box.
Custom Field Function Calculator Dialog Box
The
Custom Field Function Calculator dialog box allows you to define custom field functions based on existing functions, using simple calculator operators. Any functions that you define will be added to the list of default flow variables and other field functions provided by
ANSYS FLUENT.
Recall that you must enter all constants in the function definition in SI units.
See Section
31.5.1 for details about the items below.
Controls
Definition
displays the function that you are currently defining. As you select each item from the
Field Functions list or the calculator keypad, it will appear in the
Definition text entry box. You
cannot edit the contents of this box directly; if you want to delete part of a function, use the
Delete button on the keypad.
(Calculator Buttons)
are push buttons that perform calculator operations. When you select a calculator button (by clicking on it), the appropriate symbol will appear in the
Definition text entry box.
Select Operand Field Functions from
contains the available field functions and the means for selecting them.
Field Functions
contains a list from which you can select a variable to be used in the definition of a new function.
Select
enters the variable that is currently selected in the
Field Functions list in the
Definition field.
New Function Name
specifies the name of the function you are defining. Should you decide to change the function name after you have defined the function, you can do so in the
Field Function Definitions dialog box, which you can open by clicking on the
Manage... push button.
Define
creates the function and adds it to the list of
Custom Field Functions within the drop-down list of available field functions. The
Define push button is grayed out after you create a new function or if the
Definition field is empty.
The
Field Function Definitions dialog box allows you to check, rename, save, load, and delete custom field functions that you defined in the
Custom Field Function Calculator dialog box. See Section
31.5.2 for details about the items below.
Controls
Definition
displays the function selected in the
Field Functions list. This display is for informational purposes only; you cannot edit it.
Field Functions
contains a selectable list of custom field functions. When you select a function, its definition will appear in the
Definition box and its name will appear in the
Name text entry box.
Name
displays the name of the currently selected field function. You can enter a new name in this box if you want to rename the function.
ID
reports the ID number of the selected function. The field function at the top of the list has an ID of 0, the second function has an ID of 1, and so on.
Rename
changes the name of the selected function to the name specified in the
Name text entry box.
Delete
deletes the selected field function.
Save...
opens the
Select File dialog box (see Section
2.1.6), where you can specify a file in which to save all of the functions in the
Field Functions list.
Load...
opens the
Select File dialog box, where you can specify a file from which to read custom field functions (i.e., a file that you saved using the
Save... button above).