Hello,

I am plotting finite element data on 1D/2D/3D unstructured grids with dx.
This data is usually smooth inside each cell/element/connection, often even
continuous throughout the domain (but for generality, I do not want to use
this latter continuity).

For 2D and 3D plotting this works rather good.  For plotting of FE
functions depending on only one variable I want to use the Plot module (as
was suggested to me recently on this list) to generate an xy-diagram.  I
wrote something like the file

image-data-1d.dx:

object 1 class array type float rank 1 shape 1 items 4 data follows
0.5     
0.     
1.     
0.5     
object 2 class array type int rank 1 shape 2 items 2 data follows
3 2 
1 0 
attribute "element type" string "lines"
attribute "ref" string "positions"
object 4 class array type float rank 0 items 4 data follows
0.125    
0.    
0.1    
0.125    
attribute "dep" string "positions"
object "simplex-part" class field
component "positions" value 1
component "connections" value 2
component "data" value 4
end

Unfortunately, when I look at it with

dx -script  --> and then

data = Import("image-data-1d.dx");
data = Options(data, "mark", "circle");
xyplot = Plot(data);
camera = AutoCamera(xyplot);
image = Render (xyplot, camera);
Display (image);

I see that a triangle appears instead of the desired graph.  I assume that
the connections component in the file is disregarded.  Does anyone see,
what is the problem here?

Thank you very much,

Nicolas.

Reply via email to