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

Christophe Prud'homme prudhomm at debian.org
Mon Jul 26 20:56:46 CEST 2010


thanks a lot for the example. I should have read the document better ;)

On Mon, Jul 19, 2010 at 3:15 AM, Geordie McBain <gdmcbain at freeshell.org>wrote:

> 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
> >  - x-y plots (1D geometry  + a scalar field )
>
> Yes.  See tutorial/t8.geo.  The key is View.Type = 2.  There are quite
> a few other things going on in t8 though, so I attach a minimal
> example.  Also, my example uses the standard .msh format for the data
> rather than the deprecated .pos format.
>
> %<--x.msh
> $MeshFormat
> 2.2 0 8
> $EndMeshFormat
> $Nodes
> 3
> 1 0 0 0
> 2 1 0 0
> 3 2 0 0
> $EndNodes
> $Elements
> 2
> 1 1 2 1 1 1 2
> 2 1 2 1 2 2 3
> $EndElements
> %<--end x.msh
>
> %<--y.msh
> $MeshFormat
> 2.2 0 8
> $EndMeshFormat
> $NodeData
> 1
> "ordinate"
> 1
> 0.0
> 3
> 0
> 1
> 3
> 1 1.0
> 2 2.0
> 3 5.0
> $EndNodeData
> %<--end y.msh
>
> %<--xy.geo
> Merge "x.msh";
> Merge "y.msh";
>
> View[0].Type = 2;               // 2 for 2D space
> View[0].Axes = 1;               // 1 for simple axes
> %<--end xy.geo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100726/3ff0c373/attachment.html>