The simplest would be to have a separate file for each time step structured
in the same way, e.g., tech3d_sum-001.dat, tech3d-sum-002.dat, ...
Then connect Sequencer->Format->Import, using Format to construct the file
name. In Import, you can put the entire general array format specification
without having a .general file, i.e.,
Import(,,format="general, grid=82x50x66, format=ascii, ...")
There are several ways to make this more efficient, including using binary
data and doing an initial Import of just the grid and have the subsequent
time steps just read in the data and Replace them, assuming the grid is
time invariant.
|---------+---------------------------------------->
| | Fabian Braennstroem |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | son.ibm.com |
| | |
| | |
| | 10/16/2004 09:46 AM |
| | Please respond to |
| | opendx-users |
| | |
|---------+---------------------------------------->
>---------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [email protected]
|
| cc:
|
| Subject: Re: [opendx-users] animate instantaneous data
|
|
|
>---------------------------------------------------------------------------------------------------------------------------------------------|
Hi all,
Lloyd A Treinish <[EMAIL PROTECTED]> writes:
> The default behavior of WriteImage is to append when writing to a miff.
> So, you can use Sequencer to operate on each time step independently, and
> output a single miff by using the same name.
I have no problem making miff-files with WriteImage, but my problem
is getting to know DX that I have more data than just one time step. Right
now
I use a 'general'-file with Import to get the data to DX; it looks like
this:
file =
/home/fab/HOME/Dissertation/simulation_calc/16/OpenDX/tec3D_sum.dat
grid = 82 x 50 x 66
format = ascii
interleaving = field
majority = column
field = locations, uvw, p
structure = 3-vector, 3-vector, scalar
type = float, float, float
end
So I have inside the data-file 'tec3D_sum.dat' the locations and one time
step
data which are in line with the according locations.
Would it be possible to add the data of the next time steps in the next
columns? 'field' and 'structure' would look like this:
field = locations, uvw, p , uvw, p , uvw, p , uvw, p , uvw, p , uvw, p ,
uvw, p , uvw, p ...
structure = 3-vector, 3-vector, scalar , 3-vector, scalar , 3-vector,
scalar , 3-vector, scalar , 3-vector, scalar ...
That looks to much; especially when I have a couple thousand time steps. Is
there a different format more suitable than the 'general'-file?
Best Greetings!
--
Fabian Braennstroem
Duesseldorf/Berlin