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


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