60 likes | 269 Views
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.
E N D
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 Training Manual 001419 15 Aug 2000 2.3-1
APDL EnhancementsA. Matrix Output Capability • *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 Training Manual 001419 15 Aug 2000 2.3-2
APDL EnhancementsB. C Format Data Descriptors • 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 Training Manual 001419 15 Aug 2000 2.3-3
APDL EnhancementsC. String Arrays and Functions • 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 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 • *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) • Octal or hexadecimal character representation of a numeric parameter CHROCT(par) CHRHEX(par) Training Manual 001419 15 Aug 2000 2.3-6