CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Gmsh physical line and .msh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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,436
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import this Gmsh .msh file to enGrid ffan enGrid 0 May 5, 2014 12:28
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
gmsh to openFoam Artex85 Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 December 2, 2011 04:31
gmshToFoam problem: not the same mesh in Gmsh vs. paraview zhernadi Open Source Meshers: Gmsh, Netgen, CGNS, ... 8 July 7, 2011 02:28
Converting curved surfaces problem markdowlinguk Open Source Meshers: Gmsh, Netgen, CGNS, ... 4 August 2, 2007 08:05


All times are GMT -4. The time now is 08:34.