Skip to content

Missing attribute roughness_correlation under transition_sst in PyFluent #4026

Open
@ansytalekar

Description

@ansytalekar

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

The following issue occurs when running the converted python journal using pyfluent:

Traceback (most recent call last):
  File "~/roughwall_plate_r1.pyansys.py", line 10, in <module>
    solver.settings.setup.models.viscous.transition_sst.roughness_correlation.geometric_roughness_height.option = 'constant'
  File "~/PyAnsys/lib/python3.10/site-packages/ansys/fluent/core/solver/flobject.py", line 1145, in __getattribute__
    attr = super().__getattribute__(name)
AttributeError: 'transition_sst' object has no attribute 'roughness_correlation'

The error does not occur if using the python console in Fluent

I can provide the related .cas. and .dat file if needed, unable to attach to the bug

📝 Steps to reproduce

import os

solver.settings.file.read_case_data(file_name = 'Case1_ini.cas')
solver.settings.file.show_configuration()
solver.settings.mesh.check()
solver.settings.setup.models.viscous.transition_sst.roughness_correlation.geometric_roughness_height.option = 'constant'

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Ansys v252
Fluent Build: May 14 2025 14:46:08 EDT Build Id: 201

Also occurs on Linux platforms

🐍 Which Python version are you using?

3.10

📦 Installed packages

absl-py==2.2.2
ansys-api-fluent==0.3.35
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.1
ansys-fluent-core==0.30.5
ansys-fluent-visualization==0.19.2
ansys-platform-instancemanagement==1.1.2
ansys-tools-filetransfer==0.1.1
ansys-units==0.4.0
asttokens==3.0.0
astunparse==1.6.3
bcrypt==4.3.0
blinker==1.9.0
certifi==2025.4.26
cffi==1.17.1
charset-normalizer==3.4.2
click==8.2.0
contourpy==1.3.2
cryptography==44.0.3
cycler==0.12.1
dash==3.0.4
dash-bootstrap-components==2.0.2
decorator==5.2.1
defusedxml==0.7.1
docker==7.1.0
et_xmlfile==2.0.0
exceptiongroup==1.3.0
executing==2.2.0
Flask==3.0.3
flatbuffers==25.2.10
fonttools==4.58.0
gast==0.6.0
google-pasta==0.2.0
googleapis-common-protos==1.70.0
grpcio==1.71.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
h5py==3.13.0
idna==3.10
imageio==2.37.0
importlib_metadata==8.7.0
ipython==8.36.0
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.6
joblib==1.5.0
kaleido==0.2.1
keras==3.9.2
kiwisolver==1.4.8
libclang==18.1.1
lxml==5.4.0
Markdown==3.8
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.10.3
matplotlib-inline==0.1.7
mdurl==0.1.2
ml_dtypes==0.5.1
namex==0.0.9
narwhals==1.39.1
nest-asyncio==1.6.0
nltk==3.9.1
numpy==2.1.3
nvidia-nccl-cu12==2.26.5
openpyxl==3.1.5
opt_einsum==3.4.0
optree==0.15.0
packaging==25.0
pandas==2.2.3
paramiko==3.5.1
paramiko-expect==0.3.5
parso==0.8.4
pexpect==4.9.0
pillow==11.2.1
platformdirs==4.3.8
plotly==6.1.0
pooch==1.8.2
prompt_toolkit==3.0.51
protobuf==4.25.7
psutil==7.0.0
ptyprocess==0.7.0
pure_eval==0.2.3
pyansys-tools-report==0.8.2
pycparser==2.22
Pygments==2.19.1
PyNaCl==1.5.0
pyparsing==3.2.3
PySide6==6.8.3
PySide6_Addons==6.8.3
PySide6_Essentials==6.8.3
python-dateutil==2.9.0.post0
python-pptx==1.0.2
pytz==2025.2
pyvista==0.45.2
pyvistaqt==0.11.2
PyYAML==6.0.2
QtPy==2.4.3
regex==2024.11.6
requests==2.32.3
retrying==1.3.4
rich==14.0.0
scikit-learn==1.6.1
scipy==1.15.3
scooby==0.10.1
seaborn==0.13.2
shiboken6==6.8.3
six==1.17.0
stack-data==0.6.3
tensorboard==2.19.0
tensorboard-data-server==0.7.2
tensorflow==2.19.0
tensorflow-io-gcs-filesystem==0.37.1
termcolor==3.1.0
threadpoolctl==3.6.0
tqdm==4.67.1
traitlets==5.14.3
typing_extensions==4.13.2
tzdata==2025.2
urllib3==2.4.0
vtk==9.4.2
wcwidth==0.2.13
Werkzeug==3.0.6
wrapt==1.17.2
xgboost==3.0.1
XlsxWriter==3.2.3
zipp==3.21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyFluent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions