[Gmsh] refining the mesh of a circle with Attractor Fields

DILASSER Guillaume Guillaume.DILASSER at cea.fr
Mon Jun 19 17:10:40 CEST 2017


Hi Matthias,



It would have been nice to see the script file you are working on to better identify the error, nevertheless here are a few questions :

·         Are you trying to mesh a disk or a donut shape ? In the latter case, did you properly define the hole in the surface (see Plane Surface here<http://gmsh.info/doc/texinfo/gmsh.html#Surfaces>)?

·         Do you really need fields to control your mesh density ? Using point characteristic lengths (see Point here<http://gmsh.info/doc/texinfo/gmsh.html#Points>) may be enough and far easier to implement.

·         If you want to mesh a disk, you will want to embed the inner circle in the disk defined by the outer one using the Line in Surface command (see here<http://gmsh.info/doc/texinfo/gmsh.html#Miscellaneous-mesh-commands>).

Did it help ? Let me know if you still have questions,

Guillaume DILASSER
Doctorant SACM / LEAS
CEA - Centre de Saclay - Bât.123 - PC 319c
91191 Gif sur Yvette Cedex - France -

guillaume.dilasser at cea.fr<mailto:guillaume.dilasser at cea.fr>



-----Message d'origine-----
De : gmsh [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] De la part de Matthias Sitte
Envoyé : lundi 19 juin 2017 13:18
À : gmsh at onelab.info
Objet : [Gmsh] refining the mesh of a circle with Attractor Fields



Hi all,



I'm trying to set up the following problem:



1) Create a circular geometry with radius R_outer using 4 Circles and a Line Loop which defines the outer boundary of the mesh.



2) Create another closed circle (again made out of 4 Circles) with radius R_inner inside the circular mesh.



3) Goal is to reduce lchar and create a finer mesh close the inner circle, but keep the coarser mesh everywhere else.



So far I've started from the example t10.geo and mostly got what I wanted. But I observed that if I close the inner circle, all of the mesh within the circle is meshed with reduced lchar, not the lchar I would've expected. When I open the circle by leaving out segment(s), the result looks better w.r.t. mesh size, but it's of course not what I want. Am I missing something here?



Best,



Matthias





_______________________________________________

gmsh mailing list

gmsh at onelab.info<mailto:gmsh at onelab.info>

http://onelab.info/mailman/listinfo/gmsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170619/b4a40bdb/attachment.html>


More information about the gmsh mailing list