CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

GMSH mesh export problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2021, 04:21
Default GMSH mesh export problems
  #1
New Member
 
Join Date: Mar 2021
Posts: 1
Rep Power: 0
jeppeth is on a distinguished road
Hi,
We are trying to export a mesh for EM FEM simulations.
We are having problems exporting so that we get PhysicalNames / physical groups assigned to the individual elements and nodes. I have included a the geo file below.
When we export the mesh all elements are assigned to group 0.
Thanks for the help.

-------------------

// Gmsh project created on Mon Mar 15 15:42:18 2021
SetFactory("OpenCASCADE");
//+
Point(1) = {-1, 1, 0, 1.0};
//+
Point(2) = {1, 1, 0, 1.0};
//+
Point(3) = {1, -1, 0, 1.0};
//+
Point(4) = {-1, -1, 0, 1.0};
//+
Point(5) = {-0.9, 0.9, 0, 1.0};
//+
Point(6) = {0.9, 0.9, 0, 1.0};
//+
Point(7) = {0.9, -0.9, 0, 1.0};
//+
Point(8) = {-0.9, -0.9, 0, 1.0};
//+
Line(1) = {1, 2};
//+
Line(2) = {2, 6};
//+
Line(3) = {6, 5};
//+
Line(4) = {5, 1};
//+
Line(5) = {2, 3};
//+
Line(6) = {7, 3};
//+
Line(7) = {7, 6};
//+
Line(8) = {7, 8};
//+
Line(9) = {8, 4};
//+
Line(10) = {4, 3};
//+
Line(11) = {8, 5};
//+
Line(12) = {1, 4};
//+
Curve Loop(1) = {1, 2, 3, 4};
//+
Plane Surface(1) = {1};
//+
Curve Loop(2) = {2, -7, 6, -5};
//+
Plane Surface(2) = {2};
//+
Curve Loop(3) = {8, 9, 10, -6};
//+
Plane Surface(3) = {3};
//+
Curve Loop(4) = {11, 4, 12, -9};
//+
Plane Surface(4) = {4};
//+
Curve Loop(5) = {3, -11, -8, 7};
//+
Plane Surface(5) = {5};
//+
Extrude {0, 0, 4} {
Surface{1};
}
//+
Extrude {0, 0, 4} {
Surface{2};
}
//+
Extrude {0, 0, 4} {
Surface{3};
}
//+
Extrude {0, 0, 4} {
Surface{4};
}
//+
Extrude {0, 0, 4} {
Surface{5};
}
//+
Physical Volume("freeSpace", 53) = {5};
//+
Physical Volume("metal", 54) = {1};
//+
Physical Volume("metal", 54) += {4};
//+
Physical Volume("metal", 54) += {3};
//+
Physical Volume("metal", 54) += {2};
//+
Physical Surface("port1", 55) = {30};
//+
Physical Surface("port2", 56) = {5};

-------------------


$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
4
2 55 "port1"
2 56 "port2"
3 53 "freeSpace"
3 54 "metal"
$EndPhysicalNames
$Entities
28 52 30 5
1 -1 1 0 0
2 1 1 0 0
3 1 -1 0 0
4 -1 -1 0 0
5 -0.9 0.9 0 0
6 0.9 0.9 0 0
7 0.9 -0.9 0 0
8 -0.9 -0.9 0 0
9 -1 1 4 0
10 1 1 4 0
11 0.9 0.9 4 0
12 -0.9 0.9 4 0
13 1 1 4 0
14 0.9 0.9 4 0
15 0.9 -0.9 4 0
16 1 -1 4 0
17 0.9 -0.9 4 0
18 -0.9 -0.9 4 0
19 -1 -1 4 0
20 1 -1 4 0
21 -0.9 -0.9 4 0
22 -0.9 0.9 4 0
23 -1 1 4 0
24 -1 -1 4 0
....
jeppeth is offline   Reply With Quote

Reply

Tags
gmsh, gmsh 4.7.1


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
[foam-extend.org] foam-extend-4.0 gcc errors & maybe paraFoam powerline332 OpenFOAM Installation 3 May 24, 2018 21:16
mesh export to gmsh format Kelomari enGrid 0 September 22, 2015 19:35
Unable to install OpenFOAM 1.6-ext Maimouna OpenFOAM Installation 23 May 8, 2014 05:47
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 07:39.