[vtkusers] vtkStreamTracer Contd
James C. Robinson
j.robinson at kepler-systems.com
Sun Apr 25 07:55:27 EDT 2004
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
______________________
More information about the vtkusers
mailing list