Hello FreeFEM community,
I used Gmsh to generate a 3D mesh. By the fact, the Gmsh code is extracted from a Gmsh tutorial (t19.geo).
Unfortunately I got the following error when reading the mesh with FreeFEM:
ERROR: The mesh file doesn’t contain vertices
The FreeFEM code is:
‘’’
load “gmsh”
system(“gmsh -3 -o noVertices.msh noVertices.geo”);
mesh3 Th(“noVertices.msh”);
plot(Th,wait=1);
‘’’
and the geo file for Gmsh is as follows:
‘’’
SetFactory(“OpenCASCADE”);
nturns = 1;
npts = 20;
r = 1;
h = 1 * nturns;
For i In {0 : npts - 1}
theta = i * 2Pinturns/npts;
Point(1000 + i) = {r * Cos(theta), r * Sin(theta), i * h/npts};
EndFor
Spline(1000) = {1000 : 1000 + npts - 1};
Wire(1000) = {1000};
Disk(1000) = {1,0,0, 0.2};
Rotate {{1, 0, 0}, {0, 0, 0}, Pi/2} { Surface{1000}; }
Extrude { Surface{1000}; } Using Wire {1000}
Delete{ Surface{1000}; }
Geometry.NumSubEdges = 1000;
Mesh.MeshSizeFromCurvature = 20;
Mesh.MeshSizeMin = 0.001;
Mesh.MeshSizeMax = 0.3;
Surface Loop(2) = {1003, 1002, 1001};
‘’’
Many Thanks for your support
Dominique