text
stringlengths 0
39.3k
|
---|
If you ar e running ANSY S Fluen t under a Windo ws op erating sy stem, all char acters f ollowing the ! up |
to the ne xt newline char acter will b e execut ed.The r esults of a c ommand will app ear in the ANSY S |
Fluen t console , or in a separ ate windo w if the c ommand star ts an e xternal pr ogram, such as N otepad . |
> !del junk.* |
> !notepad script.rp |
!cd and !dir will e xecut e the DOS c ommands and the scr een output will app ear in the ANSY S Flu- |
ent console .The !cd command with no ar gumen t will displa y the cur rent working dir ectory in the |
ANSY S Fluen t console . |
Several examples of sy stem c ommands en tered in the c onsole ar e sho wn b elow. |
Example input (in b oxes) and output (in the ANSY S Fluen t console): |
> !cd |
p:/cfd/run/valve |
> !dir valve*.*/w |
Volume in drive P is users |
Volume Serial Number is 1234-5678 |
Directory of p:/cfd/run/valve |
valve1.cas valve1.msh valve2.cas valve2.msh |
4 File(s) 621,183 bytes |
0 Dir(s) 1,830,088,704 bytes free |
Release 2019 R3 - © ANSY S, Inc. All rights r eser ved. - Contains pr opr ietar y and c onfidential inf ormation |
of ANSY S, Inc. and its subsidiar ies and affiliat es. 16Text User In terface2.5. Text Menu Input fr om C haracter S trings |
When wr iting a Scheme e xtension func tion f or ANSY S Fluen t, it is of ten c onvenien t to be able t o include |
menu c ommands in the func tion. This c an b e done with ti-menu-load-string . For e xample , to |
open gr aphics windo w 2, use |
(ti-menu-load-string "di ow 2") |
A Scheme lo op tha t will op en windo ws 1 and 2 and displa y the fr ont view of the mesh in windo w 1 |
and the back view in windo w 2 is giv en b y |
(for-each |
(lambda (window view) |
(ti-menu-load-string (format #f "di ow ~a gr view rv ~a" |
window view))) |
’(1 2) |
’(front back)) |
This lo op mak es use of the format func tion t o constr uct the str ing used b y menu-load-string . |
This simple lo op c ould also b e wr itten without using menu c ommands a t all, but y ou need t o know |
the Scheme func tions tha t get e xecut ed b y the menu c ommands t o do it: |
(for-each |
(lambda (window view) |
(cx-open-window window) |
(display-mesh) |
(cx-restore-view view)) |
’(1 2) ’(front back)) |
String input c an also pr ovide an easy w ay to cr eate aliases within ANSY S Fluen t. For e xample , to cr eate |
an alias tha t will displa y the mesh, you c ould t ype the f ollowing: |
(alias ’dg (lambda () (ti-menu-load-string "/di gr"))) |
Then an y time y ou en ter dg from an ywher e in the menu hier archy, the mesh will b e dr awn in the ac tive |
windo w. |
Imp ortant |
ti-menu-load-string evalua tes the str ing ar gumen t in the t op le vel menu . It ignor es |
any menu y ou ma y be in when y ou in voke ti-menu-load-string . |
As a r esult , the c ommand |
(ti-menu-load-string "open-window 2 gr") ; incorrect usage |
will not w ork even if y ou t ype it fr om within the display/ menu—the str ing itself must |
cause c ontrol to en ter the display/ menu , as in |
(ti-menu-load-string "display open-window 2 mesh") |
17Release 2019 R3 - © ANSY S, Inc. All rights r eser ved. - Contains pr opr ietar y and c onfidential inf ormation |
of ANSY S, Inc. and its subsidiar ies and affiliat es.Text Menu Input fr om C haracter Strings2.6. Using the Text Interface Help S ystem |
The t ext user in terface pr ovides c ontext-sensitiv e online help .Within the t ext menu sy stem, you c an |
obtain a br ief descr iption of each of the c ommands b y en tering a ? followed b y the c ommand in |
question. |
Example: |
> ?dis |
display/: Enter the display menu. |
You c an also en ter a lone ? to en ter “help mo de.” In this mo de, you need only en ter the c ommand or |
menu name t o displa y the help message .To exit the help mo de t ype q or quit as f or a nor mal menu . |
Example: |
> ? |
[help-mode]> di |
display/: Enter the display menu. |
[help-mode]> pwd |
pwd: #[alias] |
(LAMBDA () |
(BEGIN |
(SET! pwd-cmd ((LAMBDA n |
n) ’system (IF (cx-send ’(unix?)) |
"pwd" |
"cd"))) |
(cx-send pwd-cmd))) |
[help-mode]> q |
To acc ess the help , type a ? at the pr ompt when y ou ar e pr ompt ed f or inf ormation. |
Example: |
> display/annotate Annotation text [""] ? |
Annotation text [""] |
Release 2019 R3 - © ANSY S, Inc. All rights r eser ved. - Contains pr opr ietar y and c onfidential inf ormation |
of ANSY S, Inc. and its subsidiar ies and affiliat es. 18Text User In terfaceAppendix A. Text Command List C hanges in ANSY S Fluen t 2019 R3 |
For a c omplet e listing of changes t o the Text Command List f or ANSY S Fluen t 2019 R3, refer to Text |
Command C hanges in ANSY S Fluen t 2019 R3 in the Fluen t Migration M anual . |
19Release 2019 R3 - © ANSY S, Inc. All rights r eser ved. - Contains pr opr ietar y and c onfidential inf ormation |
of ANSY S, Inc. and its subsidiar ies and affiliat es.Release 2019 R3 - © ANSY S, Inc. All rights r eser ved. - Contains pr opr ietar y and c onfidential inf ormation |
of ANSY S, Inc. and its subsidiar ies and affiliat es. 20Part II: Meshing M ode |
The sec tion descr ibes the t ext command listing f or F luen t in M eshing mo de. |
•boundary/ (p.23) lists the c ommands used f or cr eating , managing , mo difying , deleting b oundar y (fac e) |
zones and sur face mesh. |
•cad-assemblies/ (p.47) lists c ommands used t o interact with y our C AD mo del. |
•diagnostics/ (p.51) lists c ommands used t o find and r epair fac e zone pr oblems r elated t o connec tivit y |
and qualit y. |
•display/ (p.53) lists c ommands used t o control the r ender ing of y our mo del and mesh in the gr aphic al |
windo w. |
•exit (p.71) lists the c ommand t o close the pr ogram. |
•file/ (p.73) lists c ommands used t o input and output y our da ta. |