From d43f4347e689a3c034f072b5e1dfca9a1f7df4a2 Mon Sep 17 00:00:00 2001 From: vnamdeo Date: Thu, 4 Dec 2025 13:01:45 +0530 Subject: [PATCH 1/5] Fix the meshing issue with Cooling holes thermal use case using Ansys v26R1 --- examples/01_basic/cooling_holes_thermal_analysis.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/01_basic/cooling_holes_thermal_analysis.py b/examples/01_basic/cooling_holes_thermal_analysis.py index 03b0ff1f7..722f55ee3 100644 --- a/examples/01_basic/cooling_holes_thermal_analysis.py +++ b/examples/01_basic/cooling_holes_thermal_analysis.py @@ -312,19 +312,25 @@ def display_image( # Mesh the model mesh.Activate() -mesh.ElementSize = Quantity(2.5, "in") +mesh.ElementSize = Quantity(0.5, "in") mesh.UseAdaptiveSizing = False mesh.CaptureCurvature = True mesh.CaptureProximity = True +mesh.SetMeshSizing(MeshSizingType.Advanced) +mesh.GrowthRateSF = 1.85 +mesh.DefeatureTolerance = Quantity(0.000375, "in") automatic_method = mesh.AddAutomaticMethod() automatic_method.ScopingMethod = GeometryDefineByType.Component automatic_method.NamedSelection = Both_Plates_NS automatic_method.Method = MethodType.AllTriAllTet + sizing = mesh.AddSizing() sizing.ScopingMethod = GeometryDefineByType.Component sizing.NamedSelection = Fluidlines_NS sizing.ElementSize = Quantity(1e-2, "in") +sizing.CaptureCurvature = False +sizing.CaptureProximity = False mesh.GenerateMesh() # %% From a8606d8d93a0e43ee066595091d7034fe006e543 Mon Sep 17 00:00:00 2001 From: dkunhamb Date: Fri, 5 Dec 2025 09:28:44 -0600 Subject: [PATCH 2/5] update mesh settings --- examples/01_basic/cooling_holes_thermal_analysis.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/01_basic/cooling_holes_thermal_analysis.py b/examples/01_basic/cooling_holes_thermal_analysis.py index 722f55ee3..3c1256cfc 100644 --- a/examples/01_basic/cooling_holes_thermal_analysis.py +++ b/examples/01_basic/cooling_holes_thermal_analysis.py @@ -316,15 +316,14 @@ def display_image( mesh.UseAdaptiveSizing = False mesh.CaptureCurvature = True mesh.CaptureProximity = True -mesh.SetMeshSizing(MeshSizingType.Advanced) mesh.GrowthRateSF = 1.85 mesh.DefeatureTolerance = Quantity(0.000375, "in") - + automatic_method = mesh.AddAutomaticMethod() automatic_method.ScopingMethod = GeometryDefineByType.Component automatic_method.NamedSelection = Both_Plates_NS automatic_method.Method = MethodType.AllTriAllTet - + sizing = mesh.AddSizing() sizing.ScopingMethod = GeometryDefineByType.Component sizing.NamedSelection = Fluidlines_NS From 51dc0cc6800eb6dcbcc08bd0f0cd702ba74c5f50 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 Dec 2025 15:29:00 +0000 Subject: [PATCH 3/5] chore: auto fixes from pre-commit hooks --- examples/01_basic/cooling_holes_thermal_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/01_basic/cooling_holes_thermal_analysis.py b/examples/01_basic/cooling_holes_thermal_analysis.py index 3c1256cfc..114fbc822 100644 --- a/examples/01_basic/cooling_holes_thermal_analysis.py +++ b/examples/01_basic/cooling_holes_thermal_analysis.py @@ -318,12 +318,12 @@ def display_image( mesh.CaptureProximity = True mesh.GrowthRateSF = 1.85 mesh.DefeatureTolerance = Quantity(0.000375, "in") - + automatic_method = mesh.AddAutomaticMethod() automatic_method.ScopingMethod = GeometryDefineByType.Component automatic_method.NamedSelection = Both_Plates_NS automatic_method.Method = MethodType.AllTriAllTet - + sizing = mesh.AddSizing() sizing.ScopingMethod = GeometryDefineByType.Component sizing.NamedSelection = Fluidlines_NS From ac71d29599943549bec15c0e217e693a09726a05 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 5 Dec 2025 15:35:34 +0000 Subject: [PATCH 4/5] chore: adding changelog file 1426.fixed.md [dependabot-skip] --- doc/changelog.d/1426.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/1426.fixed.md diff --git a/doc/changelog.d/1426.fixed.md b/doc/changelog.d/1426.fixed.md new file mode 100644 index 000000000..57221e446 --- /dev/null +++ b/doc/changelog.d/1426.fixed.md @@ -0,0 +1 @@ +Meshing issue with Cooling holes thermal use case From 808ff57e376dbaa63c99f7dfe3eea629d5bbb3cc Mon Sep 17 00:00:00 2001 From: kmcadams Date: Mon, 8 Dec 2025 10:01:37 -0500 Subject: [PATCH 5/5] remove cooling holes example from ignored list --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4fb508c29..48585f2a8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -200,7 +200,7 @@ "doc_module": "ansys-mechanical-core", "image_scrapers": (DynamicScraper(), "matplotlib"), # Files to ignore - "ignore_pattern": "flycheck*|cooling_holes_thermal_analysis.py|fracture_analysis_contact_debonding.py|harmonic_acoustics.py|modal_acoustics_analysis.py", # noqa: E501 + "ignore_pattern": "flycheck*|fracture_analysis_contact_debonding.py|harmonic_acoustics.py|modal_acoustics_analysis.py", # noqa: E501 "thumbnail_size": (350, 350), }