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

[Gmsh] structured mesh .msh to OpenFOAM not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2018, 19:14
Smile structured mesh .msh to OpenFOAM not working
  #1
New Member
 
Join Date: May 2018
Posts: 18
Rep Power: 7
Oliver Meng is on a distinguished road
Hi everyone,

i made a structure mesh using GMSH and now try to import my .msh file into openFOAM. But when I process it, it seems like openfoam goes into a dead loop. My .geo file stays below. I would appreciate it if someone could tell me what's wrong with my meshing.

I doubt there could be something wrong when I tried to use different surface to define the mesh.

Thanks!


cl1 = 10;
cl2 = 0.5;

Point(1) = {0, 0, 0, cl1};
Point(2) = {4304.8,0,0,cl1};
Point(3) = {4304.8,-127,0, cl1};
Point(4) = {304.8,-127,0, cl1};
Point(5) = {304.8,-76.2,0, cl1};
Point(6) = {0,-76.2,0, cl1};
Point(7) = {304.8,0,0, cl1};

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

Curve Loop(1) = {1, 4, 2, -3};
Plane Surface(1) = {1};

Transfinite Line{4, -3} = 76;
Transfinite Line{1, 2} = 19 Using Bump 0.1;
Transfinite Surface{1};
Recombine Surface{1};

Point(8) = {4304.8, -76.2, 0, cl1};
Point(9) = {340.8, 0, 0, cl1};
Point(10) = {340.8, -76.2, 0, cl1};
Point(11) = {340.8, -127, 0, cl1};
Point(12) = {4270, 0, 0, cl1};
Point(13) = {4270, -76.2, 0, cl1};
Point(14) = {4270, -127, 0, cl1};

Line(5) = {5, 4};
Line(6) = {4, 11};
Line(7) = {11, 10};
Line(8) = {10, 5};
Line(9) = {7, 9};
Line(10) = {9, 10};
Line(11) = {10, 13};
Line(12) = {13, 8};
Line(13) = {8, 2};
Line(14) = {2, 12};
Line(15) = {12, 13};
Line(16) = {13, 14};
Line(17) = {14, 3};
Line(18) = {3, 8};
Line(19) = {9, 12};
Line(20) = {14, 11};

Curve Loop(2) = {9, 10, 8, 2};
Plane Surface(2) = {2};
Transfinite Line{2} = 19 Using Bump 0.1;
Transfinite Line{10} = 19 Using Progression 1.05;
Transfinite Line{9, 8} = 9;
Transfinite Surface{2};
Recombine Surface{2};

Curve Loop(3) = {5, 6, 7, 8};
Plane Surface(3) = {3};
Transfinite Line{6,-8} = 9 Using Progression 1.1;
Transfinite Line{7} = 13 Using Progression 1.1;
Transfinite Line{5} = 13;
Transfinite Surface{3};
Recombine Surface{3};

Curve Loop(4) = {11, -15, -19, 10};
Plane Surface(4) = {4};
Transfinite Line{10,15} = 19 Using Progression 1.05;
Transfinite Line{11,19} = 500;
Transfinite Surface{4};
Recombine Surface{4};

Curve Loop(5) = {16, 20, 7, 11};
Plane Surface(5) = {5};
Transfinite Line{11,20} = 500;
Transfinite Line{-16,7} = 13 Using Progression 1.1;
Transfinite Surface{5};
Recombine Surface{5};

Curve Loop(6) = {13, 14, 15, 12};
Plane Surface(6) = {6};
Transfinite Line{-13,15} = 19 Using Progression 1.05;
Transfinite Line{-12,14} = 9 Using Progression 1.1;
Transfinite Surface{6};
Recombine Surface{6};

Curve Loop(7) = {16, 17, 18, -12};
Plane Surface(7) = {7};
Transfinite Line{-12,-17} = 9 Using Progression 1.1;
Transfinite Line{-16,18} = 13 Using Progression 1.1;
Transfinite Surface{7};
Recombine Surface{7};

Background Field = 5;

Extrude{0,0,5}{
Surface{1,2,3,4,5,6,7};
Layers{1};
Recombine;}

Physical Surface("Ein") = {29};
Physical Surface("Aus") = {139,169};
Physical Surface("upperWall") = {41,51,143,103};
Physical Surface("lowerWall") = {165, 121, 77, 73, 33};
Physical Surface("leer")= {1,2,3,4,5,6,42,64,86,108,130,152,7,174};

Physical Volume(1)= {1};
Surface Loop(1) = {42, 29, 1, 33, 41, 64, 51, 2, 86, 73, 3, 77, 108, 103, 4, 130, 121, 5, 152, 139, 6, 143, 174, 165, 7, 169};

Last edited by Oliver Meng; June 13, 2018 at 19:17. Reason: add new codes
Oliver Meng is offline   Reply With Quote

Reply

Tags
gmsh files


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
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 44 March 12, 2024 00:35
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[Other] vtk mesh or Abaqus mesh to OpenFOAM bigphil OpenFOAM Meshing & Mesh Conversion 27 November 23, 2015 17:31
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10
Structured Grid Definition craig shores Main CFD Forum 3 March 21, 2001 14:48


All times are GMT -4. The time now is 03:06.