Some functions in ANSYS Fluent require a “list”
of objects such as numbers, strings, Booleans, and so on. A list is
a Scheme object that is simply a sequence of objects terminated by
the empty list, ’(). Lists are prompted
for an element at a time, and the end of the list is signaled by entering
an empty list. This terminating list forms the tail of the prompted
list, and can either be empty or can contain values. For convenience,
the empty list can be entered as () as well
as the standard form ’(). Normally,
list prompts save the previous argument list as the default. To modify
the list, overwrite the desired elements and terminate the process
with an empty list. For example,
element(1) [()]1element(2) [()]10element(3) [()]100element(4) [()] Enter
creates a list of three numbers: 1, 10, and 100. Subsequently,
element(1) [1] Enter
element(2) [10] Enter
element(3) [100] Enter
element(4) [()] 1000
element(5) [()] Enter
adds a fourth element. Then
element(1) [1] Enter
element(2) [10] Enter
element(3) [100] ()
leaves only 1 and 10 in the list. Subsequently entering
element(1) [1] ,,’(11 12 13)
creates a five element list: 1, 10, 11, 12, and 13. Finally, a single empty list removes all elements
element(1) [1] ()
A different type of list, namely, a “list-of-scalars” contains pick menu items (and not list items) for which a selection has to be made from listed quantities, which are available at the Enter prompt. Hence, a list-of-scalars cannot be entered as a list.
An example of a “list-of-scalars” consists of the following:
