<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">&nbsp;I am running a simulation written in C++ and I&nbsp;need to write the output to a VTK file for visualization using Paraview. I&nbsp;have read the VTK manual for writing VTK format files but this does not solve my problem as my input data to the file will come from a imulation,&nbsp;not manually written as is demonstrated in the manual. What I wish to do is&nbsp;to write a subroutine in C++ that will create the VTK file and save the data in my preferred geometry/topology.<BR>&nbsp;I will appreciate if I you could refer me to materials and tutorials that<BR>&nbsp;will help me achieve this.</td></tr></table><br>