RES: [Paraview] Ensight to VTK converter
SamuelKey
samuelkey at comcast.net
Sat Mar 25 13:12:27 EST 2006
Renato,
My experiences with --
1) EnSight Gold c-binary files written from Fortran-90/95
Works exceptionally well for time-series data, The EnSight reader
expects time-series data and sets "flags and switches internally" so
that the '>'-button on the animation-control bar produces what you would
expect. (Don't forget to force big-endian binary output when you write
the c-binary stream -- the PV EnSight reader by default expects it.
There is a button to alter the reader's setting, however, it is a real
bother to change it every time.) An example EnSight *.case file is
attached.
2) Exodus netCDF-based binary files written from Fortran-90/95 (or
written from c)
Works even better than the EnSight reader in PV. At least two nice
advantages: (1) the binary files are hardware/operating system
independent, that is, compute on one platform, post process on a
different platform without using any file-format translation, and (2)
the animations come pre-scripted with a timer "Time = 1.23E-5" running
in the lower right corner of the frame. The selection of sub-domains,
if defined in the data, is on the face sheet.
Go to http://sourceforge.net/projects/exodusii All but the
Fortran-binding are contained in PV/bin/vtkexoIIc.dll and
PV/bin/vtkNetCDF.dll on WinXX, similarly on Linux.
3) VTK (legacy or xml, ASCII or binary)
The vtk-reader is very good at seeing a serialized file set. That is, if
your results are serialized one-file-per-time-step something like
mydata.000.vtu to mydata.099.vtu, the animation capability will see
it as a time series (requires some button setting) and produce what you
need. Do not go over a 100 snap shoots (animation will ignore your
serialized file set); you can count from either 000 to 099 or 001 to
100. This works with myjob.000.pvtu to myjob.099.pvtu mother-files also.
If you write the current deformed coordinates as you go, then you get a
warp=1 geometry change in the animation without having to use the warp
filter.
If you use PV's *.pvd files, for example, myjob.000.pvd to
myjob.099.pvd, to group objects (a very nice feature!), the animation
capability is busted and only the first object gets animated, the others
stay at the initial state. I have attached examples of a *.pvtu file.
and a *.pvd file.
All of this my be more advanced than you anticipated, but you have
expressed a desire to do
animation.
Sam Key
Renato N. Elias wrote:
>>>> none of the VTK file formats support transient data <<<
>>>>
>
> That's not good... :-0
>
> so... I guess I would have to create the geometry and result files
> separately and write this pvd file through some other program or script in
> order to rebuild my problem...
>
> I guess my problem is getting worse... maybe I should keep struggling with
> the Ensight's format in Fortran :o(
>
> Thanks a lot Kent. I would be trying forever if you have not advised me...
>
> Renato.
>
>
>
> -----Mensagem original-----
> De: Kent Eschenberg [mailto:eschenbe at psc.edu]
> Enviada em: quinta-feira, 23 de março de 2006 16:00
> Para: ParaView
> Cc: Renato N. Elias
> Assunto: Re: [Paraview] Ensight to VTK converter
>
> Renato,
>
> Maybe this is the cause of the confusion: none of the VTK file formats
> support transient data, not even the newer XML versions. For transient data
> you need to use the ParaView "pvd" format which is an XML file that has the
> names of VTK files that each hold one time step. It is defined in the
> ParaView book.
>
> Kent
> Pittsburgh Supercomputing Center
>
> -On March 23, 2006 03:49:11 PM <rnelias at nacad.ufrj.br> wrote:
>
>> The VTK file created seems to have only the geometry and the results
>> corresponding to the first time step.
>>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmaego.data.case.zip
Type: application/x-zip-compressed
Size: 1550 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20060325/5b8a468e/fmaego.data.case.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmavto.t100.pvd.zip
Type: application/x-zip-compressed
Size: 497 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20060325/5b8a468e/fmavto.t100.pvd.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fmavto.t100.pvtu.zip
Type: application/x-zip-compressed
Size: 746 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20060325/5b8a468e/fmavto.t100.pvtu.bin
More information about the ParaView
mailing list