Mesh3_2D#

Meshing a 2D domain with hole.

Mesh3 2D
Mesh3 2D
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, isHollow=True)
21     PyVista.Plot_Geoms([contour, circle]).show()
22
23     # "TRI3", "TRI6", "TRI10", "TRI15", "QUAD4", "QUAD8",  "QUAD9"
24     elemType = ElemType.TRI6
25     mesh = contour.Mesh_2D([circle], elemType)
26     PyVista.Plot_Mesh(mesh).show()

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

Gallery generated by Sphinx-Gallery