Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/1426.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Meshing issue with Cooling holes thermal use case
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down
7 changes: 6 additions & 1 deletion examples/01_basic/cooling_holes_thermal_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,24 @@ 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.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()

# %%
Expand Down
Loading