pymapdl
pymapdl copied to clipboard
On the MSTOLE the two fields with component names seem to require the names be enclosed in single quotes by MAPDL aaS.
🤓 Before submitting the issue
- [X] I have visited the Troubleshooting section.
- [X] I have searched among the existing issues.
- [X] I am using a Python virtual environment.
- [X] I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using
pip install --upgrade --upgrade-strategy eager ansys-mapdl-corein your activated virtual environment.
🔍 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!
# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here
📝 Installed packages
Show the installed packages!
# PASTE HERE THE OUTPUT OF `python -m pip freeze` here
📝 Logger output file
Show the logger output file.
# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.