![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Often, when writing a Scheme extension function for ANSYS FLUENT, it is convenient to be able to include menu commands in the function. This can be done with ti-menu-load-string. For example, to open graphics window 2, use
(ti-menu-load-string "di ow 2") |
(for-each (lambda (window view) (ti-menu-load-string (format #f "di ow ~a gr view rv ~a" window view))) '(1 2) '(front back)) |
(for-each (lambda (window view) (cx-open-window window) (display-mesh) (cx-restore-view view)) '(1 2) '(front back)) |
String input can also provide an easy way to create aliases within ANSYS FLUENT. For example, to create an alias that will display the mesh, you could type the following:
(alias 'dg (lambda () (ti-menu-load-string "/di gr"))) |
|
ti-menu-load-string evaluates the string argument in the top level menu. It ignores any menu you may be in when you invoke
ti-menu-load-string.
|
As a result, the command
(ti-menu-load-string "open-window 2 gr") ; incorrect usage |
(ti-menu-load-string "display open-window 2 mesh") |