Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

Mechanical to APDL script

    • Sébastien Labbé
      Subscriber

      Hello, is there a way to export a Mechanical project to an APDL script?

      We are using ANSYS 2023.

    • Avnish Pandey
      Ansys Employee

      Hi,

      You can make use of the ds.dat file to understand all the APDL commands that were inserted in the backend automatically in the FEA modelling on Workbench. You can create an input file out of it for APDL.

      In Workbench window, click on View, and select Files. From the list below, select ds.dat  file, and locate it by right cliking on "Open containing folder". Open the file in any text editor.

       

      Best regards,

    • danielshaw
      Ansys Employee

      Mechanical communicates with MAPDL using the ds.dat file. You can use that file, but I do not recommended it.  There are at least 4 other methods that I would recommend instead:

      1. Connect a Mechanical APDL system to the Mechanical system on Workbench and then RMB on the MAPDL system and Edit in MAPDL.  This approach will transfer the model into MAPDL and open the MAPDL UI.

       

       

      2. Save a MAPDL input file from within Mechanical and then use the INPUT command to read that file in MAPDL.

      3. Save a MAPDL db file from within Mechanical and the resume that file in MAPDL.

      4. Use the CDWRITE,DB command in a Mechanical Command Object to write a MAPDL ASCII .cdb file and then use the CDREAD command within MAPDL to read that cdb file.

Viewing 2 reply threads
  • The topic ‘Mechanical to APDL script’ is closed to new replies.