CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Gmsh physical line and .msh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2015, 06:10
Default Gmsh physical line and .msh
  #1
New Member
 
Chacha blabla
Join Date: Nov 2015
Posts: 1
Rep Power: 0
Chacha is on a distinguished road
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!
Chacha is offline   Reply With Quote

Old   November 23, 2015, 09:10
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.
alexeym is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmsh 4 compatibility with gmshToFoam gridley2 OpenFOAM Pre-Processing 1 January 14, 2019 14:06
[Gmsh] Nasa Nozzle: Plot 3D -->gmsh -->fluent - no physical groups Nico89 OpenFOAM Meshing & Mesh Conversion 1 June 14, 2016 06:40
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[Gmsh] gmshToFoam problem: not the same mesh in Gmsh vs. paraview zhernadi OpenFOAM Meshing & Mesh Conversion 8 July 7, 2011 03:28
[Gmsh] Converting curved surfaces problem markdowlinguk OpenFOAM Meshing & Mesh Conversion 4 August 2, 2007 09:05


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