Note
Go to the end to download the full example code.
Mesh2_3D#
Meshing a hydraulic dam.


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 # "TETRA4", "TETRA10", "PRISM6", "PRISM15", "PRISM18"
26 elemType = ElemType.PRISM6
27 mesh = contour.Mesh_Extrude([], [0, 0, 2 * h], [10], elemType)
28 PyVista.Plot_Mesh(mesh).show()
Total running time of the script: (0 minutes 0.318 seconds)