• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Chapter 3. Text User Interface (TUI)
In addition to the graphical user interface described in Chapter2:Graphical User Inter- face (GUI), the user interface to
FLUENT
consists of textual command line interface.
Section3.1:Text Menu System
Section3.2:Text Prompt System
Section3.3:Interrupts
Section3.4:System Commands
Section3.5:Text Menu Input from Character Strings
Section3.6:Using the Text Interface Help System The text interface (TUI) uses, and is written in, a dialect of Lisp called
Scheme
. Usersfamiliar with
Scheme
will be able to use the interpretive capabilities of the interface tocreate customized commands.
3.1 Text Menu System
The text menu system provides a hierarchical interface to the program’s underlyingprocedural interface. Because it is text based, you can easily manipulate its operationwith standard text-based tools: input can be saved in files, modified with text editors, andread back in to be executed. Because the text menu system is tightly integrated with the
Scheme
extension language, it can easily be programmed to provide sophisticated controland customized functionality.The menu system structure is similar to the directory tree structure of UNIX operatingsystems. When you first start
FLUENT
, you are in the “root” menu and the menu promptis simply a caret.
>
To generate a listing of the submenus and commands in the current menu, simply press
<RETURN>
.
c
Fluent Inc. January 11, 2005
3-1
 
Text User Interface (TUI)
> <RETURN>adapt/ file/ report/define/ grid/ solve/display/ parallel/ surface/exit plot/ view/
By convention, submenu names end with a
/
to differentiate them from menu commands.To execute a command, just type its name (or an abbreviation). Similarly, to move downinto a submenu, enter its name or an abbreviation. When you move into the submenu,the prompt will change to reflect the current menu name.
> display/display> set/display/set>
To move back to the previously occupied menu, type
q
or
quit
at the prompt.
/display/set> q/display>
You can move directly to a menu by giving its full pathname.
/display> /file/display//file>
In the above example, control was passed from
/display
to
/file
without stopping inthe root menu. Therefore, when you quit from the
/file
menu, control will be passeddirectly back to
/display
.
/display//file> q/display>
Furthermore, if you execute a command without stopping in any of the menus along theway, control will again be returned to the menu from which you invoked the command.
3-2
c
Fluent Inc. January 11, 2005
 
3.1 Text Menu System
/display> /file start-journal jrnlInput journal opened on file "jrnl"./display>
The text menu system provides on-line help for menu commands. The text menu on-linehelp system is described in Section3.6:Using the Text Interface Help System.
3.1.1 Command Abbreviation
To select a menu command, you do not need to type the entire name; you can typean abbreviation that matches the command. The rules for matching a command are asfollows: A command name consists of phrases separated by hyphens. A command ismatched by matching an initial sequence of its phrases. Matching of hyphens is optional.A phrase is matched by matching an initial sequence of its characters. A character ismatched by typing that character.If an abbreviation matches more than one command, then the command with the greatestnumber of matched phrases is chosen. If more than one command has the same numberof matched phrases, then the first command to appear in the menu is chosen.For example, each of the following will match the command
set-ambientcolor
:
set-ambient-color
,
s-a-c
,
sac
, and
sa
. When abbreviating commands, sometimes yourabbreviation will match more than one command. In such cases, the first commandis selected. Occasionally, there is an anomaly such as
lint
not matching
lighting-interpolation
because the
li
gets absorbed in
lights-on?
and then the
nt
doesn’tmatch
interpolation
. This can be resolved by choosing a different abbreviation, suchas
liin
, or
l-int
.
3.1.2
Scheme
Evaluation
If you enter an open parenthesis,
(
, at the menu prompt, then that parenthesis and allcharacters up to and including the matching closing parenthesis are passed to
Scheme
tobe evaluated, and the result of evaluating the expression is displayed.
> (define a 1)a> (+ a 2 3 4)10
c
Fluent Inc. January 11, 2005
3-3
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...