Hello,
Sorry, I think this is a quite basic problem, but I am new in Opendx and I
have a little problem importing data series.
I have a file with the positions.
I have two files with the connections, because sometimes I use quads to
connect faces and sometimes I use cubes if I want to have a look to the
inside of my mesh. And finally, I have another file with series of data
(3-vector) dependent on the positions.
>From the User Guide I found a way to load the series. My main.dx file looks
like this:
#########################################################
# file: main.dx
# Nodes 796
# Elements 416
# Load cases 25
# Here we create the components
object 1 class field
component "positions" value file "z_position.data",1
component "connections" value file "z_quad_conn.data",1
component "data" value file "z_loadcases.data", 1
object 2 class field
component "positions" value file "z_position.data",1
component "connections" value file "z_quad_conn.data",1
component "data" value file "z_loadcases.data", 2
object 3 class field
component "positions" value file "z_position.data",1
component "connections" value file "z_quad_conn.data",1
component "data" value file "z_loadcases.data", 3
object 4 class field
component "positions" value file "z_position.data",1
component "connections" value file "z_quad_conn.data",1
component "data" value file "z_loadcases.data", 4
....and so on
object "series" class series
member 0 value 1 position 0
member 1 value 2 position 1
member 2 value 3 position 2
member 3 value 4 position 3
...
....
end
########################################################
And the data file like this one.
########################################################
# file: z_loadcases.data
object 1 class array type float rank 1 shape 3 items 796
data follows
-0.04600000 -0.01000000 0.01100000
-0.03100000 -0.01300000 0.04400000
...
....
29.02502500 0.50635000 64.74900000
28.92660000 0.75642500 64.75825000
attribute "dep" string "positions"
object 2 class array type float rank 1 shape 3 items 796
data follows
...
attribute "dep" string "positions"
########################################################
and so on for each timestep
By using this method I have to modify the 'loadcases.data' file to include
the definition for each object (timestep) on it, and also modify the main
file too. Although I generate the files automatically using a filter that I
did, it takes forever to toad the fields when there are a large number of
timesteps.
The problem, I guess, is that Opendx opens and reads the positions and
connections
file for each time-step, and also I have the feeling that the positions and
connections are repeated (duplicated in memory) for each timestep. I suppose
that this is a very inefficient way to read data series.
I'd like to read each file just once and have an unique field if possible
which contains the positions, connections and series or collect them into a
field in my .net program. The series file would be a continuous file with no
breaks between the different time-step series.
Do you have any suggestions? Is there any other way to do this?
Thanks
Jens