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

[Gmsh] Structured Meshing with Gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mzzmrt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2020, 19:32
Default Structured Meshing with Gmsh
  #1
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Hi all,
I hope you are doing well. I am a bit newer in Gmsh meshing. Actually, I was trying to create a square cavity with a structured mesh using Gmsh. Now I need to make a more dense mesh close to the walls inside the square cavity. Please see the picture and geo file attached here. Fortunately, I was able to make a dense mesh on two sides (left and bottom) of the cavity so far. I need to create the same dense mesh close to the other (upper or top) side as well. Is it possible to do it? I think it's possible but I don't know how to do it.

Is there anyone who can help me with this issue? This might be a silly issue for someone but its very important for me right now?

Any help would be appreciated...

Thank you in advance!

Best Regards
Razon
Attached Images
File Type: png sssss.png (12.4 KB, 26 views)
Attached Files
File Type: txt square.txt (462 Bytes, 4 views)
Mondal131211 is offline   Reply With Quote

Old   February 3, 2020, 19:44
Default Gmsh structured meshing
  #2
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by Mondal131211 View Post
Hi all,
I hope you are doing well. I am a bit newer in Gmsh meshing. Actually, I was trying to create a square cavity with a structured mesh using Gmsh. Now I need to make a more dense mesh close to the walls inside the square cavity. Please see the picture and geo file attached here. Fortunately, I was able to make a dense mesh on two sides (left and bottom) of the cavity so far. I need to create the same dense mesh close to the other (upper or top) side as well. Is it possible to do it? I think it's possible but I don't know how to do it.

Is there anyone who can help me with this issue? This might be a silly issue for someone but its very important for me right now?

Any help would be appreciated...

Thank you in advance!

Best Regards
Razon
Anyone here? Please suggest to me...

Cheers
Razon
Mondal131211 is offline   Reply With Quote

Old   February 4, 2020, 04:52
Default
  #3
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
There are different ways to do it with gmsh for example:




Point(1) = {0, 0, 0, 1.0};
Point(2) = {1, 0, 0, 1.0};
Point(3) = {1, 1, 0, 1.0};
Point(4) = {0, 1, 0, 1.0};
Line(1) = {2, 1};
Line(2) = {1, 4};
Line(3) = {4, 3};
Line(4) = {3, 2};
Line Loop(1) = {2, 3, 4, 1};
Plane Surface(1) = {1};
Transfinite Surface {1} = {4, 3, 2, 1};
Transfinite Line {1,2,-3,-4} = 100 Using Bump 0.15;
Recombine Surface {1};
Mondal131211 likes this.
mzzmrt is offline   Reply With Quote

Old   February 4, 2020, 19:42
Default
  #4
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by mzzmrt View Post
There are different ways to do it with gmsh for example:




Point(1) = {0, 0, 0, 1.0};
Point(2) = {1, 0, 0, 1.0};
Point(3) = {1, 1, 0, 1.0};
Point(4) = {0, 1, 0, 1.0};
Line(1) = {2, 1};
Line(2) = {1, 4};
Line(3) = {4, 3};
Line(4) = {3, 2};
Line Loop(1) = {2, 3, 4, 1};
Plane Surface(1) = {1};
Transfinite Surface {1} = {4, 3, 2, 1};
Transfinite Line {1,2,-3,-4} = 100 Using Bump 0.15;
Recombine Surface {1};
Hi mzzmrt,
Thank you very much for your reply. It is what I was looking for. You helped me a lot.

Cheers
Razon
Mondal131211 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
[Gmsh] Meshing of a cone with Gmsh didn't quite work ehofgen OpenFOAM Meshing & Mesh Conversion 4 May 2, 2018 16:45
[Gmsh] GMSH : structured mesh issue bibiboom OpenFOAM Meshing & Mesh Conversion 0 May 17, 2017 18:49
[Gmsh] 3D Free surface flow past circular cylinder meshing using GMSH arieljeds OpenFOAM Meshing & Mesh Conversion 7 January 14, 2017 12:57
[Gmsh] Gmsh: Unstructured to Structured Mesh geometry ChasingNeutrons OpenFOAM Meshing & Mesh Conversion 0 November 22, 2016 12:55
Structured Mesh in GMSH vitor Main CFD Forum 4 April 28, 2010 08:15


All times are GMT -4. The time now is 21:48.