[Gmsh] elevation (Scalar warp) in 2D [was: x-y plots and elevation(Scalar warp) in 2D]

Geordie McBain gdmcbain at freeshell.org
Mon Jul 19 03:43:08 CEST 2010


2010/7/16 Christophe Prud'homme <prudhomm at debian.org>:
> Dear Gmsh Developers,
> It is not clear to me if it is possible to do
>  - elevation plot (Scalar Warp in paraview) z=f(x,y)
> from msh data files.
> Is that doable ?

Yes.  Gmsh's equivalent to Warp (scalar) is View.NormalRaise.  I
attach a minimal example.

%<--elevation.msh
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
4
1 0 0 0
2 2 0 0
3 1 1 0
4 0 2 0
$EndNodes
$Elements
2
1 2 1 1 1 2 3
2 2 1 1 1 3 4zx
$EndElements
$NodeData
1
 "ordinate"
1
 0.0
3
 0
 1
 4
1 0.0
2 0.0
3 1.0
4 0.0
$EndNodeData
%<--end elevation.msh

%<--elevation.geo
Merge "elevation.msh";
View[0].NormalRaise = 1;
%<--end elevation.geo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elevation.msh
Type: model/mesh
Size: 220 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100719/94551bb4/attachment.msh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elevation.geo
Type: application/octet-stream
Size: 73 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100719/94551bb4/attachment.geo>