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

[Gmsh] Gmsh - Pipe Mesh issues

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2019, 14:15
Default Gmsh - Pipe Mesh issues
  #1
New Member
 
Manmeet Dhiman
Join Date: Nov 2019
Posts: 1
Rep Power: 0
labengg98 is on a distinguished road
Hello everyone

I am new to OpenFoam and I am trying to run a simulation of a pipe. When I try to run the command "gmshToFoam", I get a lot of errors saying I don't have 3D elements in my mesh file. I don't know where to go from here. I have put my geo file code below. Can anyone please help me out?

Code:

// Gmsh project created on Fri Nov 22 10:48:33 2019

//+
Point(1) = {10, 10, 0, 5.0};
Point(2) = {10, -10, 0, 5.0};
Point(3) = {-10, -10, 0, 5.0};
Point(4) = {-10, 10, 0, 5.0};
Point(5) = {0, 0, 0, 5.0};
//+
Circle(1) = {3, 5, 2};
Circle(2) = {2,5,1};
Circle(3) = {1,5,4};
Circle(4) = {4,5,3};
//+
Extrude {0, 0, 100} {
Curve{2}; Curve{3}; Curve{4}; Curve{1};
}
//+
Curve Loop(5) = {6, -7, -5, 2};
//+
Plane Surface(5) = {5};
//+
Curve Loop(7) = {12, -5, -1, 10};
//+
Plane Surface(6) = {7};
//+
Curve Loop(8) = {11, -10, -4, 8};
//+
Plane Surface(7) = {8};
//+
Curve Loop(9) = {9, -8, -3, 6};
//+
Plane Surface(8) = {9};
//+
Curve Loop(10) = {11, 12, 7, 9};
//+
Plane Surface(9) = {10};

//+
Physical Surface("walls") = {4, 3, 2, 1};
//+
Physical Surface("inlet") = {9};
labengg98 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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 05:02
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[Gmsh] background mesh in gmsh Nick_J OpenFOAM Meshing & Mesh Conversion 1 March 20, 2013 04:20
[GAMBIT] 3D mesh for pipe intersection pranab_jha ANSYS Meshing & Geometry 3 May 28, 2010 01:33
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 00:17.