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] Internal mesh not appearing (https://www.cfd-online.com/Forums/openfoam-meshing/126407-internal-mesh-not-appearing.html)

slls33 November 16, 2013 11:46

Internal mesh not appearing
 
Hello everyone,

The last few days I have been struggling to visualize a mesh created with gmesh on ParaView. The mesh I create on gmesh with a .msh format converts right with the gmshToFoam command, passes the checkMesh fine but, when I visualize it on ParaFoam, the only separations that the program shows are the ones on the walls of the control volume, and the whole thing inside is not partitioned at all.

The mesh was created as 2D with the extrude tool. At first I thought the problem was that the geometry was a bit complicated (an airfoil), but I tried with a simple cube instead of the airfoil and it doesn't work either. Then I thought that the problem might be the extrude command so I did a normal 3D mesh in a cube but still the inner cells would not show up. The system folder is also created, and so is the dummy 0 folder.

Attached here is the .geo of the 2D cube in cube case

If anyone has some clue to what I'm doing wrong please help.

Thanks in advance

Didac


/////////////////.geo file //////////////////

// Gmsh project created on Sat Nov 16 16:42:13 2013
Point(1) = {0, 0, 0, 1.0};
Point(2) = {0, 1, 0, 1.0};
Point(3) = {1, 0, 0, 1.0};
Point(4) = {1, 1, 0, 1.0};
Point(5) = {.3, .3, 0, 1.0};
Point(6) = {.7, .3, 0, 1.0};
Point(7) = {.7, .7, 0, 1.0};
Point(8) = {.3, .7, 0, 1.0};
Line(1) = {2, 1};
Line(2) = {3, 1};
Line(3) = {2, 4};
Line(4) = {4, 3};
Line(5) = {5, 8};
Line(6) = {8, 7};
Line(7) = {7, 6};
Line(8) = {6, 5};
Line Loop(9) = {1, -2, -4, -3};
Line Loop(10) = {5, 6, 7, 8};
Plane Surface(11) = {9, 10};
Extrude {0, 0, 0.1} {
Surface{11};
Layers{1};
Recombine;
}

Surface Loop(54) = {53, 24, 11, 28, 32, 36, 40, 44, 48, 52};
Volume(55) = {54};
Physical Surface(56) = {53, 11};
Physical Surface(57) = {24};
Physical Surface(58) = {32};
Physical Surface(59) = {36};
Physical Surface(60) = {28};
Physical Surface(61) = {52, 48, 44, 40};
Physical Volume(62) = {1};


All times are GMT -4. The time now is 20:05.