* VWRITE command in ANSYS

1. * VWRITE command

ANSYS output to a file, using * VWRITE command, using the following command:
* VWRITE, Par1, Par2, .... Par19
a maximum of 19 variables can write, but not in the line of output should be written on the back Fortran format descriptors , they have another line in this same input file, immediately after the command * VWRITE. Format must use each data item a descriptor word is not written as follows

A=3.1415926
*CFOPEN,TEST,dat
*VWRITE,A
(f5.2)
*CFCLOSE
finish

Operating results View:

  1. APDL will store the file to the inp, 0test.inp] [e.g.
  2. Loading function, enter: / INPUT, 0test, InP
  3. View files in the root directory

2. Fortran field descriptors

Formatting commands, [] may be omitted in
Aw w characters to the output string width of
a gap defined BN text box is nothing need be used if the input
space defined Representative 0 BZ text box, need only input use
Dw.d character width w to output index type float, with fractions of d characters wide
Ew.d [Ee] in the output width w character index type float, fractions of a character width d , e exponent part representing characters
ENw.d [Ee] output exponential type float, engineering notation
ESw.d [Ee] output exponential type float, scientific notation
Fw.d character width w to be floating-point output, with fractions of d characters wide
Gw.d [Ee] in character width w outputting any kind of data
Iw [.m] in w characters wide output integers m digital outputs least
Lw to w characters wide outputs truth values T or F
nX skip the position of the output position to the right of n
/ wrap
: when no more data end output
kP K value of the control inputs and outputs of the SCALE
Tn of the output position to the present row n-th column
position TLn output n columns to the left relative movement
TRn output position to the right N columns of moving
the SP value is positive with "positive sign"
the SS SP to cancel
the following Fortran 90 added
Bw [.m] convert integer to binary outputs, the outputs representing character width w, a fixed m digital outputs. value of m can not be given
Converting Ow [.m] octal integer outputs, the outputs representing character width w, a fixed m digital outputs. m value may not be given
Zw [.m] hex convert integer to be output, the output representing characters width w, a fixed m digital outputs. value of m can not be given

Guess you like

Origin www.cnblogs.com/gaozihan/p/11200897.html