CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

[gmsh] How to create a 3D volume mesh using a existing surface mesh?!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2017, 09:12
Question [gmsh] How to create a 3D volume mesh using a existing surface mesh?!
  #1
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Dear all,

i try to create a 3D volume mesh above a preexisting surface mesh for the later use in an OpenFOAM simulation. I've generate a .stl file containing my topography and used the gmsh "Reclassify 2D" command to create a suitable .msh file. I merge this new .msh file in gmsh and create the outline of my domain above this mesh. To do this i use the following code:
Code:
Mesh.RemeshAlgorithm=1;
Mesh.CharacteristicLengthFactor=1.00;//0.05;
Merge "cube.msh";
//RefineMesh;
CreateTopology;

lc = 1;

// ++++++++++++++++++++++++++++++++++++++++
// +++++++++ Box above topography +++++++++
// ++++++++++++++++++++++++++++++++++++++++
Point(14) = {29, 20, 2, lc};
Point(15) = {29, 24, 2, lc} ;
Point(16) = {31, 24, 2, lc} ;
Point(17) = {31, 20, 2, lc} ;

Line(40) = {7, 17};
Line(41) = {2, 14};
Line(42) = {1, 15};
Line(43) = {5, 16};
Line(44) = {16, 15};
Line(45) = {15, 14};
Line(46) = {14, 17};
Line(47) = {17, 16};
Line(48) = {5, 1};
Line(49) = {2, 1};
Line(50) = {2, 7};
Line(51) = {7, 5};

Line Loop(2) = {45, 46, 47, 44};
Plane Surface(11) = {2};
Line Loop(3) = {46, -40, -50, 41};
Plane Surface(12) = {3};
Line Loop(4) = {47, -43, -51, 40};
Plane Surface(13) = {4};
Line Loop(5) = {44, -42, -48, 43};
Plane Surface(14) = {5};
Line Loop(7) = {42, 45, -41, 49};
Plane Surface(16) = {7};

Physical Surface("Inlet") = {12};
Physical Surface("Outlet") = {14};
Physical Surface("Front") = {13};
Physical Surface("Back") = {16};
Physical Surface("Top") = {11};
Physical Surface("Surface") = {2};
The result is depicted in the following image.


As you can see i'm able to create (physical) surfaces defining my domain above my surface, which itself is defined as a physical surface.

Problem:
I'm unable to create a meshed representation of what i've got so far. Can anybody suggest a solution for my problem?

With kind regards
Robert
RobertHB 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
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 07:41
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Interpolating volume data onto quad surface mesh N.R. CFX 6 June 7, 2007 09:15


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