Hello

I am having problems with the visualization of vector fields, which are defined 
as ElementNodeData, using "my own" Interpolation Scheme.

The attached file prob.msh resumes the problem: the scalar field and the y 
component of the vector field are the same. The plotted values are equal for 
one element, but not for the other, where the vector is always zero.

Changing the numbering of the element nodes, as in good.msh, gives good 
results.

Am I doing something wrong?

Regards

ZP

PS: I have seen Ticket 175, and I know that adaptive visualization does not 
work for tensor fields. It seemed to work for vectors...

PS 2: Tested on revision 16765 and on 2.7.0
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
4
1 0 0 0
2 1 0 0
3 1 1 0
4 0 1 0
$EndNodes
$Elements
2
1 2 2 15 9 1 2 4
2 2 2 15 9 3 4 2
$EndElements
$MeshFormat
2.2 0 8
$EndMeshFormat
$InterpolationScheme
"Basis 2"
1
3
2
6 6
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1
6 3
0 0 0
1 0 0
0 1 0
2 0 0
1 1 0
0 2 0
$EndInterpolationScheme
$ElementNodeData
2
"Vector 2"
"Basis 2"
1
0.0
3
0
3
2
1 6 0 0 0
 0 0 0
 0 6 0
 0 0 0
 0 0 0
 0 -6 0
2 6 0 0 0
 0 0 0
 0 6 0
 0 0 0
 0 0 0
 0 -6 0
$EndElementNodeData
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
4
1 0 0 0
2 1 0 0
3 1 1 0
4 0 1 0
$EndNodes
$Elements
2
1 2 2 15 9 1 2 4
2 2 2 15 9 2 3 4
$EndElements
$MeshFormat
2.2 0 8
$EndMeshFormat
$InterpolationScheme
"Basis 2"
1
3
2
6 6
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1
6 3
0 0 0
1 0 0
0 1 0
2 0 0
1 1 0
0 2 0
$EndInterpolationScheme
$ElementNodeData
2
"Scalar"
"Basis 2"
1
0.0
3
0
1
2
1 6
 0
 0
 6
 0
 0
 -6
2 6
 0
 6
 6
 -6
 -12
 -6
$EndElementNodeData
$ElementNodeData
2
"Vector"
"Basis 2"
1
0.0
3
0
3
2
1 6 
 0 0 0
 0 0 0
 0 6 0
 0 0 0
 0 0 0
 0 -6 0
2 6
 0 0 0
 0 6 0
 0 6 0
 0 -6 0
 0 -12 0
 0 -6 0
$EndElementNodeData
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to