[Gmsh] P2 visualisation

Jose Paulo Moitinho de Almeida moitinho at civil.ist.utl.pt
Fri Jun 1 17:47:29 CEST 2018

Select "Adapt visualization grid"
Increase the "Maximum recursion level"

You may also want to reduce the "Target visualization error". 
I (almost) always set it to -0.0001



On sexta-feira, 1 de junho de 2018 16:28:30 WEST Charles Pierre wrote:
> Hi,
>    I try to visualize a P2 scalar field. I created a '.msh' file including
> a mesh made of second order triangles and of node data at the mesh
> vertices and edges (P2 degrees of freedom).
>    It seems that gmsh performs a P1 interpolation by considering only the
> vertex data.
>    Here is an example on the reference triangle where the vertex values are
> set to 0 whereas the edge values are set to 1. Running 'gmsh P2.vtk' only
> displays a blue triangle corresponding to the 0-value.
>    Is there a way to visualise the P2 funstion without P1 interpolation ?
> (and to truly see the quadratic function defined in the '.msh' file) ?
>    If yes is it also possible with higher order data (P3) ?
> Best regards; Charles PIERRE.
> ----------------------
> ---
> Charles PIERRE
> Laboratoire de Mathématiques et de leurs Applications de Pau
> Université de Pau et des Pays de l'Adour, France
> 05 59 40 75 27
> http://cpierre1.perso.univ-pau.fr/

More information about the gmsh mailing list