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] Physical surfaces not turning into patches (https://www.cfd-online.com/Forums/openfoam-meshing/249195-physical-surfaces-not-turning-into-patches.html)

lorirosanp April 25, 2023 12:42

Physical surfaces not turning into patches
 
1 Attachment(s)
I am trying to perform a flat plate with a compression corner of a certain angle, mesh looks great but when using the command gmshToFoam, I get no patches at all:

Skipping tag at line 50423
Patch 0 gets name patch0

--> FOAM Warning :
From function Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 595
Found 19798 undefined faces in mesh; adding to default patch.
Finding faces of patch 0

FaceZones:
Zone Size
0 99


I post my script down here so you can help me with any mistake:
// Gmsh project created on Tue Apr 25 14:22:36 2023
SetFactory("OpenCASCADE");

//POINTS
Point(1) = {0, 0, 0, 1.0};
Point(2) = {3, 0, 0, 1.0};
Point(3) = {10, 3.26415, 0, 1.0};
Point(4) = {10, 10, 0, 1.0};
Point(5) = {3, 10, 0, 1.0};
Point(6) = {0, 10, 0, 1.0};

//LineS
Line(1) = {1, 2};Transfinite Curve {1} = 30 Using Progression 1;
Line(2) = {2, 3};Transfinite Curve {2} = 70 Using Progression 1.025;
Line(3) = {3, 4};Transfinite Curve {3} = 100 Using Progression 1;
Line(4) = {4, 5};Transfinite Curve {4} = 70 Using Progression 0.975;
Line(5) = {5, 6};Transfinite Curve {5} = 30 Using Progression 1;
Line(6) = {6, 1};Transfinite Curve {6} = 100 Using Progression 1;
Line(7) = {5, 2};Transfinite Curve {7} = 100 Using Progression 1;

//SURFACES
Curve Loop(1) = {5, 6, 1, -7};
Plane Surface(1) = {1};
Curve Loop(2) = {4, 7, 2, 3};
Plane Surface(2) = {2};
Transfinite Surface {1};
Transfinite Surface {2};//+
Recombine Surface {1, 2};
//+
Extrude {0, 0, 1} {
Surface{1}; Surface{2}; Layers {1}; Recombine;
}
//+
Physical Volume("fluid", 21) = {1, 2};
//+
Physical Surface("inlet", 22) = {4};
//+
Physical Surface("outlet", 23) = {10};
//+
Physical Surface("top", 24) = {8, 3};
//+
Physical Surface("bottom", 25) = {9, 5};
//+
Physical Surface("sides", 26) = {2, 1, 7, 11};


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