Hello everyone
I'm trying to simulate FG materials in ansys apdl to model a beam by using shell181 element.
I use this code to do that but it isn't work. The output results are the results without grading
MPDE,ALL,1
TBDE,ALL,1
MPTEMP,,,,,,,
*DO,J,1,Nsz_W,1
YY=CENTRY(J) ! get the Y-coordinate of the element centroid
Fai=(YY/LY)**0.2 ! calculate the grading ratio based on the Y-coordinate
EE=(EE1-EE2)*(1-Fai)+EE2
Ps=(Ps1-Ps2)*(1-Fai)+Ps2
Dn=(Dn1-Dn2)*(1-Fai)+Dn2
Knowing that ( Nsz_w are number of elements in y direction ) and EE1,EE2,PS1,PS2,DN1 and DN2 are material properties of the graded materials
is something wrong with this code ? or is there another way to simulate FGM ?
thanks in advance