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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update attribute check in settings name exception #2778

Closed
hpohekar opened this issue May 3, 2024 · 0 comments · Fixed by #2777
Closed

Update attribute check in settings name exception #2778

hpohekar opened this issue May 3, 2024 · 0 comments · Fixed by #2777
Assignees

Comments

@hpohekar
Copy link
Collaborator

hpohekar commented May 3, 2024

>>> solver.setup.boundary_conditions['abc'].name = 'inlet2'
 
Error: rename: 'inlet2' is not a valid name
Error Object: "setup/boundary-conditions/velocity-inlet"
 
Error: rename: 'inlet2' is not a valid name
Error Object: "setup/boundary-conditions/velocity-inlet"
 
Error: rename: 'inlet2' is not a valid name
Error Object: "setup/boundary-conditions/velocity-inlet"
 
Error: rename: 'inlet2' is not a valid name
Error Object: "setup/boundary-conditions/velocity-inlet"
Traceback (most recent call last):
  File "d:\ANSYSDev\vXXX\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 1063, in __setattr__
    return attr.set_state(value)
  File "d:\ANSYSDev\vXXX\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 690, in set_state
    return self.flproxy.set_var(self.path, self.to_scheme_keys(state))
  File "d:\ANSYSDev\vXXX\fluent\fluent24.2\cortex\pylib\flapi\flproxy.py", line 5, in set_var
    return scheme.fl_set_var(path, value)
  File "d:\ANSYSDev\vXXX\fluent\fluent24.2\cortex\pylib\flapi\scheme.py", line 22, in newf
    return f(*args, **kwds)
  File "d:\ANSYSDev\vXXX\fluent\fluent24.2\cortex\pylib\flapi\scheme.py", line 99, in fl_set_var
    return _fl_set_var(path, value)
RuntimeError: rename: 'inlet2' is not a valid name
Error Object: setup/boundary-conditions/velocity-inlet
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "d:\ANSYSDev\vXXX\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 1065, in __setattr__
    allowed = attr.allowed_values()
AttributeError: 'name' object has no attribute 'allowed_values'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant