Message by Guillaume Tcherniatinsky:
Hi,
I am new to GMSH and SPIS and I am experiencing an error while finalizing mesh. I have built a very simple geometry: a cubic body with two parallelepipedic panels and an external cubic boundary. There are only the three mandatory physicals: spacecraft, external boundary and the volume in between.
GMSH meshes the volume without problem, even if i don’t understand why it also meshes the volume inside the spacecraft (the corresponding physical volume remaining undefined). The main.msh file is created. My main problem is after that step: when I click on the “finalize mesh” button, I get the following message:
“The GMSH software does not mesh the CAD properly. This is due to version 2.7 incompatibility with operating system. Please see the software User manual (warnings inside the Geometrical modelling) for information on how to install and use the GMSH versions.”
Sometimes, without knowing why, I can finalize mesh without problem and pass to the “mesh” step but in that case software crashes when I click on the following “next” button.
I read this part of the manual and it advises to install GMSH manually for my system from its website in that specific case. I did it and edited the different paths in property files but I got the same result: the software crashes when I click on next at the end of the meshing step.
Does someone has a clue on why I get this error?
Thank you in advance,
Guillaume
Message by ruard:
Hi Guillaume,
If it is not a problem on your side, can you tell us some other information:
- What is your operating system?
- What is the gmsh version used by your spis? (click on the gmsh button on the right panel of your spis application and click on the "Help -> about Gmsh" menu)
- Can you send us your simple Gmsh .geo file where you have the "Error while finalizing mesh" crash?
Message by Guillaume Tcherniatinsky:
Hi ruard,
I am running on Scientific Linux 6.7 (Carbon). (64 bits)
The version of GMSH included in my release of SPIS was gmsh-2.8.5-linux64b and I have manually downloaded gmsh-2.12.0-Linux following the user manual instructions. Neither of them worked.
The bug actually appears in the template project SphereLowResolution (gmsh file cad_sav.geo). I put its code below. And When I simply open the project,
Message by Guillaume Tcherniatinsky:
Sorry, I accidently sent my message. When I simply open project SphereLowResolution, click on the CAD editor button, click on finalize mesh and the click on next, everything is working fine. But if I open cad_sav.geo in the geometry editor, click on “3D” in mesh, save the mesh and click on these same two buttons, the software crashes without an error message. So I think the problem comes from the meshing process.
Here is the code for this template file:
Point(1) = {1, 0, 0, 0.2}
Point(2) = {-1, 0, 0, 0.2}
Point(3) = {0, 1, 0, 0.2}
Point(4) = {0, -1, 0, 0.2}
Point(5) = {0, 0, 1, 0.2}
Point(6) = {0, 0, -1, 0.2}
Point(7) = {0, 0, 0, 0.2}
Point(8) = {-10, 10, 10, 3}
Point(9) = {10, 10, 10, 3}
Point(10) = {10, -10, 10, 3}
Point(11) = {10, -10, -10, 3}
Point(12) = {10, 10, -10, 3}
Point(13) = {-10, 10, -10, 3}
Point(14) = {-10, -10, -10, 3}
Point(15) = {-10, -10, 10, 3}
Circle (1) = {4, 7, 1}
Circle (2) = {4, 7, 5}
Circle (3) = {1, 7, 5}
Circle (4) = {4, 7, 2}
Circle (5) = {2, 7, 5}
Circle (6) = {2, 7, 3}
Circle (7) = {3, 7, 1}
Circle (8) = {6, 7, 3}
Circle (9) = {6, 7, 2}
Circle (10) = {6, 7, 4}
Circle (11) = {6, 7, 1}
Circle (12) = {3, 7, 5}
Line (13) = {8, 9}
Line (14) = {9, 12}
Line (15) = {12, 13}
Line (16) = {13, 8}
Line (17) = {8, 15}
Line (18) = {15, 10}
Line (19) = {10, 9}
Line (20) = {15, 14}
Line (21) = {14, 11}
Line (22) = {11, 10}
Line (23) = {11, 12}
Line (24) = {14, 13}
Line Loop (1) = {4, -9, 10}
Ruled Surface (1) = {1}
Line Loop (2) = {2, -5, -4}
Ruled Surface (2) = {2}
Line Loop (3) = {5, -12, -6}
Ruled Surface (3) = {3}
Line Loop (4) = {6, -8, 9}
Ruled Surface (4) = {4}
Line Loop (5) = {3, -2, 1}
Ruled Surface (5) = {5}
Line Loop (6) = {3, -12, 7}
Ruled Surface (6) = {6}
Line Loop (7) = {7, -11, 8}
Ruled Surface (7) = {7}
Line Loop (8) = {1, -11, 10}
Ruled Surface (8) = {8}
Line Loop (9) = {14, -23, 22, 19}
Plane Surface (9) = {9}
Line Loop (10) = {21, 22, -18, 20}
Plane Surface (10) = {10}
Line Loop (11) = {15, -24, 21, 23}
Plane Surface (11) = {11}
Line Loop (12) = {20, 24, 16, 17}
Plane Surface (12) = {12}
Line Loop (13) = {13, -19, -18, -17}
Plane Surface (13) = {13}
Line Loop (14) = {13, 14, 15, 16}
Plane Surface (14) = {14}
Surface Loop (1) = {10, 11, 14, 13, 12, 9, 2, 5, 6, 7, 4, 3, 1, 8}
Volume (1) = {1}
Physical Point (59) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}
Physical Line (60) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
Physical Surface (56) = {1, 2, 3, 4, 5, 6, 7, 8}
Physical Surface (57) = {9, 10, 11, 12, 13, 14}
Physical Volume (58) = {1}
Message by ruard:
Hi Guillaume,
I am not sure to completely understand your problem.
If I well understand, the problem appears when you go back several times on the group editor step. On linux, vtk may be unstable and when you go back several times on the group editor, the spis application will crash.
Regards,
Benjamin
Message by Guillaume Tcherniatinsky:
Thank you very much!
It was a VTK issue indeed: when I don’t try to edit geometry with graphical interface before finalizing mesh everything works well. Does that mean I have to restart SPIS every time I edit the mesh?
Regards,
Guillaume
Message by Alessandro Vicini:
I am having the same kind of error on Windows 7. Gmsh meshes the geometry without problems, but when I click on “finalize” mesh I get exactly the same error.