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

[Gmsh] background mesh in gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2012, 18:11
Default background mesh in gmsh
  #1
New Member
 
Join Date: Nov 2012
Posts: 1
Rep Power: 0
Nick_J is on a distinguished road
Hello all,

I hope someone can help me using gmsh with a background mesh for refinements. I would like to create a (2D) mesh where very small areas are refined. The refinement is dependent on the solution of a previous simulation and there is no easy way to do the refinements using an Attractor field with lines and/or points. Therefore, I would like to use a background mesh.

My first question is about how the background is exactly used to determine the element sizes. Is there some sort of ‘sampling mesh’, where the vertices are used to determine the values in the background mesh? If so, what is the resolution of this sampling mesh?

My second question is related to the first. Because it would be too time consuming to make the whole sampling mesh with the resolution of the small areas, I would like to use an iterative procedure (as suggested in the manual). However, I am having difficulty implementing this iterative process in gmsh. I tried using ‘merge’, but it always seems that the same sampling mesh is used, yielding the same result for every iteration.

Can someone point me in the right direction?

Thank you very much in advance!
Nick
Nick_J is offline   Reply With Quote

Old   March 20, 2013, 05:20
Default
  #2
Member
 
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 14
fportela is on a distinguished road
Hi Nick,

I'm not sure if I can help you directly with your questions. The experience I have with this is pretty basic, but at the time it worked well for me.

If you construct a .pos file with the target mesh sizes at the nodes of the elements, you can then use it as a background mesh.

Have a look at this files (the .zip was to large to attach to this message): https://www.dropbox.com/s/gsihvjnmhz...adaptation.zip

Hope it helps!
fportela 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] Gmsh - External Flow Mesh Generation - Airfoil STL file Eefoe OpenFOAM Meshing & Mesh Conversion 2 August 22, 2017 10:27
GMSH extrude a boundary layer from an unstructured Mesh Hillie Mesh Generation & Pre-Processing 2 July 7, 2017 04:38
[Gmsh] GMSH : structured mesh issue bibiboom OpenFOAM Meshing & Mesh Conversion 0 May 17, 2017 19:49
[Gmsh] gMsh instead of blockMesh for base mesh, then snappyHexMesh sazabi2001 OpenFOAM Meshing & Mesh Conversion 0 February 23, 2017 13:00
[Gmsh] failed 1 mesh checks (gmsh) appa OpenFOAM Meshing & Mesh Conversion 2 July 30, 2015 18:09


All times are GMT -4. The time now is 11:22.