How to create a material id contour plot in APDL?

Vishnu
Vishnu Member, Employee Posts: 222
100 Comments 100 Likes Second Anniversary Name Dropper
✭✭✭✭

This is a 3 step process
1. Create an array of MATIDS and ELEMENTIDS using *VGET
2. Use DESOL command to overwrite an elemental result
3. Use PLESOL to plot them back

Tagged:

Comments

  • Vishnu
    Vishnu Member, Employee Posts: 222
    100 Comments 100 Likes Second Anniversary Name Dropper
    ✭✭✭✭
    edited April 8
    !STEP 1
    /PREP7
    *VGET, MATIDS, ELEM, , ATTR, MAT
    *VGET, elemlist, ELEM, , elist
    
    !STEP2
    /POST1
    *GET, ELEM_MAX, ELEM, 0, NUM, MAX
    *DO,E_count,1,ELEM_MAX
        DESOL,elemlist(E_count),ALL,S,X,MATIDS(E_count)
    *ENDDO
    
    !STEP 3
    plesol,S,X