But the big misconception below is that you need multiple Fields to accomplish what you are trying to do. Simply add more 'data' components to one Field since you appear to use the same grid positions and connections in all. Give each 'data' component a unique name, like 'velocity'.
After Import, use Mark('velocity') to make it the 'data', for coloring, rubbersheeting, etc., then Unmark to return it to 'velocity'. Then you could Mark('temperature'), operate on it as 'data', Unmark, and so on. You will be using a lot less memory by not reloading the same mesh over and over.
On Wednesday, Mar 31, 2004, at 09:46 America/New_York, Sven Sanwald wrote:
Hello *,_______________________________
we want to read several plot states at different times into OpenDX.
With an extra file "TimeSeries.dx":
-------
object "TimeSeries" class series
member 0 position 0.0000000E+00 file ./Time.0000000E+00.dx,"Velocity"
member 1 position 0.1000000E+00 file ./Time.1000000E+00.dx ,"Velocity"
-------
it is possible to read the different plot states and work
with the variable "Velocity".
Without the "name" of the field OpenDX allways ends
at the last field and it is impossible to switch to the
other variables.
The dx-files have the following structure:
The header:
-------
# Data: GridConnections
object "GridConnections" class array type int rank 1 shape 4 items 203577 lsb ieee data 0
attribute "element type" string "quads"
attribute "ref" string "positions"
# Data: GridPosition"
object "Ar_GridPosition" class array type float rank 1 shape 2 items 204800 lsb ieee data 3257232
# Class Object: GridPosition"
object "GridPosition" class field
component "positions" value "Ar_GridPosition"
component "connections" value "GridConnections"
component "data" value "Ar_GridPosition"
attribute "field label" string "GridPosition"
# Data: Velocity"
object "Ar_Velocity" class array type double rank 1 shape 2 items 204800 lsb ieee data 4895632
attribute "dep" string "positions"
# Class Object: Velocity"
object "Velocity" class field
component "positions" value "Ar_GridPosition"
component "connections" value "GridConnections"
component "data" value "Ar_Velocity"
attribute "field label" string "Velocity"
# Data: Density"
object "Ar_Density" class array type double rank 0 items 204800 lsb ieee data 8172432
attribute "dep" string "positions"
# Class Object: Density"
object "Density" class field
component "positions" value "Ar_GridPosition"
component "connections" value "GridConnections"
component "data" value "Ar_Density"
attribute "field label" string "Density"
# Data: Vorticity"
object "Ar_Vorticity" class array type double rank 0 items 204800 lsb ieee data 9810832
attribute "dep" string "positions"
# Class Object: Vorticity"
object "Vorticity" class field
component "positions" value "Ar_GridPosition"
component "connections" value "GridConnections"
component "data" value "Ar_Vorticity"
attribute "field label" string "Vorticity"
# Data: Temperature"
object "Ar_Temperature" class array type double rank 0 items 204800 lsb ieee data 11449232
attribute "dep" string "positions"
# Class Object: Temperature"
object "Temperature" class field
component "positions" value "Ar_GridPosition"
component "connections" value "GridConnections"
component "data" value "Ar_Temperature"
attribute "field label" string "Temperature"
.
.
.
some other variables
.
.
.
and the data in binary form
--------
Reading in a single dx-file it is possible to select
the correct varable with the import module.
Are there other possibilities to import series of files
with different variables?
Regards,
Sven Sanwald
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853
