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

[Gmsh] Boundary layer not created during gmshToFoam for Gmsh4.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2018, 17:55
Exclamation Boundary layer not created during gmshToFoam for Gmsh4.0
  #1
New Member
 
Hasan Khan
Join Date: Nov 2017
Location: Austin, TX
Posts: 1
Rep Power: 0
hasankhan is on a distinguished road
I am trying to create a mesh of a cube (box) with multiple empty spheres (boolean difference) located inside the box using Gmsh4.0. I am successful in making the mesh (*.msh v2.0 ascii) and importing it in OF using gmshToFoam. The boundaries that are labeled in Gmsh are not created in OF, instead only one zone (patch0) is created and everything is grouped there.


I tried to simplify the problem and created a box using the OpenCASCADE kernel. I create boundaries using the physical surface tab. I create a mesh, export it as v2.0 and convert it to OF using gmshToFoam, but get the same problem. The code used is:


Code:
SetFactory("OpenCASCADE");
Box(1) = {-0.6, -0.5, 0, 1, 1, 1};
Physical Surface("inlet") = {1};
Physical Surface("outlet") = {2};
Physical Surface("walls") = {3, 4, 5,6};
On the other hand, I did the same by defining points, creating lines, surface, and volumes in Gmsh v2.10 (code below) and used it to create a mesh and convert it for OF using gmshToFoam. This works perfectly well.
Code:
cl1 = 0.05;
Point(1) = {-1, -1, -1, cl1};
Point(2) = {1, -1, -1, cl1};
Point(3) = {1, 1, -1, cl1};
Point(4) = {-1, 1, -1, cl1};
Point(5) = {-1, -1, 1, cl1};
Point(6) = {1, -1, 1, cl1};
Point(7) = {1, 1, 1, cl1};
Point(8) = {-1, 1, 1, cl1};
Line(1) = {8, 7};
Line(2) = {8, 5};
Line(3) = {5, 6};
Line(4) = {6, 7};
Line(5) = {6, 2};
Line(6) = {7, 3};
Line(7) = {3, 4};
Line(8) = {3, 2};
Line(9) = {2, 1};
Line(10) = {1, 4};
Line(11) = {1, 5};
Line(12) = {8, 4};
Line Loop(14) = {12, -10, 11, -2};
Plane Surface(14) = {14};
Line Loop(16) = {9, 10, -7, 8};
Plane Surface(16) = {16};
Line Loop(18) = {1, 6, 7, -12};
Plane Surface(18) = {18};
Line Loop(20) = {2, 3, 4, -1};
Plane Surface(20) = {20};
Line Loop(22) = {4, 6, 8, -5};
Plane Surface(22) = {22};
Line Loop(24) = {11, 3, 5, 9};
Plane Surface(24) = {24};
Surface Loop(26) = {14, 16, 18, 20, 22, 24};
Volume(26) = {26};
Physical Surface("inlet") = {14};
Physical Surface("outlet") = {22};
Physical Surface("walls") = {16, 18, 20, 24};
Physical Volume(33) = {26};
My question is, am I doing something wrong when using Gmsh4.0 (using the OpenCASCADE approach)?
hasankhan is offline   Reply With Quote

Old   November 24, 2018, 23:29
Default
  #2
New Member
 
Robert
Join Date: Nov 2018
Posts: 8
Rep Power: 7
openfoamtutorials is on a distinguished road
I've never used OpenCASCADE, but if you are able to see your geometry in the GUI, you can see if you are assigning IDs correctly by going to the Tools > Visibility window, and selecting Physical Groups in the dropdown menu.
openfoamtutorials is offline   Reply With Quote

Reply

Tags
gmshtofoam problem, mesh 3d, openfoam 5


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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
[snappyHexMesh] Error defining boundary layer around cube snappyHexMesh crizpi21 OpenFOAM Meshing & Mesh Conversion 5 October 16, 2021 10:56
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48


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