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

[Gmsh] 3D mesh using transfinite surface + extrude with layer?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2016, 02:26
Default 3D mesh using transfinite surface + extrude with layer?
  #1
Member
 
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 9
CFD-Lover is on a distinguished road
Hey All,

I have been reading and practising how to create a 3D mesh in gmsh. I have come to a question I was not able to answer. Anyway, I created two line with following coordinates;

Point(1) = {2.5, 0, 0, 0.0};
Point(2) = {5.25, 0, 0, 0.0};
Point(3) = {8, 0, 0, 0.0};

Then I extruded the same points 14 in the z direction using the following points;

Point(4) = {2.5, 0, 14, 0.0};
Point(5) = {5.25, 0, 14, 0.0};
Point(6) = {8, 0, 14, 0.0};

Now, I have two rectangles with tow Plane surfaces as shown below;

pic1.jpg

I created a grid for the two rectangles as shown below using transfinite surface algorithm;

Transfinite Line {5, 2, 4, 1} = 20 Using Progression 1;
Transfinite Line {6, 7, 3} = 100 Using Progression 1
Transfinite Surface "*";
Recombine Surface "*";

pic2.jpg

Now that we have a 2d mesh, I thought that it is easy to rotate four times to obtain the full 3d for the cylinder as shown below;

pic3.jpg
pic4.jpg
pic5.jpg

All I want to do is maintaining the same 2d mesh size that I created using transfinite to be set in all 3d domain. To do so, when I applied extrude the 2d surface, I used the command layer{30};, which it totally do not know what it does as follows;

Extrude {{0, 0, 1}, {0, 0, 0}, Pi/2} {
Surface{9, 11}; Layers{30};
}
Extrude {{0, 0, 1}, {0, 0, 0}, Pi/2} {
Surface{33, 55}; Layers{30};
}
Extrude {{0, 0, 1}, {0, 0, 0}, Pi/2} {
Surface{99, 77}; Layers{30};
}
Extrude {{0, 0, 1}, {0, 0, 0}, Pi/2} {
Surface{121, 143}; Layers{30};
}

Applying extrude command and Layer{30} has created a mesh that look reasonable, but it did not match the mesh size of the two rectangles that I created earlier. Can somebody explain how the command layer works and how can I create it with the same size of the 2d before extrusion?

Thank you in advance,
CFD-Lover 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] Multi Region Mesh of a car filter Zephiro88 OpenFOAM Meshing & Mesh Conversion 3 September 11, 2019 19:34
[snappyHexMesh] Snappy Hex Mesh - issue with smoothness of the model edges olek.warc OpenFOAM Meshing & Mesh Conversion 1 August 31, 2018 11:31
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
errors Fahad Main CFD Forum 0 March 23, 2004 13:20


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