Ansys Learning Forum › Forums › Installation and Licensing › Ansys Products › Mechanical to APDL script › Reply To: Mechanical to APDL script
April 1, 2024 at 12:53 pm
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:
- 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.