pymapdl icon indicating copy to clipboard operation
pymapdl copied to clipboard

Bug located in VSEL using KSWP field.

Open mikerife opened this issue 1 year ago • 0 comments

🤓 Before submitting the issue

🔍 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.

mikerife avatar Aug 12 '24 17:08 mikerife