<div dir="ltr">If you know the timestep values you're interested in, you can do the following:<div><br></div><div>for t in [0, 0.001, 0.002]:</div><div><span style="line-height:1.5;font-size:13.1999998092651px"> writer = CreateWriter(".../foo_%d.csv" % t, source)</span><br></div><div><div> writer.FieldAssociation = "Points" # or "Cells"</div><div> writer.UpdatePipeline(t)</div><div> del writer</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 15, 2015 at 3:32 PM Patrick Savidge <<a href="mailto:psavidge0@lbl.gov">psavidge0@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">Hello Everyone,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am trying to write a python script to output data for each time step. I know to use the following script to save data for one time step:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><pre style="white-space:pre-wrap;font-family:monospace,monospace;padding:0px;border:0px none white;color:rgb(0,0,0);line-height:1.2em;font-stretch:normal;font-size:1em;margin-top:0px;margin-bottom:0px;vertical-align:top;background:none rgb(249,249,249)"><span style="color:rgb(102,204,102)">>>></span> writer <span style="color:rgb(102,204,102)">=</span> CreateWriter(<span style="color:rgb(72,61,139)">".../foo.csv"</span><span style="color:rgb(102,204,102)">,</span> source)
<span style="color:rgb(102,204,102)">>>></span> writer.FieldAssociation <span style="color:rgb(102,204,102)">=</span> <span style="color:rgb(72,61,139)">"Points"</span> <span style="color:rgb(128,128,128);font-style:italic"># or "Cells"</span>
<span style="color:rgb(102,204,102)">>>></span> writer.UpdatePipeline()
<span style="color:rgb(102,204,102)">>>></span> <span style="color:rgb(255,119,0);font-weight:bold">del</span> writer</pre></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I'm curious how I may do this for every time step?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thank you for your help,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Patrick</div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div>