Hi,

it is realy easy.
Feel free to use my existing readers as starting point (I would suggest the 
rigids_reader, because it extracts points in a given order from a 
special-format file)
https://github.com/richti83/ParaView_Reader_for_LIGGGHTS

Just change the classname in every file.
Than change the section where i skip the header and adapt the switch block to 
your needs in RequestData Method of liggghts_rigids_reader.cxx.

About time-varing files: I usually write every timestep in a single file 
(dump0.liggghts ... dump100000.liggghts) and than let the fileseries reader 
loop over them. (see liggghts_rigids_reader.xml about the connection between 
reader-core and fileseries reader).

Good Luck,
Christian.
________________________________
Von: ParaView [[email protected]]" im Auftrag von "Rohit Narurkar 
[[email protected]]
Gesendet: Mittwoch, 25. Juni 2014 16:40
An: [email protected]
Betreff: [Paraview] Writing a custom reader for PV

Hi guys,

For some days now, I have been trying to use data in PV from the XYZ file 
format, but there is a bug in the "XMol Molecule Files" reader 
<http://www.paraview.org/Bug/view.php?id=14203>.

How difficult would it be to write a reader for the data file you have (XYZ 
file format) ? The "XYZ Files" reader in PV doesn't handle time-varying data. 
How can one possibly make changes and fix the reader?

Thank you all,
Rohit.
_______________________________________________
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://public.kitware.com/mailman/listinfo/paraview

Reply via email to