Gmsh is crashing after change Extrude value from 10 to 100

  • Thread starter Thread starter Motox1982
  • Start date Start date
  • Tags Tags
    Mesh
Click For Summary

Discussion Overview

The discussion revolves around a problem encountered in GMSH, a mesh generation software, where the program crashes after changing the extrusion value in a geo script from 10 to 100. Participants explore the cause of the crash and share insights about the script's structure and potential errors.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • The initial script worked correctly with an extrusion value of 10, but crashed when the value was changed to 100.
  • One participant identified that the issue was related to a line definition in the script: Line(4) = {4, 4};, which had the same point numbers as other lines.
  • Another participant inquired about the changes made to the script to resolve the issue and questioned why the error did not manifest with the lower extrusion value.
  • There is a concern expressed about the program's tendency to crash rather than return an error message, indicating a potential issue with error handling in GMSH.

Areas of Agreement / Disagreement

Participants generally agree that the crash was due to the script's structure, specifically the duplicate point numbers in line definitions. However, there is no consensus on whether the program's crashing behavior is acceptable or if it should provide better error handling.

Contextual Notes

The discussion highlights limitations in the script's design, particularly regarding point number duplication, which led to the crash. There is also an implication that the behavior of GMSH in handling such errors could be improved.

Motox1982
Messages
3
Reaction score
1
Hello,

here is my geo script of gmsh: (windows10 64bit)
Code:
Point(1) = {0,-35,20};
Point(2) = {0,-35,-10};
Line(1) = {1, 2};
Point(3) = {0,35,-10};
Line(2) = {2, 3};
Point(4) = {0,35,20};
Line(3) = {3, 4};
Line(4) = {4, 4};
Point(5) = {0,0,0};
Line(5) = {4, 5};
Line(6) = {5, 1};
Line(7) = {1, 1};
Line(8) = {1, 1};
Curve Loop(1) = {1,2,3,4,5,6,7,8};
Plane Surface(1) = {1};
Extrude {10, 0, 0} { Surface{1};  }
ReverseMesh Surface{1};
Mesh 2;
it works fine!

but if i change the line to: Extrude {100, 0, 0} { Surface{1}; }

(only changing value 10 to 100)

gmsh is crashing!
what is the problem, anyone any ideas?

regards, mario
 
Last edited by a moderator:
Technology news on Phys.org
omg, already fixed!

Line(4) = {4, 4}; and some stuff, it was a long day ;-)
 
Welcome to PF. :smile:

Motox1982 said:
omg, already fixed!

Line(4) = {4, 4}; and some stuff, it was a long day ;-)
Can you post your updated script so we can see what-all you changed to eliminate the errors? Was it just the definition of Line(4) that was the problem? And why did it work like that with the coarser mesh for Extrude?

Thanks.
 
The Problem was the Line which have the same Point Numbers such as:
Line(4) = {4, 4};
Line(7) = {1, 1};
Line(8) = {1, 1};

It was auto generated by my tool which uses gmsh, i though it was a gmsh error, but it was mine, everything works fine now!
 
  • Informative
Likes   Reactions: berkeman
Still, the program should return an error instead of crashing. But man does it crashes quite often!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
9
Views
3K