[vtkusers] vtkStreamTracer Contd
Jeff Lee
jeff at cdnorthamerica.com
Sun Apr 25 08:11:28 EDT 2004
Hi James,
The array is a value per seed point - i.e. each seed has a reason for
termination. Your example gives feedback on the first seed.
-Jeff
James C. Robinson wrote:
>Dear All,
>
>Okay, so it's Sunday morning and I don't expect answers right now, so I went
>looking in more detail at the vtkStreamTracer source code. Is the following
>a correct attempt at getting the ReasonForTermination:
>
> vtkIntArray* ReasonForTermination =
>(vtkIntArray*)pStreamLine->GetOutput()->GetCellData()->GetArray("ReasonForTe
>rmination") ;
> switch (ReasonForTermination->GetValue(0))
> {
> case vtkStreamTracer::OUT_OF_DOMAIN:
> message.Format("Reason for termination: The streamtube exited the
>domain.") ;
> retval = 1 ;
> break ;
> case vtkStreamTracer::NOT_INITIALIZED:
> message.Format("Reason for termination: The streamtube was
>initialized.") ;
> retval = 2 ;
> break ;
> case vtkStreamTracer::UNEXPECTED_VALUE:
> message.Format("Reason for termination: The streamtube generated
>an unexpected value.") ;
> retval = 3 ;
> break ;
> case vtkStreamTracer::OUT_OF_TIME:
> message.Format("Reason for termination: Reached the maximum
>propagation time.") ;
> retval = 4 ;
> break ;
> case vtkStreamTracer::OUT_OF_STEPS:
> message.Format("Reason for termination: Reached the maximum number
>of steps.") ;
> retval = 5 ;
> break ;
> case vtkStreamTracer::STAGNATION:
> message.Format("Reason for termination: Reached the terminal
>velocity.") ;
> retval = 6 ;
> break ;
> }
>
>or am I way off the mark?
>
>I have implemented this and the reason that it is throwing up is
>OUT_OF_TIME - which I must investigate (becaue the streamtube that I am
>generating is very short).
>
>Many thanks,
>
>Jim
>
>______________________
>
>James C. Robinson, PhD,
>Chartered Engineer,
>Kepler Simulation Systems Ltd.,
>42 Rivergrove,
>Glanmire, Co. Cork,
>Eire
>
>Tel: +353-21-4822028
>Tel: +353-87-2393010
>Fax: +353-21-4822028
>E-mail: j.robinson at kepler-systems.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://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
More information about the vtkusers
mailing list