weihuayi / gmsh

Other
10 stars 2 forks source link

Meet error when using gmsh to convert triangular mesh to tetrahedral mesh #1

Open sunshineDrizzle opened 11 months ago

sunshineDrizzle commented 11 months ago

I need your help to look at this problem, the detailed error information as below: $ gmsh -3 -o hcp_tha-lh_thr25.tetra.vtk hcp_tha-lh_thr25.geo Info : Running 'gmsh -3 -o data/hcp_tha-lh_thr25.tetra.vtk data/hcp_tha-lh_thr25.geo' [Gmsh 4.8.4, 1 node, max. 1 thread] Info : Started on Wed Dec 6 19:00:28 2023 Info : Reading 'data/hcp_tha-lh_thr25.geo'... Info : Reading 'data/hcp_tha-lh_thr25.vtk'... Info : Reading 1054 points Info : Reading 2104 polygons Info : Done reading 'data/hcp_tha-lh_thr25.vtk' Info : Done reading 'data/hcp_tha-lh_thr25.geo' Info : Meshing 1D... Info : Done meshing 1D (Wall 1.1591e-05s, CPU 1e-05s) Info : Meshing 2D... Info : Done meshing 2D (Wall 1.9455e-05s, CPU 1.3e-05s) Info : Meshing 3D... Error : Frontal algorithm requires Netgen Error : No elements in volume 1 Info : Done meshing 3D (Wall 7.6586e-05s, CPU 5.1e-05s) Info : 1054 nodes 2104 elements Error : ------------------------------ Error : Mesh generation error summary Error : 0 warnings Error : 2 errors Error : Check the full log for details Error : ------------------------------ Info : Writing 'data/hcp_tha-lh_thr25.tetra.vtk'... Info : Done writing 'data/hcp_tha-lh_thr25.tetra.vtk' Info : Stopped on Wed Dec 6 19:00:28 2023 (From start: Wall 0.0321755s, CPU 0.023129s)

The content of "hcp_tha-lh_thr25.geo" is listed here: $ cat hcp_tha-lh_thr25.geo Mesh.Algorithm3D=4; Mesh.Optimize=1; Mesh.OptimizeNetgen=1; Merge "hcp_tha-lh_thr25.vtk"; Surface Loop(1) = {1}; Volume(1) = {1}; Physical Volume(1) = {1};

wangdong19 commented 11 months ago

You can try upgrading your Gmsh version first. The latest version of Gmsh is currently 4.11.1. After upgrading, attempt to run the program again.