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

[Gmsh] compound volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2018, 13:13
Question compound volume
  #1
New Member
 
Join Date: Jun 2018
Posts: 2
Rep Power: 0
pradeepkpp is on a distinguished road
I am trying to generate structured mesh using Gmsh, the problem i find is, when i run simulation in openfoam using .msh file , openfoam takes each of the volume as seperately, i want to combine all volumes together. Can anyone help please.


I am posting my .geo code lines file here


Point(2) = {0.0125, 0, 0, 1.0};
Point(3) = {3, 0, 0, 1.0};
Point(4) = {3, 0.025, 0, 1.0};
Point(5) = {0.0125, 0.025, 0, 1.0};
Point(6) = {0.0125, 0.0125, 0, 1.0};
Point(7) = {-0.0125, 0.0125, 0, 1.0};
Point(8) = {-0.0125, 0.025, 0, 1.0};
Point(9) = {-3, 0.025, 0, 1.0};
Point(10) = {-3, 0, 0, 1.0};
Point(12) = {-0.0125, 0, 0, 1.0};
Point(13) = {3, 0.0125, 0, 1.0};
Point(14) = {-3, 0.0125, 0, 1.0};
Line(1) = {12, 2};
Line(2) = {7, 6};
Line(3) = {2, 3};
Line(4) = {5, 4};
Line(5) = {3, 13};
Line(7) = {13, 4};
Line(8) = {2, 6};
Line(9) = {6, 5};
Line(10) = {12, 7};
Line(11) = {7, 8};
Line(12) = {10, 14};
Line(13) = {14, 9};
Line(14) = {6, 13};
Line(16) = {12, 10};
Line(17) = {7, 14};
Line(18) = {8, 9};
Line Loop(19) = {2, -8, -1, 10};
Plane Surface(20) = {19};
Line Loop(21) = {4, -7, -14, 9};
Plane Surface(22) = {21};
Line Loop(23) = {14, -5, -3, 8};
Plane Surface(24) = {23};
Line Loop(25) = {18, -13, -17, 11};
Plane Surface(26) = {25};
Line Loop(27) = {17, -12, -16, 10};
Plane Surface(28) = {27};
Transfinite Line {1, 2} = 5 Using Progression 1;
Transfinite Line {3, 14, 4} = 25 Using Progression 1;
Transfinite Line {16, 17, 18} = 25 Using Progression 1;
Transfinite Line {8, 10, 5, 12} = 5 Using Progression 1/1;
Transfinite Line {13, 11, 9, 7} = 5 Using Progression 1/1;

Transfinite Surface {22};
Transfinite Surface {24};
Transfinite Surface {20};
Transfinite Surface {28};
Transfinite Surface {26};
Recombine Surface {20, 22, 24, 26, 28};


Extrude {{1, 0, 0}, {0, 0, 0}, Pi} {
Surface{22, 24, 20, 28, 26};
Layers{16};
Recombine;
}

Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
Surface{101, 123, 84, 67, 50};
Layers{8};
Recombine;
}

Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
Surface{162, 140, 179, 218, 196};
Layers{8};
Recombine;
}

Physical Surface("Inlet") = {231, 153, 114, 135, 96, 251};
Physical Surface("Outlet") = {280, 41, 209, 191, 62, 300};
Physical Surface("Wall") = {122, 239, 161, 49, 217, 288, 110, 37, 76, 149, 205, 171, 227, 276, 264};
Physical Volume("internal") = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
pradeepkpp 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
[blockMesh] edges not aligned with or perpendicular to non-empty directions ynos OpenFOAM Meshing & Mesh Conversion 6 March 26, 2020 15:02
[GAMBIT] Meshing T-pipe maxpoint ANSYS Meshing & Geometry 19 November 25, 2016 01:33
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
[Commercial meshers] CuBit t42 OpenFOAM Meshing & Mesh Conversion 6 July 10, 2008 07:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 01:19.