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


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