We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Materials

Materials

Topics related to Granta Design and more.

Use ANSYS APDL To Export Stiffness Matrix

    • Vasily0616
      Subscriber
      Hi Everyone I need to export a 96*96 stiffness matrix about a gearbox with screws from ANSYS workbench, but I met some problems.
      At first, I defined some Beam contact as screws and gave them two steps Load and Lock in Analysis Setting.
      And I set 16 Remote Points in the middle of the bearings And named them in Command. I need to export the stiffness matrix about these points.
      Then I added a command in Analysis Setting, but the model stopped from here and met some errors.

       *** ERROR ***       CP =  842.062 TIME= 11:13:07
       The analysis type must not be changed after the first load step. For a new analysis, enter the FINISH command now and
      reenter using the   /SOLUTION command.

      There is my APDL code.

      antype,substr

      seopt,,1,2,1,resolve !CHANGES MADE HERE
      *DIM,node_pos,array,arg1,4
      *DIM,dof_text_col,CHAR,1,arg1*6
      *GET,unitsys,ACTIVE,0,UNITS

      *DO,i,1,arg1
       M,M%i%,ALL
       node_pos(i,1)=i
       node_pos(i,2)=NX(M%i%)
       node_pos(i,3)=NY(M%i%)
       node_pos(i,4)=NZ(M%i%)
       dof_text_col(1,6*(i-1)+1)='N%i%_DX'
       dof_text_col(1,6*(i-1)+2)='N%i%_DY'
       dof_text_col(1,6*(i-1)+3)='N%i%_DZ'
       dof_text_col(1,6*(i-1)+4)='N%i%_RX'
       dof_text_col(1,6*(i-1)+5)='N%i%_RY'
       dof_text_col(1,6*(i-1)+6)='N%i%_RZ'
      *ENDDO

      allsel,all

      I don't know how to improve my code to export the stiffness matrix.
      Thanks a lot in advance!


    • Ashish Khemka
      Forum Moderator


      Please see if the following link helps:

      Export Stiffness Matrix from Ansys (ansystips.com)

      Regards Ashish Khemka
    • Vasily0616
      Subscriber

      That's very useful about exporting parts! Thank you.
      BTW, I have met some new problems with stiffness matrix again, you may check this post if you please, thank you in advance
Viewing 2 reply threads
  • The topic ‘Use ANSYS APDL To Export Stiffness Matrix’ is closed to new replies.