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

insert_new_task(<possible_tasks>) crashes watertight meshing session for valid task insert #2632

Closed
2 tasks done
millerj97 opened this issue Mar 28, 2024 · 0 comments · Fixed by #2638
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@millerj97
Copy link
Collaborator

millerj97 commented Mar 28, 2024

🔍 Before submitting the issue

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

🐞 Description of the bug

load_cad_geometry is listed as a valid task to insert in meshing.watertight.get_possible_tasks()

['add_2d_boundary_layers', 'add_boundary_layer', 'add_boundary_type', 'setup_size_controls', 'add_local_sizing', 'add_multizone_controls', 'add_shell_boundary_layers', 'create_zero_thickness_geometry', 'add_virtual_topology', 'enclose_fluid_regions', 'choose_mesh_control_options', 'part_replacement_options', 'close_leakage', 'compute_regions', 'compute_size_fields', 'create_local_refinement_regions', 'create_collar_mesh', 'create_component_mesh', 'create_contact_patch', 'create_external_flow_boundaries', 'create_gap_cover', 'create_mesh_objects', 'create_overset_mesh', 'create_porous_regions', 'create_regions', 'define_global_sizing', 'define_leakage_threshold', 'describe_geometry_and_flow', 'describe_overset_features', 'extract_edge_features', 'extrude_volume_mesh_wtm', 'generate_initial_surface_mesh', 'generate_map_mesh', 'generate_prism_layers', 'create_multizone_mesh', 'generate_the_surface_mesh', 'create_surface_mesh', 'generate_the_volume_mesh', 'create_volume_mesh', 'describe_geometry', 'identify_construction_surfaces', 'identify_deviated_faces', 'identify_orphans', 'identify_regions', 'import_boi_geometry', 'import_geometry', 'improve_surface_mesh', 'improve_volume_mesh', 'add_linear_mesh_pattern', 'load_cad_geometry', 'manage_zones_ftm', 'modify_mesh_refinement', 'import_cad_and_part_management', 'part_replacement_settings', 'remesh_surface', 'custom_journal_task', 'separate_contacts', 'define_boundary_layer_controls', 'apply_share_topology', 'mesh_controls_table', 'transform_volume_mesh', 'update_boundaries', 'update_region_settings', 'update_regions', 'update_volume_mesh', 'write_2d_mesh']

however when this task is inserted the following error is created and the watertight session becomes unusable

>>> watertight.insert_new_task('load_cad_geometry')
False
Exception in thread Thread-6 (_process_streaming):
>>> Traceback (most recent call last):
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/streaming_services/datamodel_event_streaming.py", line 72, in _process_streaming
    cb[1](cb[0])
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/workflow.py", line 1257, in refresh_after_sleep
    _refresh_task_accessors(self)
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/workflow.py", line 96, in _refresh_task_accessors
    tasks = obj.ordered_children(recompute=True)
  File "/v242/commonfiles/CPython/3_10/linx64/Release/python/lib/python3.10/site-packages/ansys/fluent/core/meshing/meshing_workflow.py", line 79, in __getattribute__
    raise RuntimeError(
RuntimeError: 'Watertight' objects are inaccessible from other workflows.

also occurs with import_cad_and_part_management

📝 Steps to reproduce

  • launch pyfluent session from commonfiles python
import ansys.fluent.core as pyfluent
meshing = pyfluent.launch_fluent(mode="meshing", processor_count = "8", ui_mode="gui")
watertight = meshing.watertight()
full_list = watertight.get_possible_tasks()
  • see that load_cad_geometry is valid in the list of tasks
  • use watertight.insert_new_task('add_boundary_layer or other task from list without error, task is updated in [child.python_name() for child in watertight.ordered_children()] and in GUI
  • use watertight.insert_new_task('load_cad_geometry') or watertight.insert_new_task('import_cad_and_part_management')and see above error generated
  • try to continue with workflow and see watertight session no longer valid
  • resetting with watertight = meshing.watertight() also does not work

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

v242

🐍 Which Python version are you using?

3.10

📦 Installed packages

pyfluent.__version__ = 0.20.dev12
@millerj97 millerj97 added the bug Something isn't working label Mar 28, 2024
@millerj97 millerj97 changed the title load_cad_geometry task crashes watertight meshing session insert_new_task(<possible_tasks>) crashes watertight meshing session for valid task insert Mar 28, 2024
@prmukherj prmukherj linked a pull request Apr 1, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants