← Back to team overview

dolfin team mailing list archive

Re: i/o: reading time dep functions

 

On Tue, May 15, 2007 at 11:13:16AM +0200, Garth N. Wells wrote:
> 
> 
> Anders Logg wrote:
> > On Fri, May 11, 2007 at 03:54:42PM +0200, Johan Hoffman wrote:
> > 
> >> Do we have support for reading time dependent functions? And if so, is
> >> there a demo around? I couldn't find such a functionality in XMLFunction?
> >>
> >> /Johan
> > 
> > No, we just have static functions at this point. So you need to have
> > one function per file.
> > 
> > We could add something like a new class TimeSeries and implement XML
> > input/output for that:
> > 
> > <timeseries>
> >     <frame t="0.0">
> >         <function>
> >             ...
> >         </function>
> >     </frame>
> > </timeseries>
> > 
> 
> What about using that same approach as for VTK files?  The function at 
> each time step can be written to a file with a number appended (000, 
> 001, etc). A "main" xml file can contain a list of the files and the 
> time corresponding to each one.
> 
> Garth

Sounds good.

/Anders


References