issue based on previous pyconsole meshing bug, is still present in pyfluent standalone 0.20.1
In some integer only setup objects, there is no protection to prevent the user from entering incorrect values such as float
Entering float value for feature_angle_local results in below error "Illegal conversion from d to l" when trying to access the value again;
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_se.py", line 743, in __call__
return self.get_state()
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/workflow.py", line 593, in get_state
self._task.Arguments() if explicit_only else self._task._command_arguments()
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/workflow.py", line 769, in _command_arguments
return self._refreshed_command()
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/workflow.py", line 786, in _refreshed_command
cmd.set_state(task_arg_state)
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_se.py", line 822, in set_state
self.service.set_state(
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_se.py", line 457, in set_state
self._impl.set_state(request)
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/datamodel_se.py", line 196, in set_state
return self._stub.setState(request, metadata=self._metadata)
File "/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 277, in __call__
response, ignored_call = self._with_call(
File "/.venv/lib/python3.10/site-packages/grpc/_interceptor.py", line 329, in _with_call
call = self._interceptor.intercept_unary_unary(
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 122, in intercept_unary_unary
return self._intercept_call(continuation, client_call_details, request)
File "/.venv/lib/python3.10/site-packages/ansys/fluent/core/services/interceptors.py", line 112, in _intercept_call
raise ex from None
RuntimeError: Invalid value type for data model parameter. Illegal conversion from d to l, data: 45.5
🔍 Before submitting the issue
🐞 Description of the bug
issue based on previous pyconsole meshing bug, is still present in pyfluent standalone 0.20.1
In some integer only setup objects, there is no protection to prevent the user from entering incorrect values such as float
Entering float value for feature_angle_local results in below error "Illegal conversion from d to l" when trying to access the value again;
📝 Steps to reproduce
launch pyfluent meshing session
Also try with;
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
v242
🐍 Which Python version are you using?
3.10
📦 Installed packages