CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] OpenFoam Error Message: "no cells read from file .msh" (https://www.cfd-online.com/Forums/openfoam-meshing/154415-openfoam-error-message-no-cells-read-file-msh.html)

kayla1994 June 13, 2015 17:04

OpenFoam Error Message: "no cells read from file .msh"
 
Hello all.
I've just made my first 2d mesh with GMSH i think it's corretly written.
Now i try to load it to OpenFoam but it returns me this error:
"no cells read from file .msh
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)
"
my mesh is 2D.

Does anyone know the problem?
Thanks :D:D

this is my .geo:

// Gmsh project created on Sat Jun 13 11:37:29 2015
Point(1) = {1, 0, 0, 1};
Point(3) = {0.99572, 0.00057, 0, 0.0001};
Point(5) = {0.98296, 0.00218, 0, 0.0001};
Point(6) = {0.96194, 0.00463, 0, 0.0001};
Point(7) = {0.93301, 0.0077, 0, 0.0001};
Point(8) = {0.89668, 0.01127, 0, 0.0001};
Point(9) = {0.85355, 0.01522, 0, 0.0001};
Point(10) = {0.80438, 0.01945, 0, 0.0001};
Point(11) = {0.75, 0.02384, 0, 0.0001};
Point(12) = {0.69134, 0.02823, 0, 0.0001};
Point(13) = {0.62941, 0.03247, 0, 0.0001};
Point(14) = {0.56526, 0.03638, 0, 0.0001};
Point(15) = {0.5, 0.03978, 0, 0.0001};
Point(16) = {0.43474, 0.04248, 0, 0.0001};
Point(17) = {0.37059, 0.04431, 0, 0.0001};
Point(18) = {0.33928, 0.04484, 0, 0.0001};
Point(19) = {0.30866, 0.04509, 0, 0.0001};
Point(20) = {0.27886, 0.04504, 0, 0.0001};
Point(21) = {0.25, 0.04466, 0, 0.0001};
Point(22) = {0.22221, 0.04397, 0, 0.0001};
Point(23) = {0.19562, 0.04295, 0, 0.0001};
Point(24) = {0.17033, 0.04161, 0, 0.0001};
Point(25) = {0.14645, 0.03994, 0, 0.0001};
Point(26) = {0.12408, 0.03795, 0, 0.0001};
Point(27) = {0.10332, 0.03564, 0, 0.0001};
Point(28) = {0.08427, 0.03305, 0, 0.0001};
Point(29) = {0.06699, 0.03023, 0, 0.0001};
Point(31) = {0.05156, 0.0272, 0, 0.0001};
Point(32) = {0.03806, 0.02395, 0, 0.0001};
Point(33) = {0.02653, 0.02039, 0, 0.0001};
Point(34) = {0.01704, 0.01646, 0, 0.0001};
Point(35) = {0.00961, 0.01214, 0, 0.0001};
Point(36) = {0.00428, 0.00767, 0, 0.0001};
Point(37) = {0.00107, 0.00349, 0, 0.0001};
Point(38) = {0, 0, 0, 0.0001};
Point(39) = {0.00107, -0.00349, 0, 0.0001};
Point(40) = {0.00428, -0.00767, 0, 0.0001};
Point(41) = {0.00961, -0.01214, 0, 0.0001};
Point(42) = {0.01704, -0.01646, 0, 0.0001};
Point(43) = {0.02653, -0.02039, 0, 0.0001};
Point(44) = {0.03806, -0.02395, 0, 0.0001};
Point(45) = {0.05156, -0.0272, 0, 0.0001};
Point(46) = {0.06699, -0.03023, 0, 0.0001};
Point(47) = {0.08427, -0.03305, 0, 0.0001};
Point(48) = {0.10332, -0.03564, 0, 0.0001};
Point(49) = {0.10332, -0.03564, 0, 0.0001};
Point(50) = {0.12408, -0.03795, 0, 0.0001};
Point(51) = {0.14645, -0.03994, 0, 0.0001};
Point(52) = {0.17033, -0.04161, 0, 0.0001};
Point(53) = {0.19562, -0.04295, 0, 0.0001};
Point(54) = {0.22221, -0.04397, 0, 0.0001};
Point(55) = {0.25, -0.04466, 0, 0.0001};
Point(56) = {0.27886, -0.04504, 0, 0.0001};
Point(57) = {0.30866, -0.04509, 0, 0.0001};
Point(58) = {0.33928, -0.04484, 0, 0.0001};
Point(59) = {0.33928, -0.04484, 0, 0.0001};
Point(60) = {0.37059, -0.04431, 0, 0.0001};
Point(61) = {0.43474, -0.04248, 0, 0.0001};
Point(62) = {0.5, -0.03978, 0, 0.0001};
Point(63) = {0.56526, -0.03638, 0, 0.0001};
Point(64) = {0.62941, -0.03247, 0, 0.0001};
Point(65) = {0.69134, -0.02823, 0, 0.0001};
Point(66) = {0.75, -0.02384, 0, 0.0001};
Point(67) = {0.80438, -0.01945, 0, 0.0001};
Point(68) = {0.85355, -0.01522, 0, 0.0001};
Point(69) = {0.89668, -0.01127, 0, 0.0001};
Point(70) = {0.93301, -0.0077, 0, 0.0001};
Point(71) = {0.96194, -0.00463, 0, 0.0001};
Point(72) = {0.98296, -0.00218, 0, 0.0001};
Point(73) = {0.99572, -0.00057, 0, 0.0001};

Spline(1) = {38, 37, 36, 35, 34, 33, 32, 31, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 3, 1, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 58, 57, 56, 55, 54, 53, 52, 51, 50, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38};


Point(74) = {7, 5, 0, 1.0};
Point(75) = {7, -5, 0, 1.0};
Point(76) = {-7, -5, 0, 1.0};
Point(77) = {-7, 5, 0, 1.0};
Point(78) = {7, 0.5, 0, 1.0};
Point(79) = {7, -0.5, 0, 1.0};
Point(80) = {0, 0, 0, 0.0001};
Point(81) = {0, 0.5, 0, 1.0};
Point(82) = {0, -0.5, 0, 1.0};
Point(83) = {-0.5, 0, 0, 1.0};
Line(2) = {76, 77};
Line(3) = {77, 74};
Line(4) = {74, 78};
Line(5) = {78, 81};
Line(6) = {82, 79};
Line(7) = {79, 75};
Line(8) = {75, 76};
Line(9) = {78, 79};
Circle(10) = {81, 80, 83};
Circle(11) = {83, 80, 82};

Line Loop(12) = {2, 3, 4, 5, 10, 11, 6, 7, 8};
Plane Surface(13) = {12};
Line Loop(14) = {5, 10, 11, 6, -9};
Line Loop(15) = {1};
Plane Surface(16) = {14, 15};
Physical Line("Left") = {2};
Physical Line("Top") = {3};
Physical Line("Right") = {4, 9, 7};
Physical Line("Bottom") = {8};
Physical Line("Airfoil") = {1};

KateEisenhower July 13, 2015 09:26

Hi Kayla,

OpenFOAM can only handle 3D grids. You have to extrude your 2D mesh in gmsh before you can work with it.

Best regards,

Kate


All times are GMT -4. The time now is 11:17.