PDE meshing (generateMesh) failing after solid operations
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pablo J. Rosado Junquera
el 28 de Jun. de 2020
Comentada: Juan Peña
el 11 de Sept. de 2021
Hey there,
I'm trying to develop an algorithm to define, edit and solve finite elements problems using constructive solid geometry. The libs I'm using work well, but when it comes to generate the mesh, some complex geometries return the "Meshing failed for Hmax..." error whatever the Hmax, Hmin values are.
After some tests, It seems it is the very solid operation which makes the meshing fail, even if the operation is somehow "simplifying" the model, or if it leaves the model exactly the same way. An example:
Original model: Successful mesh generation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323383/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323386/image.png)
Modified (intersection with a cube to obtain a half): failed generation
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323389/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323392/image.png)
How could I avoid this? For me, since the non-modified models are of the same complexity, it does not seem a "too complex geometry" problem.
Any workaround appreciated.
Thank you
10 comentarios
Pablo J. Rosado Junquera
el 5 de Sept. de 2021
Editada: Pablo J. Rosado Junquera
el 5 de Sept. de 2021
Respuesta aceptada
Pablo J. Rosado Junquera
el 7 de Sept. de 2020
1 comentario
C
el 29 de Mzo. de 2021
Hi there, Could you please let me know how you used gptoolbox? Did you directly input the model geometry object? I can only see that tetgen() requires a triangle mesh and then triangle() requires a .poly or .node file.
Más respuestas (0)
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!