Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different error messages for incorrect assignment in pyfluent vs pyconsole #2803

Closed
2 tasks done
millerj97 opened this issue May 10, 2024 · 2 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@millerj97
Copy link
Collaborator

馃攳 Before submitting the issue

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

馃悶 Description of the bug

Low priority issue, tracking for testing.
Error message when attempting to assign a quantity to a setting is different and less helpful in pyfluent standalone:

solver.setup.boundary_conditions.pressure_outlet['outlet'].turbulence.turbulent_intensity = mass output ---> Could not handle the quantity, '(200.0, "kg")' for the path, setup/boundary-conditions/pressure-outlet/outlet/turbulence/backflow-turbulent-intensity.
solver.setup.boundary_conditions.pressure_outlet['outlet'].turbulence.turbulent_intensity = mass output ---> 'backflow_turbulent_intensity_alias' object has no attribute 'allowed_values'

馃摑 Steps to reproduce

Load a case in pyfluent
import quantity class
create quantity
assign the quantity to a boundary condition object with non-matching units
repeat in pyconsole

馃捇 Which operating system are you using?

Windows

馃搥 Which ANSYS version are you using?

v242

馃悕 Which Python version are you using?

3.10

馃摝 Installed packages

ansys.fluent.core = 0.20.1
@millerj97 millerj97 added the bug Something isn't working label May 10, 2024
@millerj97
Copy link
Collaborator Author

@cj-hodgson

@hpohekar
Copy link
Collaborator

hpohekar commented Jun 5, 2024

@millerj97 @seanpearsonuk @mkundu1

We are getting same error message for both PyFluent and PyConsole.

PyFluent

image

PyConsole

image

@hpohekar hpohekar closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants