[Gmsh] Problem with adaptive visualization of vectors

Jose Paulo Moitinho de Almeida moitinho at civil.ist.utl.pt
Wed Sep 25 11:35:23 CEST 2013


On Tuesday 24 September 2013 15:13:26 Jose Paulo Moitinho de Almeida wrote:
> 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

The good news is that by setting a negative "Target visualization error" 
(instead of zero, that I was using) I obtain a perfect vector plot. 

My first impression was that the refinement of the visualization might be based 
on the first component of the vector, but in that case the first element would 
also have the same problem.

Clearly there is something that is not working as it should. I will try to 
look into the code, but not right now...

Regards

ZP