Note
Go to the end to download the full example code.
Mesh1_3D#
Meshing a 3D domain.


12 from EasyFEA import Display, ElemType, PyVista
13 from EasyFEA.Geoms import Point, Domain
14
15 if __name__ == "__main__":
16 Display.Clear()
17
18 contour = Domain((0, 0), Point(1, 1))
19 PyVista.Plot_Geoms(contour).show()
20
21 # "TETRA4", "TETRA10", "HEXA8", "HEXA20", "HEXA27", "PRISM6", "PRISM15", "PRISM18"
22 elemType = ElemType.HEXA8
23 mesh = contour.Mesh_Extrude([], [0, 0, 0.5], [3], elemType)
24 PyVista.Plot_Mesh(mesh).show()
Total running time of the script: (0 minutes 0.411 seconds)