Sunteți pe pagina 1din 6

2.

3 APDL Enhancements

• ANSYS Parametric Design Language enhancements


in ANSYS 5.7 include:
A. Matrix output capability

NEW FEATURES 5.7


B. C format data descriptors
C. String arrays and string array functions
D. Miscellaneous enhancements

Training Manual 001419


15 Aug 2000
2.3-1
APDL Enhancements
A. Matrix Output Capability
• *MWRITE allows matrices to be output to a file.
• *MWRITE,ParR,Fname,Ext,Dir,Label,n1,n2,n3

NEW FEATURES 5.7


– Writes ParR to a file using format descriptors (Fortran or C
based) specified on the subsequent line
– Output order controlled by Label option (JIK default) and
n1, n2, n3 available to limit output
– No limit to output line length
– Format descriptor line limited to 80 characters

Training Manual 001419


15 Aug 2000
2.3-2
APDL Enhancements
B. C Format Data Descriptors
• Available with *MSG, *VWRITE , And *MWRITE
commands
– %I for integer, %G for double precision, %C for

NEW FEATURES 5.7


alphanumeric data
– C descriptors assumed if first character of format line is
not left paranthesis “(“
Example:
*VWRITE,nmax,x1360
X Coordinate of node %I is %g

Output: X Coordinate of node 1360 is 0.234567

Training Manual 001419


15 Aug 2000
2.3-3
APDL Enhancements
C. String Arrays and Functions
• Each string can be up to 128 characters in length
*DIM,strparm,STRING,IMAX,JMAX,KMAX
• String functions:

NEW FEATURES 5.7


– STRSUB(Str1,nLoc,nChar) Sub-string
– STRCAT(Str1,Str2) Concatenate
– STRFILL(Str1,Str2,Nloc) Fill
– STRCOMP(Str1) Compress out blanks
– STRLEFT(Str1) Left justify
– STRPOS(Str1,Str2) Position
– STRLENG(Str1) Length to last non-blank
– UPCASE(Str1) Upper case
– LWCASE(Str1) Lower case

Training Manual 001419


15 Aug 2000
2.3-4
APDL Enhancements
D. Miscellaneous
• Additional comparison operation available on the
*IF and *ELSEIF commands with AND, OR, or XOR
options

NEW FEATURES 5.7


– *IF,A,EQ,B,AND,C,GT,D,THEN

• Additional *GET items


– Active platform name *GET,cparm,ACTIVE,,PLATFORM
– Maximum number of processors available
*GET,par,ACTIVE,,NPROC (also reported by the new
SETNPROC command)

Training Manual 001419


15 Aug 2000
2.3-5
APDL Enhancements
… Miscellaneous
• New character parameter functions
– Octal or hexadecimal value of a character parameter
VALOCT(cparm) VALHEX(cparm)

NEW FEATURES 5.7


– Octal or hexadecimal character representation of a numeric
parameter CHROCT(par) CHRHEX(par)

Training Manual 001419


15 Aug 2000
2.3-6

S-ar putea să vă placă și