ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
423 stars 120 forks source link

Add a function to transcript MAPDL commands to PyMAPDL ones #1665

Closed clatapie closed 1 year ago

clatapie commented 1 year ago

Description of the feature

Create a basic function which transpose the MAPDL commands into PyMAPDL ones in a Python file. The output file may need to be modified but the majority of the commands will have been translated.

Examples:

  1. ET,9,SOLID185 --> mapdl.et('9', 'SOLID185')
  2. MPDATA,EX,1,,200e3 --> mapdl.mpdata('EX', '1','','200e3') # warning: this command may require modifications

Steps for implementing the feature

Useful links and references

No response

pmaroneh commented 1 year ago

Out of curiosity, isn't it what convert_script() and convert_apdl_block() do?

clatapie commented 1 year ago

I didn't know those commands, I will take a look at them. Thank you @pmaroneh !

germa89 commented 1 year ago

Hi @clatapie

Please check: https://mapdl.docs.pyansys.com/user_guide/convert.html