thanks a lot for the example. I should have read the document better ;) On Mon, Jul 19, 2010 at 3:15 AM, Geordie McBain <[email protected]>wrote:
> 2010/7/16 Christophe Prud'homme <[email protected]>: > > 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 >
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
