[Gmsh] Fine mesh only at boundary?

Nico Schlömer nico.schloemer at gmail.com
Fri Dec 21 15:04:36 CET 2012


Hi,

things are working pretty much okay with the mesh refinement along the
boundary; there's thing however which I wasn't able to resolve by
myself.
When I refine a mesh in the vicinity of the boundary of a circle, the
entire circle gets refined. The lcar statement for the center point of
the circle doesn't seem to be accounted for.
I attached a minimal script to highlight what's going wrong (remove
the last line for meshing without any refinement).
Is there a canonical way to deal with this?

Cheers,
Nico

On Thu, Dec 20, 2012 at 12:49 AM, Nico Schlömer
<nico.schloemer at gmail.com> wrote:
> This is *exactly* what I needed. Thanks for the hint!
>
> On Thu, Dec 20, 2012 at 12:10 AM, F. A. Portela
> <felipe.alves.portela at gmail.com> wrote:
>> Hi Nico,
>>
>> Have you tried using the Attractor and Threshold fields? If not, you might
>> want to have a look at Tutorial 10.
>>
>> The MathEval field might also be helpful, depending on the domain geometry
>> (also used in Tutorial 10.
>>
>> Good luck.
>>
>> Cheers,
>> Felipe
>>
>>
>> --
>> Felipe Alves Portela
>> MSc student in Aerospace Eng. at TU Delft
>> http://www.linkedin.com/in/felipealvesportela
>>
>>
>>
>> On 19 December 2012 15:41, Nico Schlömer <nico.schloemer at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I have a PDE the solution of which is known to have a steep gradient
>>> close to the boundary of the domain, and to be well behaved inside the
>>> domain. I'd thus like to create a mesh that's fine close to the
>>> boundary, and somewhat coarser inside the domain.
>>>
>>> What are my options with Gmsh?
>>>
>>> Cheers,
>>> Nico
>>>
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at geuz.org
>>> http://www.geuz.org/mailman/listinfo/gmsh
>>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circle.geo
Type: application/octet-stream
Size: 2311 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20121221/fea7b826/attachment.geo>