Note
Go to the end to download the full example code.
Mesh2_2D#
Meshing a triangle.


12 from EasyFEA import Display, ElemType, PyVista
13 from EasyFEA.Geoms import Points
14
15 if __name__ == "__main__":
16 Display.Clear()
17
18 h = 180
19 N = 5
20
21 contour = Points([(0, 0), (h, 0), (0, h)], h / N)
22 PyVista.Plot_Geoms(contour).show()
23
24 # "TRI3", "TRI6", "TRI10", "TRI15"
25 elemType = ElemType.TRI3
26 mesh = contour.Mesh_2D([], elemType)
27 PyVista.Plot_Mesh(mesh).show()
Total running time of the script: (0 minutes 0.491 seconds)