How to create a material id contour plot in APDL?

Options
Vishnu
Vishnu Member, Employee Posts: 212
Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment

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: 212
    Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
    edited April 8
    Options
    !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