change material property for name selected body using command snippets

Hi,

I want to change material property by using apdl commands snippets. I assign a material property at the beginning and change it in analysis setting. like this


in that command section , I type

FINISH

/PREP7

*GET, maxMaterial, MAT, 0, NUM, MAX

maxMaterial = maxMaterial+1


mp,ex,maxMaterial,10000

mp,nuxy,maxMaterial,0.45

mp,nuxz,maxMaterial,0.45

mp,nuyz,maxMaterial,0.45


cmsel,s,target



mpchg,maxMaterial,all

FINISH

/SOLU



my displacement is set to 3mm. the program could run successfully, however, the result seems nothing moved.


I want to know what happed in this processure

This discussion has been closed.