<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. 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’t look at the contents.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 2/4/09 3:48 PM, "Berk Geveci" <<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a>> 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>
<<a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a>> wrote:<BR>
> Hi all. As I now figured out, the problem with my real timestep values<BR>
> seems to be the decimal separator. Strangely my ParaView 3.4<BR>
> installation seems to require a comma as decimal separator. So<BR>
><BR>
> <DataSet timestep="0,5e-5" group="0" part="0"<BR>
> file="hour_5121_fall_se0000000.vtp"/><BR>
><BR>
> is interpreted correctly and gives the time value 0.5e-5.<BR>
> The idea of using a comma as decimal separator came into my mind<BR>
> using the "Annotate Time" filter, which shows comma separated values<BR>
> in my installation.<BR>
><BR>
><BR>
> 2009/1/29 Christian Wellmann <<a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a>>:<BR>
>> Thanks Stephen and John for your quick answers.<BR>
>> Unfortunately any changes to the group and/or part tag not seem to<BR>
>> solve the problem.<BR>
>> What is strange is that, although ParaView seems to read an int value,<BR>
>> it is able<BR>
>> to handle<BR>
>><BR>
>> <DataSet timestep="-922337203685477580825263735124730" group=""<BR>
>> part="0" file="sp_test0000000.vtp"/><BR>
>> <DataSet timestep=" 922337203685477580825263735124730" group=""<BR>
>> part="0" file="sp_test0002498.vtp"/><BR>
>><BR>
>> correctly, what gives me<BR>
>><BR>
>> Index Value<BR>
>> 0 -9.22337e+32<BR>
>> 1 9.22337e+32<BR>
>><BR>
>> in the time table although the values are out of range of any standard<BR>
>> integer representation I guess.<BR>
>> However, as a workaround -considering the large range of representable<BR>
>> integer values- I will simpliy<BR>
>> change my scale to micro- or even nano-seconds to get integer time values.<BR>
>><BR>
>><BR>
>> 2009/1/29 John Biddiscombe <<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>>:<BR>
>>> Christian<BR>
>>><BR>
>>> <?xml version="1.0"?><BR>
>>> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian"><BR>
>>> <Collection><BR>
>>> <DataSet timestep="1.08267" file="1800_001-static-00000.vtmb"/><BR>
>>> <DataSet timestep="1.08367" file="1800_001-static-00001.vtmb"/><BR>
>>> <DataSet timestep="1.08467" file="1800_001-static-00002.vtmb"/><BR>
>>> ...<BR>
>>> <DataSet timestep="1.34967" file="1800_001-static-00267.vtmb"/><BR>
>>> </Collection><BR>
>>> </VTKFile><BR>
>>><BR>
>>> This works for me. Can't comment on why you are having trouble, but maybe<BR>
>>> try to remove the group, part unused tags.<BR>
>>><BR>
>>> I use CVS paraview (3.4 should work)<BR>
>>><BR>
>>> JB<BR>
>>><BR>
>>>> Dear all,<BR>
>>>><BR>
>>>> I'm using ParaView 3.4 to load the results of a transient simulation<BR>
>>>> via a pvd file and a set<BR>
>>>> of vtp XML PolyData files. Each vtp file corresponds to a particular real<BR>
>>>> time<BR>
>>>> value which are not evenly spaced. I tried to provide the real time<BR>
>>>> values via the timestep key<BR>
>>>> in the pvd file:<BR>
>>>><BR>
>>>> <?xml version="1.0"?><BR>
>>>> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian"><BR>
>>>> <Collection><BR>
>>>> <DataSet timestep="1.23" group="" part="0" file="sp_test0000000.vtp"/><BR>
>>>> <DataSet timestep="2.34" group="" part="0" file="sp_test0002498.vtp"/><BR>
>>>> <DataSet timestep="3.15" group="" part="0" file="sp_test0004496.vtp"/><BR>
>>>> </Collection><BR>
>>>> </VTKFile><BR>
>>>><BR>
>>>> It seems that ParaView expects integer values for the timestep key,<BR>
>>>> because<BR>
>>>> it loads the files like expected but the time table in the Object<BR>
>>>> Inspector -> Information<BR>
>>>> tab shows for the above pvd file:<BR>
>>>> Index Value<BR>
>>>> 0 1<BR>
>>>> 1 2<BR>
>>>> 2 3<BR>
>>>><BR>
>>>> I would be grateful for any help/suggestions.<BR>
>>>><BR>
>>>> Thanks,<BR>
>>>> Christian Wellmann<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>
>>><BR>
>>> --<BR>
>>> John Biddiscombe, email:biddisco @ cscs.ch<BR>
>>> <a href="http://www.cscs.ch/">http://www.cscs.ch/</a><BR>
>>> CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07<BR>
>>> Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82<BR>
>>><BR>
>>><BR>
>>><BR>
>><BR>
><BR>
><BR>
><BR>
> --<BR>
> Christian Wellmann<BR>
> Institute of Continuum Mechanics<BR>
> Leibniz Universitaet Hannover<BR>
> Appelstr. 11<BR>
> 30167 Hannover, Germany<BR>
> phone: +49 511 762 2285<BR>
> fax: +49 511 762 5496<BR>
> email: <a href="wellmann@ikm.uni-hannover.de">wellmann@ikm.uni-hannover.de</a><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>
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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>