Upload
basil-johns
View
26
Download
0
Embed Size (px)
DESCRIPTION
2.3 APDL Enhancements. ANSYS Parametric Design Language enhancements in ANSYS 5.7 include: A.Matrix output capability B.C format data descriptors C.String arrays and string array functions D.Miscellaneous enhancements. APDL Enhancements A. Matrix Output Capability. - PowerPoint PPT Presentation
Citation preview
Training Manual 00141915 Aug 2000
2.3-1
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.72.3 APDL Enhancements
• ANSYS Parametric Design Language enhancements in ANSYS 5.7 include:
A.Matrix output capability
B.C format data descriptors
C.String arrays and string array functions
D.Miscellaneous enhancements
Training Manual 00141915 Aug 2000
2.3-2
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7
• *MWRITE allows matrices to be output to a file.
• *MWRITE,ParR,Fname,Ext,Dir,Label,n1,n2,n3
– 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
APDL Enhancements A. Matrix Output Capability
Training Manual 00141915 Aug 2000
2.3-3
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7
• Available with *MSG, *VWRITE , And *MWRITE commands
– %I for integer, %G for double precision, %C for 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
APDL Enhancements B. C Format Data Descriptors
Training Manual 00141915 Aug 2000
2.3-4
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7
• Each string can be up to 128 characters in length *DIM,strparm,STRING,IMAX,JMAX,KMAX
• String functions:– 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
APDL Enhancements
C. String Arrays and Functions
Training Manual 00141915 Aug 2000
2.3-5
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7APDL Enhancements
D. Miscellaneous
• Additional comparison operation available on the *IF and *ELSEIF commands with AND, OR, or XOR options
– *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 00141915 Aug 2000
2.3-6
NEW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7N
EW
FEA
TU
RES 5
.7APDL Enhancements
… Miscellaneous
• New character parameter functions
– Octal or hexadecimal value of a character parameter VALOCT(cparm) VALHEX(cparm)
– Octal or hexadecimal character representation of a numeric parameter CHROCT(par) CHRHEX(par)