[Gmsh] tensor file

Christophe Geuzaine geuzaine at acm.caltech.edu
Tue May 13 18:05:45 CEST 2003


Nicolas Moes wrote:
> Here is a file to test tensors for gmsh 1.44.
> On gmsh 1.39 I could see the tensors
> 
> with 1.44, I get the message
> 
> Loaded
> '/scratch/moes/develop/Xfem/Merlin/Merlin/test/mechanics2d/results/STRESS.pos'
> Error : Tensor field visualization is not implemented
> Error : We *need* some ideas on how to implement this!
> Error : Send your ideas to <gmsh at geuz.org>!
> 

Hmm, I don't get this message. Do you have "View.TensorType=0"?

In any case, the computation of the range for tensors is wrong, since
it's not computed in the same way as the actual field we plot... (see
Common/View.cpp, line 205). So you probably have to select "Custom
range" in the view options and set the min/max values by hand.

Laurent: How should we fix the min/max issue? If we transform the data
before displaying it (as is the case with the DRAW_POST_VONMISES stuff),
we have to recompute the range... Shouldn't we just write a "Von Mises"
plugin instead, and transform the tensor data into the scalar view we
actually want to display?

Ideas are welcome: I never use the tensor display code myself...

Christophe

-- 
Christophe Geuzaine

Tel: (626) 395-4552    http://www.geuz.org
Fax: (626) 578-0124    mailto:geuzaine at acm.caltech.edu