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] Gmsh physical line and .msh (https://www.cfd-online.com/Forums/openfoam-meshing/163106-gmsh-physical-line-msh.html)

Chacha November 23, 2015 05:10

Gmsh physical line and .msh
 
Hi all,
I've got a problem with gmsh with this code

Code:

Point(1) = {-1, -0.8, 0, 0.3};
Point(2) = {0.3, -0.8, 0, 0.3};
Point(3) = {0.3, 0.3, 0, 0.3};
Point(4) = {-1, 0.3, 0, 0.3};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};

Line Loop(5) = {4, 1, 2, 3};
Plane Surface(6) = {5};

Physical Line("test")={4};

when the last line about the "Physical Line" is comment, the .msh contain all, but when it's not comment, the .msh is
Code:

$MeshFormat
2.2 0 8
$EndMeshFormat
$PhysicalNames
1
1 1 "test"
$EndPhysicalNames
$Nodes
5
1 -1 -0.8 0
2 -1 0.3 0
3 -1 0.02500000000071845 0
4 -1 -0.2499999999984228 0
5 -1 -0.5249999999991237 0
$EndNodes
$Elements
4
1 1 2 1 4 2 3
2 1 2 1 4 3 4
3 1 2 1 4 4 5
4 1 2 1 4 5 1
$EndElements

And does not containt the mesh...
Do you have an idea about that?
Thanks for your help!

alexeym November 23, 2015 08:10

Hi,

And what is the problem (or should we call it difficulty?)? Gmsh did as you said to it: created 2D mesh and 1D physical group with name test.


All times are GMT -4. The time now is 22:30.