text
stringlengths 0
39.3k
|
---|
9Release 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 S ystem> rc new_file.cas
|
Imp ortant
|
In hist ory, only rc (an alias f or read-case ) will b e sa ved, sinc e new_file.cas is a user
|
input t o the alias-func tion.
|
Commands r ecalled fr om hist ory can b e edit ed or c orrected using the Backspac e key and the lef t and
|
right arrow keys.
|
2.1.3. Scheme E valua tion
|
If you en ter an op en par enthesis ,(, at the menu pr ompt , then tha t par enthesis and all char acters up
|
to and including the ma tching closing par enthesis ar e passed t o Scheme t o be evalua ted, and the
|
result of e valua ting the e xpression is displa yed.
|
> (define a 1)
|
a
|
> (+ a 2 3 4)
|
10
|
2.1.4. Aliases
|
Command aliases c an b e defined within the menu sy stem. As with the Linux csh shell, aliases tak e
|
precedenc e over command e xecution. The f ollowing aliases ar e pr edefined in C ortex:error ,pwd ,
|
chdir ,ls,., and alias .
|
error
|
displa ys the Scheme objec t tha t was the “irritan t” in the most r ecent Scheme er ror in terrupt.
|
pwd
|
prints the w orking dir ectory in which all file op erations will tak e plac e.
|
chdir
|
will change the w orking dir ectory.
|
ls
|
lists the files in the w orking dir ectory.
|
. (period)
|
prompts y ou f or a jour nal file name and then r un the jour nal file y ou ha ve sp ecified .
|
alias
|
displa ys the list of symb ols cur rently aliased .
|
2.2. Text Prompt S ystem
|
Commands r equir e various ar gumen ts, including numb ers, filenames , yes/no r esponses , char acter str ings ,
|
and lists . A unif orm in terface to this input is pr ovided b y the t ext prompt sy stem. A pr ompt c onsists of
|
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. 10Text User In terfacea pr ompt str ing, followed b y an optional units str ing enclosed in par entheses , followed b y a default
|
value enclosed in squar e br ackets.The f ollowing sho ws some e xamples of pr ompts:
|
filled-mesh? [no] Enter
|
shrink-factor [0.1] Enter
|
line-weight [1] Enter
|
title [""] Enter
|
The default v alue f or a pr ompt is acc epted b y pr essing Enter on the k eyboard or t yping a , (comma).
|
Imp ortant
|
Note tha t a c omma is not a separ ator. It is a separ ate token tha t indic ates a default v alue .
|
The sequenc e “ 1,2” results in thr ee v alues; the numb er 1 f or the first pr ompt , the default
|
value f or the sec ond pr ompt , and the numb er 2 f or the thir d pr ompt.
|
A shor t help message c an b e displa yed a t an y pr ompt b y en tering a ?. (See Using the Text Interface
|
Help S ystem (p.18).)
|
To ab ort a pr ompt sequenc e, simply pr ess Ctrl+c.
|
2.2.1. Numb ers
|
The most c ommon pr ompt t ype is a numb er. Numb ers c an b e either in tegers or r eal numb ers.Valid
|
numb ers ar e, for e xample ,16,-2.4 ,.9e5 , and +1e-5 .
|
•Integers c an also b e sp ecified in binar y, octal, and he xadecimal f orm.
|
•The decimal in teger 31 c an b e en tered as 31,#b11111 ,#o37 , or #x1f .
|
•In Scheme , integers ar e a subset of r eals , so y ou do not need a decimal p oint to indic ate tha t a numb er is
|
real;2 is just as much a r eal as 2.0 .
|
•If you en ter a r eal numb er at an in teger pr ompt , any fractional par t will b e truncated. For e xample ,1.9
|
will b ecome 1.
|
2.2.2. Booleans
|
Some pr ompts r equir e a y es-or-no r esponse . A y es/no pr ompt will acc ept either yes or y for a p ositiv e
|
response , and no or n for a nega tive response .Yes/no pr ompts ar e used f or c onfir ming p otentially
|
danger ous ac tions such as o verwriting an e xisting file , exiting without sa ving c ase, data, mesh, and so
|
on.
|
Some pr ompts r equir e ac tual Scheme B oolean v alues (tr ue or false). These ar e en tered with the Scheme
|
symb ols f or tr ue and false ,#t and #f.
|
11Release 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 Prompt S ystem2.2.3. Strings
|
Character str ings ar e en tered in double quot es, for e xample ,“red” . Plot titles and plot legend titles
|
are examples of char acter str ings . Character str ings c an include an y char acters, including blank spac es
|
and punc tuation.
|
2.2.4. Symb ols
|
Symb ols ar e en tered without quot es. Zone names , sur face names , and ma terial names ar e examples
|
of symb ols. Symb ols must star t with an alphab etical char acter (tha t is, a lett er), and c annot include
|
any blank spac es or c ommas .
|
You c an use wild c ards t o sp ecify z one names when using the TUI. Some e xamples ar e:
|
•* will tr ansla te as “all z ones ”.
|
For e xample ,
|
–/display/boundary-grid * enables y ou t o displa y all the b oundar y zones in the mesh.
|
–/boundary/delete-island-faces wrap* enables y ou t o delet e island fac es on all z ones
|
prefixed b y wrap .
|
•> will tr ansla te as “all z ones visible in the gr aphics windo w”.
|
For e xample ,/boundary/manage/delete >, yes enables y ou t o delet e all visible z ones .
|
•^ will tr ansla te as “all z ones selec ted in the gr aphics windo w”.
|
For e xample ,/boundary/manage/delete ^, yes enables y ou t o delet e all selec ted z ones .
|
•[object_name will tr ansla te as “all z ones with the name objec t_name ”.
|
For e xample ,/boundary/manage/delete [box, yes enables y ou t o delet e all z ones of an
|
objec t with the name box.
|
•[object_name/label_name will tr ansla te as "all z ones with label_name of objec t_name "
|
For e xample ,/boundary/manage/delete [fluid/box*, yes enables y ou t o delet e all
|
zones of an objec t with the name fluid and c ompr ising fac e zone lab els box*.
|
If you use a wild c ard for an op eration tha t requir es a single z one as input , you will b e pr ompt ed t o
|
specify a single z one fr om the list of those tha t ma tch the e xpression sp ecified .
|
> /boundary/manage/name wall* <Enter>
|
wall-1 wall-3 wall-5
|
wall-2 wall-4 wall-6
|
Zone Name [ ]
|
2.2.5. Filenames
|
Filenames ar e ac tually just char acter str ings . For c onvenienc e, filename pr ompts do not r equir e the
|
string t o be sur rounded with double quot es. If, for some e xceptional r eason, a filename c ontains an
|
emb edded spac e char acter, then the name must b e sur rounded with double quot es.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.