Mesh2_3D#

Meshing a hydraulic dam.

Mesh2 3D
Mesh2 3D
14 from EasyFEA import Display, ElemType, PyVista
15 from EasyFEA.Geoms import Points
16
17 if __name__ == "__main__":
18     Display.Clear()
19
20     h = 180
21     N = 5
22
23     contour = Points([(0, 0), (h, 0), (0, h)], h / N)
24     PyVista.Plot_Geoms(contour).show()
25
26     # "TETRA4", "TETRA10", "PRISM6", "PRISM15", "PRISM18", "HEXA8", "HEXA20", "HEXA27"
27     elemType = ElemType.HEXA8
28     mesh = contour.Mesh_Extrude([], [0, 0, 2 * h], [10], elemType)
29     plotter = PyVista.Plot_Mesh(mesh)
30     plotter.add_title(str(mesh))
31     plotter.show()

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

Gallery generated by Sphinx-Gallery