Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

subtracting the deformations 1

Status
Not open for further replies.

jiligeo

Geotechnical
Feb 24, 2005
145
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
 
Replies continue below

Recommended for you

Hi,

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
 
Dear Alex,
thanks a lot for your answer. Do you have any example that uses this command?

Regrads
Jili
 
For example (just 2 load cases):

Code:
/post1
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
 
Dear Alex, Thanks a lot for your valuable answer,

Regards
Jili
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor