vtk output writer

edited January 2014 in Old versions
Hi, Is there a way of adding new fields to the VTK output? Currently the VTK output writer comes pre-compiled with DualSPHysics but what if I want to add new fields to visualize? How should I proceed to alter the code. In the earlier version (v2) I had the output written out in ascii and had modified the fortran files of SPHysics to convert ascii to VTK. But that proves quite problematic when it comes to plotting and calculating in Paraview. I was hoping if someone on the forum could provide tips on how to write out what i want directly to VTK without having to go through this two-step conversion process. Thank you.

Comments

  • We have included the source files of the code ToVtk.
    This code will help you to understand how to read .bi2 files and how to create VTK and CSV files.
    Adding a new variable to the VTK file can be implemented in the files of that code.

    Regards

    Alex
Sign In or Register to comment.