Skip to content

Commit 2a2f208

Browse files
vnamdeodipinknairpre-commit-ci[bot]pyansys-ci-botklmcadams
authored
FIX: Meshing issue with Cooling holes thermal use case (#1426)
Co-authored-by: dkunhamb <dipin.kunhambunair@ansys.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: kmcadams <kerry.mcadams@ansys.com>
1 parent 900724c commit 2a2f208

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

doc/changelog.d/1426.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Meshing issue with Cooling holes thermal use case

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"doc_module": "ansys-mechanical-core",
201201
"image_scrapers": (DynamicScraper(), "matplotlib"),
202202
# Files to ignore
203-
"ignore_pattern": "flycheck*|cooling_holes_thermal_analysis.py|fracture_analysis_contact_debonding.py|harmonic_acoustics.py|modal_acoustics_analysis.py", # noqa: E501
203+
"ignore_pattern": "flycheck*|fracture_analysis_contact_debonding.py|harmonic_acoustics.py|modal_acoustics_analysis.py", # noqa: E501
204204
"thumbnail_size": (350, 350),
205205
}
206206

examples/01_basic/cooling_holes_thermal_analysis.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,19 +312,24 @@ def display_image(
312312
# Mesh the model
313313

314314
mesh.Activate()
315-
mesh.ElementSize = Quantity(2.5, "in")
315+
mesh.ElementSize = Quantity(0.5, "in")
316316
mesh.UseAdaptiveSizing = False
317317
mesh.CaptureCurvature = True
318318
mesh.CaptureProximity = True
319+
mesh.GrowthRateSF = 1.85
320+
mesh.DefeatureTolerance = Quantity(0.000375, "in")
319321

320322
automatic_method = mesh.AddAutomaticMethod()
321323
automatic_method.ScopingMethod = GeometryDefineByType.Component
322324
automatic_method.NamedSelection = Both_Plates_NS
323325
automatic_method.Method = MethodType.AllTriAllTet
326+
324327
sizing = mesh.AddSizing()
325328
sizing.ScopingMethod = GeometryDefineByType.Component
326329
sizing.NamedSelection = Fluidlines_NS
327330
sizing.ElementSize = Quantity(1e-2, "in")
331+
sizing.CaptureCurvature = False
332+
sizing.CaptureProximity = False
328333
mesh.GenerateMesh()
329334

330335
# %%

0 commit comments

Comments
 (0)