<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear all,</p>
<p><br>
</p>
<p>I have a very short python script to import a pvd-file (with associated .vtu-files) and simply save the same data in csv-format (see at the bottom of the message). Using:
</p>
<p><br>
</p>
<p>writer.WriteAllTimeSteps = 1<br>
</p>
<p><br>
</p>
<p>I can easily make sure that paraview saves all my time steps in subsequent order (without introducing a loop). The script works fine, but as of now I just have to wait with no screen output whilst all files are created. My question is therefore, is there
a way to print the current time step that is being saved, such that I can see the progress (if I want)? Is there some kind of write.WriteCurrentTimeStep?</p>
<p><br>
</p>
<p>Thanks for your help,</p>
<p><br>
</p>
<p>/David<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"></span></font></p>
<p><br>
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"></span></font></p>
<p><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt">SCRIPT: </span>
</font></p>
<p><br>
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"></span></font></p>
<p><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"></span></font></p>
<p><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt">from paraview.simple import *<br>
import sys<br>
import os<br>
print "Importing "+sys.argv[1]<br>
print "Creating "+sys.argv[2]<br>
inp = os.getcwd()+"/"+sys.argv[1]<br>
csv_output_directory = os.getcwd()+"/csv"<br>
outp = csv_output_directory+"/"+sys.argv[2]<br>
os.system('mkdir '+csv_output_directory)<br>
reader = OpenDataFile(inp)<br>
#writer = simple.CreateWriter("path/to/solution.csv", reader)<br>
writer = CreateWriter(outp, reader)<br>
writer.WriteAllTimeSteps = 1<br>
writer.FieldAssociation = "Points"<br>
writer.UpdatePipeline()<br>
exit()<br>
<br>
</span></font></p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><span lang="sv"></span></div>
</div>
</body>
</html>