freecad.x86_64 1:0.19.2-1.fc34
OS: Fedora 34 (Workstation Edition) (KDE/plasmax11)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: Unknown
Python version: 3.9.4
Qt version: 5.15.2
Coin version: 4.0.0a
OCC version: 7.5.0
Locale: English/United States (en_US)
I'm using the gmsh included with FreeCAD. If I install gmsh on my computer and try gmsh from within FreeCAD, the program crashes without any warning.
# dnf list gmsh
Available Packages
gmsh.x86_64 4.7.1-2.fc34
Steps to reproduce:
New file
New part
New body
Select Part Design workbench
Draw a cube
Select FEM
Select New Analysis
Select Material. Select a steel, select the cube as a body.
Set force constraints on the cube, or not
Select a face of the cube
Select GMesh Icon
Select From Shape
Max, Min element sizes = 0.0
Select Apply
The FreeCAD source file is attached below.
In the Gmsh Task window:
Code: Select all
0.0: We are going to start ...
0.0: Start Gmsh ...
0.0: Gmsh had warnings ...
0.0: Error executing: gmsh - /tmp/fcfem_j83785sd/shape2mesh.geo
0.0: Gmsh done!
Code: Select all
13:03:52 Active analysis found: Analysis
13:03:56 Active analysis found: Analysis
13:03:56 ElementDimension: 3
13:03:56 [b]No Group meshing for analysis.[/b]
13:03:56 /tmp/fcfem_j83785sd/Box_Geometry.brep
13:03:56 /tmp/fcfem_j83785sd/Box_Mesh.unv
13:03:56 /tmp/fcfem_j83785sd/shape2mesh.geo
13:03:56 gmsh
13:03:56 Error executing: gmsh - /tmp/fcfem_j83785sd/shape2mesh.geo
13:03:56 No mesh was created.
13:03:56 Gmsh had warnings ...
13:03:56 Error executing: gmsh - /tmp/fcfem_j83785sd/shape2mesh.geo
Code: Select all
******************************************************************************************************
/ geo file for meshing with Gmsh meshing software created by FreeCAD
// open brep geometry
Merge "/tmp/fcfem_j83785sd/Box_Geometry.brep";
// Characteristic Length
// no boundary layer settings for this mesh
// min, max Characteristic Length
Mesh.CharacteristicLengthMax = 1e+22;
Mesh.CharacteristicLengthMin = 0.0;
// optimize the mesh
Mesh.Optimize = 1;
Mesh.OptimizeNetgen = 0;
Mesh.HighOrderOptimize = 0; // for more HighOrderOptimize parameter check http://gmsh.i>
// mesh order
Mesh.ElementOrder = 2;
Mesh.SecondOrderLinear = 0; // Second order nodes are created by linear interpolation in>
// mesh algorithm, only a few algorithms are usable with 3D boundary layer generation
// 2D mesh algorithm (1=MeshAdapt, 2=Automatic, 5=Delaunay, 6=Frontal, 7=BAMG, 8=DelQuad)
Mesh.Algorithm = 2;
// 3D mesh algorithm (1=Delaunay, 2=New Delaunay, 4=Frontal, 5=Frontal Delaunay, 6=Front>
Mesh.Algorithm3D = 1;
// meshing
Geometry.Tolerance = 1e-06; // set geometrical tolerance (also used for merging nodes)
Mesh 3;
Coherence Mesh; // Remove duplicate vertices
// save
Mesh.Format = 2;
// Ignore Physical definitions and save all elements;
Mesh.SaveAll = 1;
Save "/tmp/fcfem_j83785sd/Box_Mesh.unv";
// **********************************************************************
// Gmsh documentation:
// http://gmsh.info/doc/texinfo/gmsh.html#Mesh
//
// We do not check if something went wrong, like negative jacobians etc. You can run Gms>
//
// to see full Gmsh log, run in bash:
// gmsh - /tmp/fcfem_j83785sd/shape2mesh.geo
//
// to run Gmsh and keep file in Gmsh GUI (with log), run in bash:
// gmsh /tmp/fcfem_j83785sd/shape2mesh.geo
****************************************************************************************************************