[Gmsh] Quadrangles and Q1 shape functions

Torquil Macdonald Sørensen torquil at gmail.com
Fri Sep 25 09:58:38 CEST 2015


On 24/09/15 21:43, Véronique et Christophe Geuzaine wrote:
>
>> On 24 Sep 2015, at 15:52, Torquil Macdonald Sørensen
>> <torquil at gmail.com <mailto:torquil at gmail.com>> wrote:
>>
>> Hi!
>>
>> I have a MSH file for a mesh of one quadrangle and four associated
>> scalar field node values. Looking at the GMSH visualization, it uses two
>> triangles to define the function shape inside the quadrangle, and it
>> seems to use P1 shape functions within each triangle.
>>
>> Is it possible to have GMSH not use any triangles for the visualization,
>> but instead assume that the scalar field should be represented with Q1
>> shape functions inside the quadrangle?
>>
>
> Yes: select "Adapt visualization grid" in the options of the view.
> (Set the target error to a negative number to force subdivisions all
> the way to the maximum recursion level.)

Thanks! This is much easier than for me to interpolate my FEM solutions
onto a finer mesh before  visualization. It even looks as if the GMSH
recursive adaptation procedure converges towards something that looks
like Q1 shape functions...

Best regards and thanks,
Torquil Macdonald Sørensen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150925/7eb8b810/attachment.html>