All of the functionality of Ansys TurboGrid can be accessed when running in Line Interface mode. This section contains information on how to perform typical user actions (loading state files, saving pictures, and so on), defining geometry, creating graphical objects and performing quantitative calculations when running Ansys TurboGrid in Line Interface mode.
In Line Interface mode you are typing the CCL commands that would otherwise be issued by the user interface. A Viewer is provided in a separate window which shows the geometry and the objects that you create on the command line.
To run in Line Interface mode (
should be
replaced with the filepath to your installation of Ansys TurboGrid):<TURBOGRIDROOT>
Windows: Execute the command
at the
Command Prompt (omitting the <TURBOGRIDROOT>
\bin\cfxtg -line-line
option starts the user
interface mode).
You may want to change the size of the Command Prompt window to view the output from commands
such as getstate
. This can be done by typing
mode con lines=X
at the Command Prompt
before starting Ansys TurboGrid, where X is the number of lines to
display in the window. You can choose a large number of lines if you want to be able to
see all the output from a session (a scroll bar is used in the Command Prompt window).
Note: Note that once inside Ansys TurboGrid, file paths should contain forward slashes.
UNIX: Execute the command
at the
command prompt (omitting the <TURBOGRIDROOT>
/bin/cfxtg -line-line
option starts the user
interface mode).
In Ansys TurboGrid Line Interface mode, all commands are assumed to be actions, the
>
symbol required in the Command Editor
dialog box is not needed.
All of the functionality available from the Command Editor dialog
box in the user interface is available in Line Interface mode by typing
enterccl
or e
at the command
prompt. When in e
mode you can type any set of valid CCL
commands. The commands are not processed until you leave
e
mode by typing .e
. You can
cancel e
mode without processing the commands by typing
.c
. For details, see Command Editor Command in the TurboGrid User's Guide.
A list of Command Actions and their explanation are described in the Command Actions documentation. For details, see Introduction.
Note: The action commands shown in the Command Actions documentation are preceded by the
>
symbol. This symbol should be omitted when typing
action commands at the command prompt.)
You can create objects by typing the CCL definition of the object when in
e
mode, or by reading the object definition from a session
or state file. See File Operations from the Command Editor Dialog Box for details.
Line Interface mode differs from the Command Editor dialog box in
that Line Interface action commands are not preceded by the ">
"
symbol.
All commands that work for the Command Editor dialog box also work in line interface mode, providing the correct syntax is used.
Some commands specific to line interface mode are listed below.