[vtkusers] vtkStreamer and vtkFunctionSet

Luca Antiga lucantiga at hotmail.com
Thu Jun 20 08:25:19 EDT 2002


Hi Berk,
(sorry for the repeated message, I wasn't sure about mail delivery) I needed 
to track massless particles in a time-varying pulsatile CFD simulation of 
blood vessels.
I did it by first writing a vtkInterpolatedTransientVelocityField, in which 
time evaluation is taken into account (I make use of velocity vectors 
organized in time steps with vtkFieldData), and thanks to your intelligent 
organization the work was almost done, since vtkRungeKutta integrators 
already handle time. In order to overcome the aforementioned limit and to 
add some more time support (timeStepSize specification and pulsatility) I 
just wrote a vtkStreaker class and a vtkStreakLine class which slightly 
generalize their steady couterparts.
If you want I can send you the code of the three classes.
Thanks for consideration

Luca


>From: Berk Geveci <berk.geveci at kitware.com>
>To: Luca Antiga <lucantiga at hotmail.com>
>CC: vtkusers <vtkusers at public.kitware.com>
>Subject: Re: [vtkusers] vtkStreamer and vtkFunctionSet
>Date: 20 Jun 2002 07:48:25 -0400
>
>You are absolutely right. That was the real reason I changed
>the streamer to use separate integrators and function sets
>in the first place. However, since no one (including me) ever
>created or at least mentioned that they created a different
>function set, I didn't bother to provide a way for setting it
>from outside. Did you write or will you write a different
>function set ?
>
>-Berk
>
>On Thu, 2002-06-20 at 03:26, Luca Antiga wrote:
> > Dear users,
> > I was looking into the source code of vtkStreamer and I noticed that an
> > instance of vtkInterpolatedVelocityField (subclass of vtkFunctionSet) is
> > created each time ThreadedIntegrate is called.
> > At the same time, if one uses
> > vtkStreamer::SetIntegrator(vtkInitialValueProblemSolver* ) and then
> > vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* ), 
>apparently
> > he could use an integrator with another subclass of vtkFunctionSet in 
>the
> > streamer, but this is not actually the case.
> > Thus, if one wants to implement a subclass of vtkFunctionSet and use it 
>to
> > compute streamlines, he basically has to write another vtkStreamer 
>class.
> > I think it would be better, if possible, to use a generic vtkFunctionSet 
>in
> > vtkStreamer.
> > Thanks
> >
> > Luca
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the vtkusers mailing list