General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

how do i extract nodal displacements at each node at all time steps in transient analysis (workbench

    • mayakuntla92
      Subscriber

       i am working on wave propagation analysis in Ansys workbench

    • jpasquerell
      Ansys Employee

      Use of a command object under solution is one way.  Start with:


      /post1


      set,first


      *get,nres,active,,set,nset   ! number of results sets


      *get,ndmx,node,,num,maxd


      *dim,nodaldisp,array,nres,ndmx*3           ! for translation only or 6 if rots are needed


       


      then a do loop cycling through the result sets with *vget commands of the three nodal displacements.  See *MWRITE for output of the parameter to a file.


       

    • prasannakumar92
      Subscriber

      SET,FIRST


      NSEL,S,NODE,,141475,142273   !!!! 800 nodes


      NODENUMBER = 141475       !!! initial node number


      *DO,KK,1,800,1


      *VGET,RES,NODE,NODENUMBER,V,Y,,,4


      *CFOPEN,'MYFILE','CSV'


      *VWRITE,'NODAL','VELOCITIES'


      %I, %G


      *SET,NODENUMBER,NODENUMBER+1


      *ENDDO


      *CFCLOS


       


      is my code correct??? please help me out

    • prasannakumar92
      Subscriber

       i want only displacements in y direction....

    • prasannakumar92
      Subscriber

      SET,LIST


      *DIM,VELY,ARRAY,3125,800  !!!!! FOR 800 NODES AT 3125 TIME STEPS


      NODENUMBER=141475          ! INITIAL NODE NUMBER


      *CFOPEN,VEL,CSV


      *DO,KK,1,800,1


      *VGET,VELY(1,KK),NODE,NODENUMBER,V,Y,,,4


      *VWRITE,VELY(1)


      (E15.8)


      NODENUMBER=NODENUMBER+1


      *ENDDO


      *CFCLOSE


       


      another code to extract results at 3125-time steps


      I am unable to write results to CSV file instead it is writing all zeros


      any help will be appreciated???

Viewing 4 reply threads
  • The topic ‘how do i extract nodal displacements at each node at all time steps in transient analysis (workbench’ is closed to new replies.