Discuss Simulation

Discuss Simulation

APDL Command

    • KK
      Subscriber

       want to save the modeshapes from Workbench externally with APDL Command. For this I have the following code. However, the code does not always work or only for the x-values and not always there. I cannot find the error.


      set,first
      *dim,shape_x,table,4,4
      *do,ii,1,4
      set,1,ii
      *get,MP1,node,400,U,x
      shape_x(ii,1)=MP1
      *get,MP2,node,357,U,x
      shape_x(ii,2)=MP2
      *get,MP3,node,205,U,x
      shape_x(ii,3)=MP3
      *ENDDO

      *dim,shape_y,table,4,4
      *do,ii,1,4
      set,1,ii
      *get,MP1,node,400,U,y
      shape_y(ii,1)=MP1
      *get,MP2,node,357,U,y
      shape_y(ii,2)=MP2
      *get,MP3,node,205,U,y
      shape_y(ii,3)=MP3
      *ENDDO

      *dim,shape_z,table,4,4
      *do,ii,1,4
      set,1,ii
      *get,MP1,node,400,U,z
      shape_z(ii,1)=MP1
      *get,MP2,node,357,U,z
      shape_z(ii,2)=MP2
      *get,MP3,node,200,U,z
      shape_z(ii,3)=MP3
      *ENDDO

      *CFOPEN,modes,txt
      *vwrite,shape_x(1,1),shape_x(1,2),shape_x(1,3),shape_y(1,4),shape_y(1,5),shape_y(1,6),shape_z(1,7),shape_z(1,8),shape_z(1,9)
      (F)
      *CFCLOS

    • Ashish Khemka
      Ansys Employee

      Hi,

      Please see if the following post helps you:

      Export modeshapes with apdl command to csv or txt-file (ansys.com)

      Thanks and Regards,

      Ashish Khemka

Viewing 1 reply thread
  • You must be logged in to reply to this topic.