Skip to content

Bug located in interp_star_status(status) in parameters.py #4206

@ChaiF1

Description

@ChaiF1

🤓 Before submitting the issue

🔍 Description of the bug

When reading matrices or vectors from a file, the mapdl instance loads the file into its memory (e.g. import a matrix from a file.full file). When running the *STATUS command in MAPDL, these files are then also reported as parameters like so:

APDLMATH PARAMETER STATUS-  (      2 PARAMETERS DEFINED)
 
  Name                   Type            Mem. (MB)       Dims            Workspace
 
   K                     SMAT            4.720           [19764:19764]           1
   M                     SMAT            2.728           [197

[fan.txt](https://github.com/user-attachments/files/22048602/fan.txt)

64:19764]           1
   file.full             C_FullFile                      --              --              --

The interp_star_status(status) command in parameters.py is not set up to handle such files encountered in the files.

The fan.txt file is added for reproduction. Should be converted to fan.inp file to be usable with the program. Hope this works as github does not support adding .inp files.

fan.txt

🕵️ Steps To Reproduce

# Error was used when using the math library. But the error comes from PyMAPDL
from os import getcwd
import ansys.math.core.math as pymath

cwd = getcwd()
mm = pymath.AnsMath(run_location = cwd, additional_switches = "-smp", override = True)
	
mm._mapdl.input(fname = "fan.inp") # Input function is what seems to load files into memory

mm._mapdl.slashsolu()
mm._mapdl.solve()

mm._mapdl.smat("K", "D", "IMPORT", "FULL", "file.full", "STIFF")
mm._mapdl.smat("M", "D", "IMPORT", "FULL", "file.full", "MASS")

K = mm.mat(name = "K")
M = mm.mat(name = "M")

mm.eigs(6, K, M)

💻 Which Operating System are you using?

Windows

🐍 Which Python version are you using?

3.10

💾 Which MAPDL version are you using?

2025R2

📝 PyMAPDL Report

Show the Report!

-------------------------------------------------------------------------------


PyMAPDL Software and Environment Report


Packages Requirements
*********************

Core packages
-------------
ansys.mapdl.core    : 0.70.dev0
numpy               : 2.2.6
platformdirs        : 4.3.8
scipy               : 1.15.3
grpc                : Package not found
ansys.api.mapdl.v0  : Package not found
ansys.mapdl.reader  : 0.55.1
google.protobuf     : Package not found
ansys-math-core     : 0.3.dev0

Optional packages
-----------------
matplotlib          : 3.10.5
pyvista             : 0.45.3
pyiges              : 0.3.2
tqdm                : 4.67.1
ansys-tools-visualization_interface: 0.9.2
pandas              : 2.3.1


Ansys Installation
******************
Version   Location
------------------
251       C:\Program Files\ANSYS Inc\v251
252       C:\Program Files\ANSYS Inc\v252
261       C:\Program Files\ANSYS Inc\v261


Ansys Environment Variables
***************************
ANSYS251_DIR                   C:\Program Files\ANSYS Inc\v251\ANSYS
ANSYS252_DIR                   C:\Program Files\ANSYS Inc\v252\ANSYS
ANSYS261_DIR                   C:\Program Files\ANSYS Inc\v261\ANSYS
ANSYSEM_ROOT251                C:\Program Files\ANSYS Inc\v251\AnsysEM
ANSYS_CONAN_VENV_PATH          D:\ANSYSDev\Sandbox\BuildDependencies\Conan\ConanEnv
ANSYS_WORKBENCH_LOGGING        1
ANSYS_WORKBENCH_LOGGING_AUTO_FLUSH 1
ANSYS_WORKBENCH_LOGGING_BASE_DIRECTORY D:\Logs
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL 2
AWP_ROOT251                    C:\Program Files\ANSYS Inc\v251
AWP_ROOT252                    C:\Program Files\ANSYS Inc\v252
AWP_ROOT261                    C:\Program Files\ANSYS Inc\v261
AWP_THIRDPARTYDV_DEV           D:\ANSYSDev\Sandbox\BuildDependencies\ThirdParty
CADOE_LIBDIR251                C:\Program Files\ANSYS Inc\v251\CommonFiles\Language\en-us
CADOE_LIBDIR252                C:\Program Files\ANSYS Inc\v252\CommonFiles\Language\en-us
CADOE_LIBDIR261                C:\Program Files\ANSYS Inc\v261\CommonFiles\Language\en-us

📝 Installed packages

Show the installed packages!

# PASTE HERE THE OUTPUT OF `python -m pip freeze` here

📝 Logger output file

Show the logger output file.

aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiosignal==1.4.0
ansys-api-mapdl==0.5.2
ansys-api-platform-instancemanagement==1.1.3
ansys-dpf-core==0.14.1
ansys-dpf-post==0.10.1
-e git+https://github.com/ansys/pymapdl.git@ec3cb1dd5d74f7f39e209aea53a85aa711e658ab#egg=ansys_mapdl_core
ansys-mapdl-reader==0.55.1
-e git+https://github.com/ansys/pyansys-math.git@d5233960a6d7ee48ecd031713bc7e3999d59b09f#egg=ansys_math_core
ansys-platform-instancemanagement==1.1.2
ansys-tools-path==0.7.3
ansys-tools-visualization-interface==0.9.2
anyio==4.10.0
appdirs==1.4.4
argon2-cffi==25.1.0
argon2-cffi-bindings==25.1.0
arrow==1.3.0
asttokens==3.0.0
async-lru==2.0.5
async-timeout==5.0.1
attrs==25.3.0
babel==2.17.0
beautifulsoup4==4.13.4
bleach==6.2.0
certifi==2025.8.3
cffi==1.17.1
charset-normalizer==3.4.3
click==8.2.1
colorama==0.4.6
comm==0.2.3
contourpy==1.3.2
cycler==0.12.1
debugpy==1.8.16
decorator==5.2.1
defusedxml==0.7.1
exceptiongroup==1.3.0
executing==2.2.0
fastjsonschema==2.21.2
fonttools==4.59.1
fqdn==1.5.1
frozenlist==1.7.0
geomdl==5.4.0
grpcio==1.74.0
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.10
importlib_metadata==8.7.0
ipykernel==6.30.1
ipython==8.37.0
ipywidgets==8.1.7
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.6
json5==0.12.1
jsonpointer==3.0.0
jsonschema==4.25.0
jsonschema-specifications==2025.4.1
jupyter-events==0.12.0
jupyter-lsp==2.2.6
jupyter_client==8.6.3
jupyter_core==5.8.1
jupyter_server==2.16.0
jupyter_server_terminals==0.5.3
jupyterlab==4.4.6
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==3.0.15
kiwisolver==1.4.9
lark==1.2.2
MarkupSafe==3.0.2
matplotlib==3.10.5
matplotlib-inline==0.1.7
mistune==3.1.3
more-itertools==10.7.0
msgpack==1.1.1
multidict==6.6.4
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
notebook_shim==0.2.4
numpy==2.2.6
overrides==7.7.0
packaging==25.0
pandas==2.3.1
pandocfilters==1.5.1
parso==0.8.4
pillow==11.3.0
platformdirs==4.3.8
pooch==1.8.2
prometheus_client==0.22.1
prompt_toolkit==3.0.51
propcache==0.3.2
protobuf==4.25.8
psutil==7.0.0
pure_eval==0.2.3
pyansys-tools-versioning==0.6.0
pycparser==2.22
Pygments==2.19.2
pyiges==0.3.2
pyparsing==3.2.3
python-dateutil==2.9.0.post0
python-json-logger==3.3.0
pytz==2025.2
pyvista==0.45.3
pywin32==311
pywinpty==3.0.0
PyYAML==6.0.2
pyzmq==27.0.1
referencing==0.36.2
requests==2.32.4
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rfc3987-syntax==1.1.0
rpds-py==0.27.0
scipy==1.15.3
scooby==0.10.1
seaborn==0.13.2
Send2Trash==1.8.3
six==1.17.0
sniffio==1.3.1
soupsieve==2.7
stack-data==0.6.3
tabulate==0.9.0
terminado==0.18.1
tinycss2==1.4.0
tomli==2.2.1
tornado==6.5.2
tqdm==4.67.1
traitlets==5.14.3
trame==3.11.0
trame-client==3.9.2
trame-common==1.0.1
trame-server==3.6.0
trame-vtk==2.9.1
trame-vuetify==3.0.2
types-python-dateutil==2.9.0.20250809
typing_extensions==4.14.1
tzdata==2025.2
uri-template==1.3.0
urllib3==2.5.0
vtk==9.4.2
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
websockets==15.0.1
widgetsnbextension==4.0.14
wslink==2.3.4
yarl==1.20.1
zipp==3.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions