The CAD edges are correctly projected onto the base face.
When surface-meshing the base face: the script crashes with the following error:
_Traceback (most recent call last):
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\core\surfer.py", line 60, in mesh_topo_faces
return surfer.mesh_topo_faces(topo_faces, params)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\autogen\surfer.py", line 103, in mesh_topo_faces
result = self._comm.serve(self._model, command_name, self._object_id, args=args)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 510, in wrapper_error_code
result = func(*args, *kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 465, in wrapper_handle_errors
func_result = func(args, kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 159, in serve
message = get_response(response, '')
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in get_response
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 36, in get_response_messages
for response in response_generator:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 541, in next
return self._next()
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 967, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connection reset"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Connection reset", grpc_status:14, created_time:"2024-02-21T08:00:40.2451551+00:00"}"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\gpappala\OneDrive - ANSYS, Inc\Documents\WIP\ST\TRR-57952\2024_02_20_int\PyPrimeMesh_Stacker.py", line 81, in
mesh_util_controls = mesh_util.surface_mesh_with_size_controls(
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\lucid\mesh_util.py", line 578, in surface_mesh_with_size_controls
self.surface_mesh_on_active_sf(generate_quads=generate_quads, scope=scope)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\lucid\mesh_util.py", line 315, in surface_mesh_on_active_sf
surfer.mesh_topo_faces(part_id=part_id, topo_faces=topofaces, params=params)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\core\surfer.py", line 59, in mesh_topo_faces
with _Surfer(model=self._model, part_id=part_id) as surfer:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\autogen\surfer.py", line 32, in exit
self._comm.serve(self._model, command_name, self._object_id, args={})
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 510, in wrapper_error_code
result = func(*args, *kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 465, in wrapper_handle_errors
func_result = func(args, kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 159, in serve
message = get_response(response, '')
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in get_response
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 36, in get_response_messages
for response in response_generator:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 541, in next
return self._next()
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 967, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50055: Connection refused"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50055: Connection refused {grpc_status:14, createdtime:"2024-02-21T08:00:42.2761546+00:00"}"
š Steps to reproduce
Contact Giovanni Pappalardi to get the appropriate files to reproduce the bug
š Before submitting the issue
š Description of the bug
The CAD edges are correctly projected onto the base face. When surface-meshing the base face: the script crashes with the following error:
_Traceback (most recent call last): File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\core\surfer.py", line 60, in mesh_topo_faces return surfer.mesh_topo_faces(topo_faces, params) File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\autogen\surfer.py", line 103, in mesh_topo_faces result = self._comm.serve(self._model, command_name, self._object_id, args=args) File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 510, in wrapper_error_code result = func(*args, *kwargs) File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 465, in wrapper_handle_errors func_result = func(args, kwargs) File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 159, in serve message = get_response(response, '') File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in get_response return separator.join(response.data for response in get_response_messages(response_iterator)) File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 36, in get_response_messages
for response in response_generator:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 541, in next
return self._next()
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 967, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connection reset"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"Connection reset", grpc_status:14, created_time:"2024-02-21T08:00:40.2451551+00:00"}"
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "c:\Users\gpappala\OneDrive - ANSYS, Inc\Documents\WIP\ST\TRR-57952\2024_02_20_int\PyPrimeMesh_Stacker.py", line 81, in
mesh_util_controls = mesh_util.surface_mesh_with_size_controls(
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\lucid\mesh_util.py", line 578, in surface_mesh_with_size_controls
self.surface_mesh_on_active_sf(generate_quads=generate_quads, scope=scope)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\lucid\mesh_util.py", line 315, in surface_mesh_on_active_sf
surfer.mesh_topo_faces(part_id=part_id, topo_faces=topofaces, params=params)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\core\surfer.py", line 59, in mesh_topo_faces
with _Surfer(model=self._model, part_id=part_id) as surfer:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\autogen\surfer.py", line 32, in exit
self._comm.serve(self._model, command_name, self._object_id, args={})
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 510, in wrapper_error_code
result = func(*args, *kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\error_handling.py", line 465, in wrapper_handle_errors
func_result = func(args, kwargs)
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 159, in serve
message = get_response(response, '')
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in get_response
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 45, in
return separator.join(response.data for response in get_response_messages(response_iterator))
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\ansys\meshing\prime\internals\grpc_communicator.py", line 36, in get_response_messages
for response in response_generator:
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 541, in next
return self._next()
File "C:\Users\gpappala.ansys_python_venvs\PyAnsys_venv\lib\site-packages\grpc_channel.py", line 967, in _next
raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50055: Connection refused"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:50055: Connection refused {grpc_status:14, createdtime:"2024-02-21T08:00:42.2761546+00:00"}"
š Steps to reproduce
Contact Giovanni Pappalardi to get the appropriate files to reproduce the bug
š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
24.1.0
š Which Python version are you using?
3.10
š¦ Installed packages