<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'>Hey Brennen,<br><br>I’m not an expert at Paraview’s IO system, but I believe that individual .vtk files would have to be opened individually i.e. Paraview cannot stitch the .vtk files together.  If you want to be able to open a single file and have the data for each processor’s output file be shown in one coherent data set, then I think you should look into the parallel xml file format that Paraview uses.<br><br>A PDF of VTK file formats (XML format is on page 11 of the document): <a href="http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf">http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'><br>There is probably a better way to do this, but this is what I would do.<br>1.) Write a paraview python script to first convert all of the .vtk files to the newer xml format.  See: <a href="http://stackoverflow.com/questions/26158599/how-to-convert-vtk-legacy-files-to-vtu-format">http://stackoverflow.com/questions/26158599/how-to-convert-vtk-legacy-files-to-vtu-format</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'>                You will have to use the correct writer to write the proper XML file format for your data set type – See page 12 of that file-formats pdf that I posted above to see what types exist for the datasets<br><br>2.) Let’s assume your data is unstructured. You will now have data for each sub-domain written to a bunch of .vtu files. One .vtu file per processor, just like the .vtk files.  You can stitch all of these files together by using the parallel file format that VTK supports ( see page 16 of that pdf ). You just need to write out a .pvtu file that essentially just has a list containing the name of every .vtu file.<br><br>3.) Paraview should be able to open this new .pvtu file and display all of the data for all of the sub-domains.<br><br>Again, your xml file type might be .vti, .vtp, etc. depending on the data type that is being written to the .vtk files, structured, image, poly, etc.<br><br>Hope this helps. If anyone has a more straightforward solution please share it.<br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'>Chris Neal<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Calibri'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-family:Calibri;color:black'>From: </span></b><span style='font-family:Calibri;color:black'>ParaView <paraview-bounces@paraview.org> on behalf of Brennen Taylor <taylorbrennen731@gmail.com><br><b>Date: </b>Monday, September 19, 2016 at 12:13 AM<br><b>To: </b><paraview@paraview.org><br><b>Subject: </b>[Paraview] How to merge .vtk files to visualize the result in Paraview<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>Dear All,</span><o:p></o:p></p><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>I am using Paraview in order to visualize the result produced by parallel program. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>Each processor currently outputs its own .vtk files , which corresponsd to the value of the fields in the domain.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>I would like to know if there is a way of merging these .vtk files into one .vtk file so that I can visualize using Paraview.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>Thanks in advance !!<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>Best ,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt;color:#500050'>Brennen<o:p></o:p></span></p></div></div><p class=MsoNormal>_______________________________________________ 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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview <o:p></o:p></p></div></body></html>