Mesh1_2D#

Meshing a 2D domain.

Mesh1 2D
Mesh1 2D
12 from EasyFEA import Display, ElemType, PyVista
13 from EasyFEA.Geoms import Domain
14
15 if __name__ == "__main__":
16     Display.Clear()
17
18     contour = Domain((0, 0), (1, 1))
19     PyVista.Plot_Geoms(contour).show()
20
21     # "TRI3", "TRI6", "TRI10", "TRI15", "QUAD4", "QUAD8",  "QUAD9"
22     elemType = ElemType.TRI3
23     mesh = contour.Mesh_2D([], elemType)
24     PyVista.Plot_Mesh(mesh).show()

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

Gallery generated by Sphinx-Gallery