ansys / pymapdl

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

On the MSTOLE the two fields with component names seem to require the names be enclosed in single quotes by MAPDL aaS. #3053

Open mikerife opened 2 months ago

mikerife commented 2 months ago

🤓 Before submitting the issue

🔍 Description of the bug

The input file converter does not add the necessary single quotes to two fields in MSTOLE. For example from VM271 this MAPDL command:

MSTOLE,1,'COM152','COM116'

Is converted to:

mapdl.mstole(1, "COM152", "COM116")

Instead of this:

mapdl.mstole(1, " 'COM152' ", " 'COM116' ")

I added spaces between the " and ' just to make it easier to read. mike

🕵️ Steps To Reproduce

The log will automatically be formatted as Python code! No need to type backticks.

💻 Which Operating System are you using?

Windows

🐍 Which Python version are you using?

3.10

💾 Which MAPDL version are you using?

2023 R2

📝 PyMAPDL Report

Show the Report! ```text # PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here ```

📝 Installed packages

Show the installed packages! ```text # PASTE HERE THE OUTPUT OF `python -m pip freeze` here ```

📝 Logger output file

Show the logger output file. ```text # PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE. ```