[Gmsh] Quadrangles and Q1 shape functions

Torquil Macdonald Sørensen torquil at gmail.com
Thu Sep 24 15:52:01 CEST 2015


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?

Here is the MSH file, and the screenshot is attached:

$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
4
1 0.0 0.0 0.0
2 1.0 0.0 0.0
3 1.0 1.0 0.0
4 0.0 1.0 0.0
$EndNodes
$Elements
1
1 3 2 99 2 1 2 3 4
$EndElements
$NodeData
1
"A scalar view"
1
0.0
3
0
1
4
1 0.0
2 1.0
3 0.0
4 0.0
$EndNodeData

Best regards and thanks,
Torquil Sørensen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quadrangle.png
Type: image/png
Size: 22445 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150924/9639355f/attachment-0001.png>