CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Mesh Generation & Pre-Processing (https://www.cfd-online.com/Forums/mesh-generation/)
-   -   [GMSH] Incompatible surface in transfinite volume with 5 faces (https://www.cfd-online.com/Forums/mesh-generation/234793-gmsh-incompatible-surface-transfinite-volume-5-faces.html)

 rvanco March 18, 2021 11:25

[GMSH] Incompatible surface in transfinite volume with 5 faces

Hi,

I'm trying to build a structured mesh on a "piece of cake" geometry (to compute CFD calculations with Code Saturne on a 2D domain and not the whole 3D cylinder). But when I compute the 3D mesh on gmsh, an error occurred due to an incompatible surface with the transfinite volume.

Here is the code :

// Gmsh project created on Thu Mar 18 15:13:30 2021
//+
Point(1) = {0, 0, 0, 1.0};
//+
Point(2) = {0.1, 0, 0, 1.0};
//+
Point(3) = {0.099, 0.01, 0, 1.0};
//+
Line(1) = {1, 3};
//+
Line(2) = {3, 2};
//+
Line(3) = {2, 1};
//+
Curve Loop(1) = {1, 2, 3};
//+
Plane Surface(1) = {1};
//+
Extrude {0, 0, 0.2} {
Surface{1};
}
//+
Physical Surface("Symmetry_planes", 10) = {4, 2};
//+
Physical Surface("Adiabatic_wall", 11) = {3};
//+
Physical Surface("Hot_wall", 12) = {1};
//+
Physical Surface("Cold_wall", 13) = {5};
//+
Transfinite Curve {4, 7, 5} = 10 Using Progression 1;
//+
Transfinite Curve {9, 6, 3, 1} = 10 Using Progression 1;
//+
Transfinite Curve {8, 2} = 3 Using Progression 1;
//+
Transfinite Surface {4};
//+
Transfinite Surface {2};
//+
Transfinite Surface {5};
//+
Transfinite Surface {3};
//+
Transfinite Surface {1};
//+
Recombine Surface {4, 2, 5, 3, 1};
//+
Transfinite Volume{1} = {4, 1, 2, 3, 6, 5};

I am new with GMSH, I was using the Salome built-in geometry and mesh software but I've got issues to build hexahedron cells on such a geometry because there are only 3 faces and Salome ask for a minimum of 4 faces with hexahedron (if you know how to solve this problem, I'm really interested too)

Thanks for your help !

Rodolphe

 All times are GMT -4. The time now is 04:29.