subtracting the deformations
subtracting the deformations
(OP)
Dear friends,
How can I subtract the deformations of load case 2 from load case 1? In the other words, how can I set the deformations to zero before starting the load case 2?
Regards
Jili
How can I subtract the deformations of load case 2 from load case 1? In the other words, how can I set the deformations to zero before starting the load case 2?
Regards
Jili





RE: subtracting the deformations
I have done some time ago such a thing. You could save the displacements of the first load case in a table parameter and then use the comand desol to substract the initial deformations (from the table) from the actual deformations. When you then plot the results, you will see only the displacements from the second load case.
Regards,
Alex
RE: subtracting the deformations
thanks a lot for your answer. Do you have any example that uses this command?
Regrads
Jili
RE: subtracting the deformations
CODE
lc=2 ! two load cases
! define vector of nodal displacements:
nsel,all
*get,ncount,node,,count
*dim,uvector,array,ncount,3,lc
! fill uvector with results from all loadcases:
*do,i,1,lc
set,i
*vget,uvector(1,1,i),node,1,u,x
*vget,uvector(1,2,i),node,1,u,y
*vget,uvector(1,3,i),node,1,u,z
*enddo
! substract results (first lc from second lc) and
! overwrite the second lc:
*voper,uvector(1,1,2),uvector(1,1,2),sub,uvector(1,1,1)
set,2
nd=ndnext(0)
*dowhile,nd
dnsol,nd,u,x,uvector(i,1,2)
dnsol,nd,u,y,uvector(i,2,2)
dnsol,nd,u,z,uvector(i,3,2)
nd=ndnext(nd)
*enddo
plnsol,u,sum
*enddo
I don't find the original code, so I'm not shure this code is 100% bug free. I hope it works.
Regards,
Alex
RE: subtracting the deformations
Regards
Jili