Amir, in addition to looking at main.cpp in ToVtk4, Question 23 from the FAQ may be helpful to you:
23. How can I store new properties of the particles (e. g. Temperature)?
The new file format (.bi4) and the post-processing tools have been designed to include new properties defined by the user for its own implementation. The function JSph::SavePartData() already includes an example of how to store new particle data. Then, the post-processing codes will automatically manage all variables included in the .bi4 files.
Comments
Regards
Would you mind please help me on this?
I am not familiar with the code.
Regards
23. How can I store new properties of the particles (e. g. Temperature)?
The new file format (.bi4) and the post-processing tools have been designed to include new properties defined by the user for its own implementation. The function JSph::SavePartData() already includes an example of how to store new particle data. Then, the post-processing codes will automatically manage all variables included in the .bi4 files.