Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

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

How to create a sub.-file from scratch?

    • bcho
      Subscriber

      Hello,


      I'm trying to create a sub.-file from scratch. I do the following steps:


      *dim,matr,...
      *set,matr,.... (create stiffness matrix that should be read to sub.-file)


      *dim,rowinfo,...
      *set,rowinfo,...(create row information array)


      *DMAT,Stiffmatr,,IMPORT,APDL,matr (import Apdl array with dmat)


      *EXPORT,Stiffmatr,SUB,Gen.sub,STIFF,rowinfo (export stiffness matrix to sub.-file using the row information array)


      Unfortunately I get the following error:
       *EXP Command : Matrix/Vector ROWINFO cannot be found.


      Does anyone know what's wrong with my commands? Thanks in advance.

    • Sandeep Medikonda
      Ansys Employee

      Hi,


      If you know what to put in the sub file, then please refer to section 4.5 of the ANSYS Parametric Design Language Guide which discusses an example:


      https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v192/ans_apdl/apdlsuper.html


      It looks like you are specifying the input in the rowinfo matrix.


      Above is true only if you know what to put in the sub file. What is your scenario and what version are you using? You should be able to create a CMS superelement within Mechanical (which is basically the sub file)

    • bcho
      Subscriber

      Thanks for your response. I already solved my problem with the same web site you are referring to.

Viewing 2 reply threads
  • The topic ‘How to create a sub.-file from scratch?’ is closed to new replies.
[bingo_chatbox]