[Gmsh] meshing circular inclusions with desired element size

Nguyen Vinh Phu nvinhphu at gmail.com
Thu Jul 23 06:48:53 CEST 2015


Dear Jose,

Thank you very much, what you suggested is very close to what I need. Is it possible just to have a refined mesh everywhere except 
in the inclusions? What we have now is just refined elements close to the inclusion boundaries, if the inclusions are far from each other, then the domain between them is meshed by coarse elements.

Hope that I did describe my problem well enough. 

Best regards,
Phu

> On 22 Jul 2015, at 6:08 pm, Jose Paulo Moitinho de Almeida <moitinho at civil.ist.utl.pt> wrote:
> 
> 
> If I understand correctly the goal, you need to define the Attractor relative 
> to the edges.
> 
> You also had problems by defining 
> 
> Field[4].IField=1; (Threshold was relative to the first attractor)
> 
> and by not defining the 
> 
> Field[5].FieldsList = {2, 4};
> 
> The attached file is doing what you need?
> 
> Regards
> 
> ZP
> 
> 
> On Wednesday 22 July 2015 15:26:57 Nguyen Vinh Phu wrote:
>> Dear Johannes,
>> 
>> Your help is very much appreciated. And I managed to do that for one single
>> inclusion. When I tried to extend the approach to more than one, I failed.
>> Could you please help me how to do that for a simple problem with two
>> inclusions of which the geo file is attached so that you just modify it.
>> Note that the two inclusions are of different radii. And my target is a
>> domain with many many inclusions. So any help on how to generalise the
>> procedure is welcome.
>> 
>> Best regards,
>> Phu
>> 
>>> On 21 Jul 2015, at 5:44 pm, Johannes Wimmer <johannes.wimmer at rwth-
> aachen.de> wrote:
>>> 
>>> 
>>> Dear Phu,
>>> are your inclusions intersecting the domain boundary? If not, simple
>>> attractors will do.
>> 
>> inclusions.geo
>> 
>>> 
>>> 
>>> I have attached a snippet of tutorial 10. It works in 3D analogously.
>>> Just pay attention that DistMin is not your inner radius of your
>>> transition zone from coarse to fine, but the outer one, now. Think of it
>>> as the radius where the minimal lc applies again. DistMax is then your
>>> radius up to which the maximal lc (i.e. 5*lc) holds.
>>> 
>>> 
>>> 
>>> Cheers,
>>> Johannes
>>> 
>>> 
>>> 
>>> On 20.07.2015 16:47, Nguyen Vinh Phu wrote:
>>>> Dear all,
>>>> 
>>>> 
>>>> 
>>>> I have a square domain with a number of circular inclusions. For each
>>>> inclusion, I normally define 5 points with the same characteristic
>>>> length. This resulted in a mesh where the inclusions are finely
>>>> discretised which is not what I need since the inclusions are only
>>>> elastic in my FE simulations.
>>>> 
>>>> 
>>>> 
>>>> What I need to achieve is a mesh which is refined around the
>>>> inclusion boundaries not within them. I heard and read the
>>>> documentation about  background meshes but I really do not know how
>>>> to get what I need.
>>>> 
>>>> 
>>>> 
>>>> Any help would be much appreciated.
>>>> 
>>>> 
>>>> 
>>>> Best regards, Phu
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________ gmsh mailing list
>>>> gmsh at geuz.org http://www.geuz.org/mailman/listinfo/gmsh
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Dipl.-Ing. Johannes Wimmer
>>> RWTH Aachen
>>> Institut für Angewandte Mechanik
>>> Mies-van-der-Rohe-Str.1
>>> D-52074 Aachen
>>> 
>>> 
>>> 
>>> Tel.: +49 (0)241 80 25013
>>> Fax : +49 (0)241 80 22001
>>> www.ifam.rwth-aachen.de
>>> <t10_partial_coarseGraining.geo>__________________________________________
>>> _____ gmsh mailing list
>>> gmsh at geuz.org
>>> http://www.geuz.org/mailman/listinfo/gmsh
>> 
>> _______________________________________________
>> gmsh mailing list
>> gmsh at geuz.org <mailto:gmsh at geuz.org>
>> http://www.geuz.org/mailman/listinfo/gmsh <http://www.geuz.org/mailman/listinfo/gmsh>
> <inclusions_new.geo>_______________________________________________
> gmsh mailing list
> gmsh at geuz.org <mailto:gmsh at geuz.org>
> http://www.geuz.org/mailman/listinfo/gmsh <http://www.geuz.org/mailman/listinfo/gmsh>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150723/2ebc1440/attachment.html>