Hi Nicolas !
The positions in object 1 must be seen as your "x" - data
The data in object 4 is then your "y"-data
As you got 4 positions, there should be 3 connections between them:

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


Jost


Nicolas Neuss schrieb:
OK, since noone responded I changed my program to include a sorting of the
coordinates for 1D situations (in multi-d on unstructured grids this makes
no sense).  Then everything works fine.  Nevertheless, I would have thought
that DX would not need this reordering.  A bug?

Nicolas.


Nicolas Neuss <[EMAIL PROTECTED]> writes:


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.





--
--------------------------------------------------------
Dipl.-Ing. Jost Weber

Institut für Technische Mechanik
RWTH Aachen
Templergraben 64
D-52056 Aachen

Tel.: +49-241-80-94622
Fax.: +49-241-80-92923
email: [EMAIL PROTECTED]
--------------------------------------------------------

Reply via email to