Skip to content

Commit 653fad0

Browse files
authored
Update 07_saddle_bracket.py (#614)
1 parent ef5dbf8 commit 653fad0

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

examples/gallery/07_saddle_bracket.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
.. _ref_saddle_thin_hex:
33
4-
========================================================
4+
==================================================
55
Meshing a saddle bracket for a structural analysis
6-
========================================================
6+
==================================================
77
88
**Summary**: This example demonstrates how to mesh a thin
9-
solid with hexahedral elements.
9+
solid with hexahedral and prism cells.
1010
1111
Objective
1212
~~~~~~~~~
@@ -26,7 +26,7 @@
2626
* Surface mesh the remaining unmeshed TopoFaces with tri.
2727
* Delete the topology.
2828
* Define volume meshing controls to use thin volume meshing.
29-
* Volume mesh with hexahedral cells.
29+
* Volume mesh with hexahedral and prism cells.
3030
* Write a CDB file for use in the APDL solver.
3131
* Exit the PyPrimeMesh session.
3232
@@ -91,7 +91,10 @@
9191
###############################################################################
9292
# Surface mesh unmeshed faces
9393
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
94-
# Mesh unmeshed faces with tri elements.
94+
# Mesh unmeshed faces with tri surface mesh. Tri surface mesh on the target
95+
# and side faces is used to show more clearly that the result of the thin
96+
# volume control is a hex mesh that is imprinted up to the side faces.
97+
# All quads could be used for the surface mesh to simplify the process.
9598

9699
part = model.parts[0]
97100

@@ -124,7 +127,8 @@
124127
###############################################################################
125128
# Delete topology
126129
# ~~~~~~~~~~~~~~~
127-
# Delete topology to leave only the surface mesh.
130+
# Delete topology to leave only the surface mesh. This is necessary for the
131+
# thin volume control to be used.
128132

129133
part.delete_topo_entities(
130134
prime.DeleteTopoEntitiesParams(
@@ -140,7 +144,13 @@
140144
# Define volume meshing controls to use thin volume meshing.
141145
# Specify source and target faces for the thin volume using imported labels.
142146
# Set the number of layers of cells through the thickness of the thin solid to be 4.
143-
# To request a fully hexahedral mesh the side faces must be imprinted.
147+
# To create a fully hexahedral and prism mesh the side faces must be imprinted on
148+
# the side faces. If needed, a buffer region at the sides of the volume can be
149+
# defined where the volume fill type used for the volume mesh parameters will be
150+
# used to infill. This is useful on more complex geometries, where it provides
151+
# more robustness of the method. To create a buffer region set ``imprint_sides``
152+
# to False and specify how many rings of cells to ignore at the sides
153+
# using ``n_ignore_rings``.
144154

145155
auto_mesh_params = prime.AutoMeshParams(model=model)
146156
thin_vol_ctrls_ids = []
@@ -163,7 +173,7 @@
163173
thin_params = prime.ThinVolumeMeshParams(
164174
model=model,
165175
n_layers=4,
166-
no_side_imprint=False,
176+
imprint_sides=True,
167177
)
168178

169179
thin_vol_ctrl.set_thin_volume_mesh_params(thin_volume_mesh_params=thin_params)
@@ -174,7 +184,7 @@
174184
###############################################################################
175185
# Generate volume mesh
176186
# ~~~~~~~~~~~~~~~~~~~~
177-
# Volume mesh to obtain hexahedral cells.
187+
# Volume mesh to obtain hexahedral and prism mesh.
178188
# Print mesh summary.
179189
# Display volume mesh.
180190

0 commit comments

Comments
 (0)