1 / 6

2.3 APDL Enhancements

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.

iokina
Download Presentation

2.3 APDL Enhancements

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

More Related