I am trying to create a code to calculate the Young's modulus and shear modulus of RVE.

I would like to get the sum of the reaction force of the X-direction surface of RVE.

I created the below code, but there is an error.

NSEL,S,LOC,X,LXMAX

*GET,NUM_NODES,NODE,0,COUNT

TOTAL_RF_SUM = 0

*DO,i,1,NUM_NODES,1

*GET,NODE_NUM,NODE,NUM,i

*GET,RF_SUM,NODE,NODE_NUM,RF,FX

TOTAL_RF_SUM = TOTAL_RF_SUM + RF_SUM

*ENDDO

(the length of RVE in X direction = LXMAX)

I think line 3,4 in my code have some mistakes, but I am not familiar with ANSYS APDL.

I will appreciate it if you let me know the mistakes. Thanks.

More Jonghyun Kim's questions See All
Similar questions and discussions