Open
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
When we read a user defined material database and try to get the list of material defined in the database using session.settings.setup.materials.list_materials()
, this command prints the materials onto fluent console and doesn't return a list. Also, the materials that gets printed onto the console are default materials that are defined instead of the materials defined in the database that was read.
If we use the TUI command, then correct material list gets printed.
📝 Steps to reproduce
session.tui.define.materials.data_base.database_type('user-defined', '"material_database.scm"')
material_list = session.settings.setup.materials.list_materials()
print(material_list)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2025R1
🐍 Which Python version are you using?
3.12
📦 Installed packages
aiohappyeyeballs==2.6.1
aiohttp==3.11.18
aiosignal==1.3.2
ansys-api-fluent==0.3.35
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.1
ansys-dpf-core==0.13.8
ansys-dpf-post==0.9.2
ansys-fluent-core==0.33.0
ansys-fluent-visualization==0.19.2
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.1
ansys-units==0.7.dev0
asttokens==3.0.0
attrs==25.3.0
certifi==2025.4.26
charset-normalizer==3.4.2
click==8.2.1
colorama==0.4.6
comm==0.2.2
contourpy==1.3.2
cycler==0.12.1
debugpy==1.8.14
decorator==5.2.1
defusedxml==0.7.1
Deprecated==1.2.18
docker==7.1.0
executing==2.2.0
fonttools==4.58.0
frozenlist==1.6.0
googleapis-common-protos==1.70.0
grpcio==1.71.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
idna==3.10
imageio==2.37.0
importlib_metadata==8.7.0
ipykernel==6.29.5
ipython==9.2.0
ipython_pygments_lexers==1.1.1
ipywidgets==8.1.7
jedi==0.19.2
joblib==1.5.0
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyterlab_widgets==3.0.15
kiwisolver==1.4.8
matplotlib==3.10.3
matplotlib-inline==0.1.7
more-itertools==10.7.0
msgpack==1.1.0
multidict==6.4.4
nest-asyncio==1.6.0
nltk==3.9.1
numpy==2.2.6
packaging==25.0
pandas==2.2.3
parso==0.8.4
pillow==11.2.1
platformdirs==4.3.8
pooch==1.8.2
prompt_toolkit==3.0.51
propcache==0.3.1
protobuf==4.25.7
psutil==7.0.0
pure_eval==0.2.3
pyansys-tools-report==0.8.2
Pygments==2.19.1
pyparsing==3.2.3
PySide6==6.8.3
PySide6_Addons==6.8.3
PySide6_Essentials==6.8.3
python-dateutil==2.9.0.post0
pytwin==0.9.1
pytz==2025.2
pyvista==0.45.2
pyvistaqt==0.11.2
pywin32==310
PyYAML==6.0.2
pyzmq==26.4.0
QtPy==2.4.3
regex==2024.11.6
requests==2.32.3
scooby==0.10.1
setuptools==80.8.0
shiboken6==6.8.3
six==1.17.0
stack-data==0.6.3
tornado==6.5
tqdm==4.67.1
traitlets==5.14.3
trame==3.9.0
trame-client==3.9.0
trame-common==0.2.0
trame-server==3.4.0
trame-vtk==2.8.15
trame-vuetify==3.0.1
typing_extensions==4.13.2
tzdata==2025.2
urllib3==2.4.0
vtk==9.4.2
wcwidth==0.2.13
widgetsnbextension==4.0.14
wrapt==1.17.2
wslink==2.3.4
yarl==1.20.0
zipp==3.21.0