pymapdl
pymapdl copied to clipboard
Bug located in VSEL using KSWP field.
🤓 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
Using the VSEL with the KSWP field like this works.
mapdl.vsel('s', 'volu', '', 1, '', '', 1)
But this returns a TypeError
mapdl.vsel('s', 'volu', '', 1, kswp=1)
🕵️ Steps To Reproduce
import os
from ansys.mapdl.core import launch_mapdl
path = os.getcwd()
mapdl = launch_mapdl(run_location=path, port=50055)
mapdl.clear()
mapdl.prep7()
mapdl.block(0, 1, 0, 1, 0, 1)
mapdl.block(0, 1, 0, 1, 2, 3)
mapdl.vsel('s', 'volu', '', 1, kswp=1)
print(mapdl.geometry.vnum, mapdl.geometry.anum)
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
💾 Which MAPDL version are you using?
24.1
📝 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.