[Gmsh] Fine mesh only at boundary?

Nico Schlömer nico.schloemer at gmail.com
Wed Dec 26 14:02:49 CET 2012


> Mesh.CharacteristicLengthExtendFromBoundary= 0;

This is producing the weiiirdest elements by taking a very coarse mesh
and then basically adding extra nodes only on specific edges of the
that mesh. The resulting elemens would be very bad quality.

--Nico



On Mon, Dec 24, 2012 at 5:38 PM, F. A. Portela
<felipe.alves.portela at gmail.com> wrote:
> Hi Nico,
>
> Try adding the following line to your .geo and see if it helps:
>
> Mesh.CharacteristicLengthExtendFromBoundary= 0;
>
> Merry xmas,
> Felipe
>
>
> --
> Felipe Alves Portela
> MSc student in Aerospace Eng. at TU Delft
> http://www.linkedin.com/in/felipealvesportela
>
>
> On 21 December 2012 15:04, Nico Schlömer <nico.schloemer at gmail.com> wrote:
>>
>> 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
>> >>
>> >>
>
>