HJ) Example(s) of the use of the DESL
print command.
print
files run45 names alpha = alpw cl cd run point f6.0
output out45 theta gt 5 go
In this example, the SIF variables "alpha", "cl", "cd", "run",
and "point" will be printed from the file "run45" from the user"s
current directory. Here, the variable name "alpw" will
be printed as the label "alpha". All of these variables will be
printed in the default format except "point" which will be
printed in "f6.0" format. Additionally, only SIF data records
from "run45" will be printed which correspond to values of
the variable "theta" which are greater than 5. The output will
be written not to the standard output device but to a file
named "out45".
print
files r12 lines 45 cols 130 type postscript
nameset 1 ?$41a$11, deg? = alpw C$DL = cl C$DD = cd f7.3
output out49 format f6.3
page 1 b 2 n b d b p -10 page 2 b c 1 b t 2 b 2 n b d b
nameset 2 alpw mach crm f7.4 cym f7.4 cy f7.4
title 2 ? Test = *test f5.0 *, run = *run f3.0 * ?
title 1 ? TABLE 1. Effect of $41b$11 on lateral coefficients. ?
go
In this example, the file "r12" from the current directory will
be accessed and printed. The file "out49" will be the recipient
of the printed report. The default "page" size has been set
at 45 lines by 130 columns for this execution of "print". The
report will consist of pages with 2 distinct compositions. The
output file, "out49", will be in PostScript format.
Each page of the report which corresponds to "page 1" will
contain, in this order, two blank lines, a line of the
alternate names specified for the specified SIF variables
"alpha", "cl", and "cd", a blank line, 39 lines of
data (45 lines - all other type lines ), a blank line, and
a line showing the page number. Each page of the report
which corresponds to "page 2" will contain, in this order,
one blank line, a centered title line (title 1), a blank line,
an "as-justified" title line (title 2), two blank lines, a
line of the names "alpha", "mach", "q", "crms", "cyms", and
"cys", a blank line, 36 lines of data, and one last blank line.
print
files r101112 lines 45 cols 130 type postscript scale .6
nameset 1 point f6.0 ?$41a$11, deg? = alpw C$DL = cl C$DD = cd f9.5
output out48 format f7.4
at run -.5 c 2 c 3
page 1 b c 1 b d
nameset 1 M = mach f6.3 crm cym cy
title 1 ? Test = *test f5.0 * at *datetag* ?
title 2 ? Run *run f5.0* begins with point *point f6.0*?
title 3 headers
In this example, the file "r101112" from the current directory will
be accessed and printed. The file "out48" will be the recipient
of the printed report. The default "page" size has been set
at 45 lines by 130 columns for this execution of "print". The
report will consist of 1 page style. The output file, "out48",
will be in PostScript format.
Each page of the report will contain, in this order, one blank line,
centered title 1, a blank line and whatever amount of data that will
fit in the remaining space on the page. The "at" construct will
cause the titles 2 and 3 to be printed whenever the value of
"run" changes by more than .5. Because the value following "run"
is negative, the titles will be printed BEFORE the triggering
data record. Title 3 is a special type of title : "headers".
The contents of this title will be the same as the line of
names, established via "nameset", which could have been printed
as a standard part of the "page" had an "n" been included in the
page layout sequence. The output file "out48" as produced by
the example above is shown on the next page(s).
print
files answer page 1 b p -5 b t 1 b t 2 b n b 2 d g 2
pressure title 1 ? alpha = * alpha f7.2 * ? point eq 2539
title 2 ? mach = * mach *, q = * qo f7.3 * ? format f6.3
nameset 1 cpaun1 thru cpaun27 cpaun29 cpaun31 thru cpaun45
go
In this example all of the values of the SIF variables "cpaun1",
"cpaun2", ... , "cpaun45" will be printed out according to the
columnar spacing allowed. Because this is a "pressure" type
printing the width of each column is not a function of
the number of characters in a name, but only a function of
the page width, gap spacing in effect, and the real format
specification in effect for each variable value being printed.
One physical page of output will be printed, according to the
page specifications prescribed, for each qualifying SIF record
encountered.
The resulting print-out of the above example is follows.
|
| Page 1
|
| alpha = 34.46
|
| mach = 0.252, q = 0.628
|
| cpaun1 cpaun2 cpaun3 cpaun4 cpaun5 cpaun6 cpaun7
| cpaun8 cpaun9 cpaun10 cpaun11 cpaun12 cpaun13 cpaun14
| cpaun15 cpaun16 cpaun17 cpaun18 cpaun19 cpaun20 cpaun21
| cpaun22 cpaun23 cpaun24 cpaun25 cpaun26 cpaun27 cpaun29
| cpaun31 cpaun32 cpaun33 cpaun34 cpaun35 cpaun36 cpaun37
| cpaun38 cpaun39 cpaun40 cpaun41 cpaun42 cpaun43 cpaun44
| cpaun45
|
| 0.640 0.571 -0.347 -0.515 -0.640 -0.591 -0.379
| -0.268 -0.179 -0.237 -0.359 -0.536 -0.631 -0.572
| -0.373 0.535 0.480 0.451 0.336 -0.307 -0.532
| -0.571 -0.646 -0.650 -0.653 -0.536 -0.437 -0.302
| -0.136 -0.217 -0.289 -0.319 -0.392 -0.635 -0.643
| -0.671 -0.633 -0.578 -0.297 0.302 0.440 0.441
| 0.371

DESL Manager at ViGYAN, Inc.
30 Research Drive
Hampton, VA 23666
Voice: (757) 865-1400
Toll Free: (800) 288-3998
FAX: (757) 865-8177