[Gmsh] PATH command

Christophe Geuzaine c.geuzaine at ulg.ac.be
Tue Jun 7 18:32:51 CEST 2005


abhishek basak wrote:
>  
> Hi Christophe,
> 
> I tried your suggestion. It gave a graph al right, but not what I had 
> expected. I gave the following dummy ".pos" file
> 
> View "a scalar map" {
> ST(0.0,0.0,0.0,10.0,0.0,0.0,0.0,10.0,0.0){10.0,10.0,10.0};
> };
> 
> this is stored in the file test.pos attached below.
> Here a scalar triangle is defined with coordinates 
> (0.0,0.0,0.0),(10.0,0.0,0.0) and (0.0,10.0,0.0). A plot of it is shown 
> in Screen-1.jpg. Then I "cut grid" with the following i/p (Screen-2.jpg)
> 
> x0=0.0
> y0=0.0
> z0=0.0
> 
> x1=10.0
> y1=0.0
> z1=0.0
> 
> x2=0.0
> y2=10.0
> z2=0.0
> 
> ConnectPoints=0
> 
> and then i set "2D space plot". The output is in file Screen-3.jpg. I 
> expected a straight horizontal line, certainly not what I ultimately 
> obtained.
> 
> Did I do something wrong anywhere?

You are using a rectangular grid of 20x20 points, with half the points 
outside the triangle... To get a grid along a single line, you should 
set either nPointsU or nPointsV to 1.

Christophe



> 
> Please advise,
> 
> Thanking you,
> 
> Abhishek Basak
> 
> On Mon, 06 Jun 2005 Christophe Geuzaine wrote :
>  >abhishek basak wrote:
>  >>Hi, I was just checking out the gmesh program. I have been using
>  >>ANSYS for quite some time now, and i have to say that GMESH
>  >>incoperates most of the features of ANSYS. However, I could not find
>  >>the equivalent of PATH command.
>  >>
>  >>For those who are not familiar with ANSYS, PATH plots the results of
>  >>FEM analysis (temp,disp, etc), along a specified path between two
>  >>points. The path need not be coincident with any of the nodes.
>  >>
>  >>Maybe the PATH or some equivalent command is already there in GMESH,
>  >>  but it seems to ellude me. Please help me out.
>  >>
>  >
>  >You should be able to do these kinds of things with the "Cut Grid"
>  >and/or the "Cut Parametric" plugins (available in the "Plugin" menu when
>  >right-clicking on a view button).
>  >
>  >If you set "ConnectPoints" to zero in these plugins, you can then plot
>  >the data in 2D graphs by selecting "2D space plot" in
>  >Tools->Options->View->General. You can also export the data in order to
>  >visualize it with other tools by using "View->Save As".
>  >
>  >Christophe
>  >
>  >-- Christophe Geuzaine
>  >Applied and Computational Mathematics, Caltech
>  >geuzaine at acm.caltech.edu - http://geuz.org
> 
> 
> 
> <http://clients.rediff.com/signature/track_sig.asp>
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> View "a scalar map" {
> ST(0.0,0.0,0.0,10.0,0.0,0.0,0.0,10.0,0.0){10.0,10.0,10.0};
> };
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org



More information about the gmsh mailing list