Mesh3_3D#

Meshing a 3D domain with hole.

Mesh3 3D
Mesh3 3D
13 from EasyFEA import Display, ElemType, PyVista
14 from EasyFEA.Geoms import Domain, Circle
15
16 if __name__ == "__main__":
17     Display.Clear()
18
19     contour = Domain((0, 0), (1, 1), 1 / 10)
20     circle = Circle((1 / 2, 1 / 2), 1 / 3, 1 / 10, isFilled=False)
21     PyVista.Plot_Geoms([contour, circle]).show()
22
23     # "TETRA4", "TETRA10", "HEXA8", "HEXA20", "HEXA27", "PRISM6", "PRISM15", "PRISM18"
24     elemType = ElemType.PRISM15
25     mesh = contour.Mesh_Extrude([circle], [0, 0, 0.5], [3], elemType, isOrganised=True)
26     PyVista.Plot_Mesh(mesh).show()

Total running time of the script: (0 minutes 0.500 seconds)

Gallery generated by Sphinx-Gallery