Mesh12#

Meshing of a part designed by cad software.

Mesh12
Mesh12
13 from EasyFEA import Display, Folder, Mesher, ElemType, PyVista
14
15 if __name__ == "__main__":
16     Display.Clear()
17
18     parts_dir = Folder.Join(Folder.Dir(n=2), "_parts")
19
20     stp = Folder.Join(parts_dir, "beam.stp")
21     mesh_stp = Mesher().Mesh_Import_part(stp, 3, 13 / 5, ElemType.TETRA4)
22
23     igs = Folder.Join(parts_dir, "beam.igs")
24     mesh_igs = Mesher().Mesh_Import_part(igs, 3, 13 / 5, ElemType.TETRA10)
25     # An igs file will provide a contour mesh only.
26
27     pltr1 = PyVista.Plot_Mesh(mesh_stp)
28     pltr1.add_title("beam.stp")
29     pltr1.show()
30
31     pltr2 = PyVista.Plot_Mesh(mesh_igs)
32     pltr2.add_title("beam.igs")
33     pltr2.show()

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

Gallery generated by Sphinx-Gallery