<HTML>
<HEAD>
<TITLE>Re: [Paraview] Using real timesteps in pvd files</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I would vote yes on that. &nbsp;Although localization like this is good in a UI, it seems to be a pointless complicate to a data file in which people generally don&#8217;t look at the contents.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 2/4/09 3:48 PM, &quot;Berk Geveci&quot; &lt;<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hmmm. Weird. We are using strtod to make the conversion from string to<BR>
double. That must somehow obey localization settings. Looking at here<BR>
<a href="http://www.mkssoftware.com/docs/man3/strtod.3.asp">http://www.mkssoftware.com/docs/man3/strtod.3.asp</a> I see that we need<BR>
to somehow set the localization properly for the right radix. Should<BR>
we always set it to . ?<BR>
<BR>
-berk<BR>
<BR>
<BR>
On Thu, Jan 29, 2009 at 7:21 AM, Christian Wellmann<BR>
&lt;<a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a>&gt; wrote:<BR>
&gt; Hi all. As I now figured out, the problem with my real timestep values<BR>
&gt; seems to be the decimal separator. Strangely my ParaView 3.4<BR>
&gt; installation seems to require a comma as decimal separator. So<BR>
&gt;<BR>
&gt; &lt;DataSet timestep=&quot;0,5e-5&quot; group=&quot;0&quot; part=&quot;0&quot;<BR>
&gt; file=&quot;hour_5121_fall_se0000000.vtp&quot;/&gt;<BR>
&gt;<BR>
&gt; is interpreted correctly and gives the time value 0.5e-5.<BR>
&gt; The idea of using a comma as decimal separator came into my mind<BR>
&gt; using the &quot;Annotate Time&quot; filter, which shows comma separated values<BR>
&gt; in my installation.<BR>
&gt;<BR>
&gt;<BR>
&gt; 2009/1/29 Christian Wellmann &lt;<a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a>&gt;:<BR>
&gt;&gt; Thanks Stephen and John for your quick answers.<BR>
&gt;&gt; Unfortunately any changes to the group and/or part tag not seem to<BR>
&gt;&gt; solve the problem.<BR>
&gt;&gt; What is strange is that, although ParaView seems to read an int value,<BR>
&gt;&gt; it is able<BR>
&gt;&gt; to handle<BR>
&gt;&gt;<BR>
&gt;&gt; &lt;DataSet timestep=&quot;-922337203685477580825263735124730&quot; group=&quot;&quot;<BR>
&gt;&gt; part=&quot;0&quot; file=&quot;sp_test0000000.vtp&quot;/&gt;<BR>
&gt;&gt; &lt;DataSet timestep=&quot; 922337203685477580825263735124730&quot; group=&quot;&quot;<BR>
&gt;&gt; part=&quot;0&quot; file=&quot;sp_test0002498.vtp&quot;/&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; correctly, what gives me<BR>
&gt;&gt;<BR>
&gt;&gt; Index &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value<BR>
&gt;&gt; 0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-9.22337e+32<BR>
&gt;&gt; 1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9.22337e+32<BR>
&gt;&gt;<BR>
&gt;&gt; in the time table although the values are out of range of any standard<BR>
&gt;&gt; integer representation I guess.<BR>
&gt;&gt; However, as a workaround -considering the large range of representable<BR>
&gt;&gt; integer values- I will simpliy<BR>
&gt;&gt; change my scale to micro- or even nano-seconds to get integer time values.<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; 2009/1/29 John Biddiscombe &lt;<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>&gt;:<BR>
&gt;&gt;&gt; Christian<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<BR>
&gt;&gt;&gt; &lt;VTKFile type=&quot;Collection&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;<BR>
&gt;&gt;&gt; &nbsp;&lt;Collection&gt;<BR>
&gt;&gt;&gt; &nbsp;&lt;DataSet timestep=&quot;1.08267&quot; file=&quot;1800_001-static-00000.vtmb&quot;/&gt;<BR>
&gt;&gt;&gt; &nbsp;&lt;DataSet timestep=&quot;1.08367&quot; file=&quot;1800_001-static-00001.vtmb&quot;/&gt;<BR>
&gt;&gt;&gt; &nbsp;&lt;DataSet timestep=&quot;1.08467&quot; file=&quot;1800_001-static-00002.vtmb&quot;/&gt;<BR>
&gt;&gt;&gt; ...<BR>
&gt;&gt;&gt; &nbsp;&lt;DataSet timestep=&quot;1.34967&quot; file=&quot;1800_001-static-00267.vtmb&quot;/&gt;<BR>
&gt;&gt;&gt; &nbsp;&lt;/Collection&gt;<BR>
&gt;&gt;&gt; &lt;/VTKFile&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; This works for me. Can't comment on why you are having trouble, but maybe<BR>
&gt;&gt;&gt; try to remove the group, part unused tags.<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; I use CVS paraview (3.4 should work)<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; JB<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; Dear all,<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; I'm using ParaView 3.4 to load the results of a transient simulation<BR>
&gt;&gt;&gt;&gt; via a pvd file and a set<BR>
&gt;&gt;&gt;&gt; of vtp XML PolyData files. Each vtp file corresponds to a particular real<BR>
&gt;&gt;&gt;&gt; time<BR>
&gt;&gt;&gt;&gt; value which are not evenly spaced. I tried to provide the real time<BR>
&gt;&gt;&gt;&gt; values via the timestep key<BR>
&gt;&gt;&gt;&gt; in the pvd file:<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<BR>
&gt;&gt;&gt;&gt; &lt;VTKFile type=&quot;Collection&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;<BR>
&gt;&gt;&gt;&gt; &lt;Collection&gt;<BR>
&gt;&gt;&gt;&gt; &lt;DataSet timestep=&quot;1.23&quot; &nbsp;group=&quot;&quot; part=&quot;0&quot; file=&quot;sp_test0000000.vtp&quot;/&gt;<BR>
&gt;&gt;&gt;&gt; &lt;DataSet timestep=&quot;2.34&quot; &nbsp;group=&quot;&quot; part=&quot;0&quot; file=&quot;sp_test0002498.vtp&quot;/&gt;<BR>
&gt;&gt;&gt;&gt; &lt;DataSet timestep=&quot;3.15&quot; &nbsp;group=&quot;&quot; part=&quot;0&quot; file=&quot;sp_test0004496.vtp&quot;/&gt;<BR>
&gt;&gt;&gt;&gt; &lt;/Collection&gt;<BR>
&gt;&gt;&gt;&gt; &lt;/VTKFile&gt;<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; It seems that ParaView expects integer values for the timestep key,<BR>
&gt;&gt;&gt;&gt; because<BR>
&gt;&gt;&gt;&gt; it loads the files like expected but the time table in the Object<BR>
&gt;&gt;&gt;&gt; Inspector -&gt; Information<BR>
&gt;&gt;&gt;&gt; tab shows for the above pvd file:<BR>
&gt;&gt;&gt;&gt; Index &nbsp;&nbsp;Value<BR>
&gt;&gt;&gt;&gt; 0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<BR>
&gt;&gt;&gt;&gt; 1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2<BR>
&gt;&gt;&gt;&gt; 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; I would be grateful for any help/suggestions.<BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;&gt; Thanks,<BR>
&gt;&gt;&gt;&gt; Christian Wellmann<BR>
&gt;&gt;&gt;&gt; _______________________________________________<BR>
&gt;&gt;&gt;&gt; ParaView mailing list<BR>
&gt;&gt;&gt;&gt; <a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
&gt;&gt;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt; --<BR>
&gt;&gt;&gt; John Biddiscombe, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;email:biddisco @ cscs.ch<BR>
&gt;&gt;&gt; <a href="http://www.cscs.ch/">http://www.cscs.ch/</a><BR>
&gt;&gt;&gt; CSCS, Swiss National Supercomputing Centre &nbsp;| Tel: &nbsp;+41 (91) 610.82.07<BR>
&gt;&gt;&gt; Via Cantonale, 6928 Manno, Switzerland &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Fax: &nbsp;+41 (91) 610.82.82<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; Christian Wellmann<BR>
&gt; Institute of Continuum Mechanics<BR>
&gt; Leibniz Universitaet Hannover<BR>
&gt; Appelstr. 11<BR>
&gt; 30167 Hannover, Germany<BR>
&gt; phone: +49 511 762 2285<BR>
&gt; fax: +49 511 762 5496<BR>
&gt; email: <a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a><BR>
&gt; _______________________________________________<BR>
&gt; ParaView mailing list<BR>
&gt; <a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
_______________________________________________<BR>
ParaView mailing list<BR>
<a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>