ansys / pyfluent

Pythonic interface to Ansys Fluent
https://fluent.docs.pyansys.com
MIT License
253 stars 42 forks source link

Bug located in ... flobject.py #2476

Closed prmukherj closed 6 months ago

prmukherj commented 6 months ago

🔍 Before submitting the issue

🐞 Description of the bug

1.

x = s.setup.boundary_conditions.velocity_inlet["inlet1"].turbulence x.turbulent_intensity()
0.05 x.turbulent_intensity.class.bases (<class 'ansys.fluent.core.solver.flobject.Real'>, <class 'ansys.fluent.core.solver.flobject._HasAllowedValuesMixin'>)

2.

AttributeError: value_with_units is not an allowed Settings objects name.

Update the message to be more generic.

📝 Steps to reproduce

x = s.setup.boundary_conditions.velocity_inlet["inlet1"].turbulence x.turbulent_intensity.class.bases

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.8

📦 Installed packages

.
mkundu1 commented 6 months ago

Cannot reproduce with the latest Fluent 24.2, I think the issue was recently fixed in Fluent.