ansys / pyprimemesh

Pythonic Meshing Client for Ansys Prime Server
https://prime.docs.pyansys.com/
MIT License
19 stars 9 forks source link

Bug located in ... mesh quality improvement for hex dominant mesh #717

Open ragulselvaraj20 opened 7 months ago

ragulselvaraj20 commented 7 months ago

🔍 Before submitting the issue

🐞 Description of the bug

I am trying to generate hex dominant mesh for solid body. there I am getting minimum element quality of 0.02, which I need to increase to 0.2.

📝 Steps to reproduce

improve = prime.VolumeMeshTool(model=model) params = prime.AutoNodeMoveParams( model=model, quality_measure=prime.CellQualityMeasure.SKEWNESS, target_quality=0.80, dihedral_angle=90, n_iterations_per_node=50, restrict_boundary_nodes_along_surface=True, n_attempts=10, )

improve.improve_by_auto_node_move( part_id=part.id, cell_zonelets=part.get_cell_zonelets(), boundary_zonelets=part.get_face_zonelets(), params=params, )

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2024R1

🐍 Which Python version are you using?

3.11

📦 Installed packages

all the required pyprime packages
waltersma commented 6 months ago

Hi @ragulselvaraj20,

Can you describe the bug that you are experiencing? What output are you seeing that is not as expected? In your description you indicate you wish to optimise a mesh for element quality, however, in the snippet you show you are using skewness as the criteria.

Which method are you using for hex meshing?