[Gmsh] Adaptive meshing with background mesh

Christophe Geuzaine cgeuzaine at ulg.ac.be
Fri Oct 15 18:57:18 CEST 2010


On 14/09/10 19:44, Martin Vymazal wrote:
> Dear gmsh users,
>
> I created a simple geo file defining a unit circle. I would like to mesh
> this circle using a background mesh which contains function values of a
> scalar function 0.2*(1.0-x^2-y^2) + 0.05 on the same domain (unit
> circle). When I run gmsh, I get a lot of errors messages of the form
>
> 'No element found containing point (-0.245823,-0.932683,0)'
>
> The resulting mesh seems to be more or less uniform as if the background
> mesh was completely ignored. I attached my files to this email. Does
> anyone know what am I doing wrong? Thank you for any help.
>

Hi Martin - 2 things

* your background mesh should be defined geometrically on the same 
domain as the model (i.e. in your case in the z=0 plane)

* you should use Mesh.CharacteristicLengthExtendFromBoundary=0 for your 
dataset

See attached files.


> Best regards,
>
> Martin Vymazal
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MeshCircle.geo
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20101015/94f4d9b3/attachment.geo>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ParabolicProfile.pos
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20101015/94f4d9b3/attachment.pos>