CFD Online Logo CFD Online URL
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

background mesh in gmsh

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 14, 2012, 18:11
Default background mesh in gmsh
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_J is offline   Reply With Quote

Old   March 20, 2013, 05:20
Felipe Portela
Join Date: Dec 2012
Location: London
Posts: 64
Rep Power: 7
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):

Hope it helps!
fportela is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
failed 1 mesh checks (gmsh) appa Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 July 30, 2015 17:09
Error Importing Surface Mesh from GMSH to EnGrid eric.m.tridas enGrid 4 August 17, 2013 09:34
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
Can I use gridgen mesh as a background mesh for snappyhexmesh. amatuer OpenFOAM Meshing & Mesh Conversion 3 May 3, 2012 10:27
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43

All times are GMT -4. The time now is 20:46.