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

[Gmsh] 3D Hex Mesh after BooleanDifference in Gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2018, 08:39
Default 3D Hex Mesh after BooleanDifference in Gmsh
  #1
New Member
 
Bhargav lakhlani
Join Date: Jan 2018
Posts: 22
Rep Power: 8
bhargav1195 is on a distinguished road
Hello Everyone,

I am trying to generate a structured mesh for a rectangular domain with one Inlet and one Outlet. I have bolleaned(Cut) the Inlet and Outlet from the main rectangular domain. (Computational Domain is attached in Figure). After creating one volume, Transfinite Volume function is not working in Gmsh as it requires Volume with 5 or 6 faces only. However, if I try with TransfQuadTri function still I am unable to create 3D Hex mesh of Domain.

The script of above operation is as follow:
//
SetFactory("OpenCASCADE");
//+
Box(1) = {0, 0, 0, 10, 10, 10};
//+
Box(2) = {0.5, 0.5, 0.5, 0.2, 2, 2};
//+
Box(3) = {9, 7.5, 7.5, 0.2, 2, 2};
//+

//+
BooleanDifference{ Volume{1}; Delete; }{ Volume{2}; Delete; }
//+
BooleanDifference{ Volume{1}; Delete; }{ Volume{3}; Delete; }
//+
Physical Surface("Inlet") = {30};
//+
Physical Surface("Outlet") = {13};
//+
Physical Surface("wall") = {22, 19, 23, 24, 20, 21};
//+
Physical Volume("Domain") = {1};

Transfinite Line "*" = 10;
Transfinite Surface "*";
Recombine Surface "*";SetFactory("OpenCASCADE");
//+
Box(1) = {0, 0, 0, 10, 10, 10};
//+
Box(2) = {0.5, 0.5, 0.5, 0.2, 2, 2};
//+
Box(3) = {9, 7.5, 7.5, 0.2, 2, 2};
//+

//+
BooleanDifference{ Volume{1}; Delete; }{ Volume{2}; Delete; }
//+
BooleanDifference{ Volume{1}; Delete; }{ Volume{3}; Delete; }
//+
Physical Surface("Inlet") = {30};
//+
Physical Surface("Outlet") = {13};
//+
Physical Surface("wall") = {22, 19, 23, 24, 20, 21};
//+
Physical Volume("Domain") = {1};

Transfinite Line "*" = 10;
Transfinite Surface "*";
Recombine Surface "*";
Transfinite Volume "*";


//

Please suggest me some feasible solution to this problem.

Regards,
Bhargav
Attached Images
File Type: png 1.png (24.6 KB, 19 views)
bhargav1195 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[blockMesh] Openfoam: Meshing, where do my defaultFaces come from syntex OpenFOAM Meshing & Mesh Conversion 19 December 10, 2018 07:21
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[blockMesh] BlockMesh number internal faces and boundary ynos OpenFOAM Meshing & Mesh Conversion 6 December 13, 2011 05:36
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


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