This is how Jon responded (with minor edits from me) off-list: -------- The cosmo file format is simple, it is just a record format/list of particles: 7 floats and 1 32-bit int per record/particle, no header.
x1 vx1 y1 vy1 z1 vz1 mass1 tag1 x2 vx2 y2 vy2 z2 vz2 mass2 tag2 x3 vx3 y3 vy3 z3 vz3 mass3 tag3 ... xN vxN yN vyN zN vzN massN tagN x y z = particle position (float) vx vy vz = particle velocity (float) mass = scalar quantity (float) tag = unique id (int) You can have multiple files as well, as long as the file ends in a number, or ends in a number before the cosmo tag, e.g.: file1.cosmo file2.cosmo ... fileN.cosmo or file001 file002 file003 Lastly, the format is binary, not ascii. So 32 bytes per particle, and the size of your file will be N * 32 bytes. -Jon David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Mon, Nov 1, 2010 at 11:11 AM, Paul Melis <[email protected]> wrote: > Hi, > > Is there some documentation on the file format "Cosmology files > (.cosmo)" supported in PV? I've been reading "Analyzing and visualizing > cosmological simulations with paraview" by Woodring et.al, where the > cosmological support that was added to PV 3.8 is described. The .cosmo > file format is mentioned, but the given reference where it is supposedly > introduced doesn't mention it at all. Reading the parallel .cosmo reader > and related source files doesn't give me a clearer picture either. > > Thanks, > Paul > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
