Gmsh is crashing after change Extrude value from 10 to 100

  • Thread starter Thread starter Motox1982
  • Start date Start date
  • Tags Tags
    Mesh
AI Thread Summary
The discussion revolves around a user encountering a crash in GMSH when attempting to change an extrusion value in their geo script from 10 to 100. Initially, the user shared their script, which included several points and lines, and reported that the program crashed with the higher extrusion value. After some troubleshooting, the user identified the issue as a problematic line definition where two lines referenced the same point numbers, specifically Line(4), Line(7), and Line(8). The user acknowledged that this error was due to their own tool generating the script incorrectly, rather than a fault in GMSH itself. They expressed relief that the issue was resolved but noted that the program should ideally provide an error message instead of crashing, highlighting a concern about GMSH's stability.
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, allready fixed!

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

Motox1982 said:
omg, allready 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 wich 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 wich uses gmsh, i though it was a gmsh error, but it was mine, everything works fine now!
 
Still, the program should return an error instead of crashing. But man does it crashes quite often!
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top