I suggest you attach a debugger to the code and step through. Then you'll be able to answer your question.

Since the velocity field of your data may be high, it is entirely possible that the computed next position is outside of the bounds. Perhaps reducing the step size will help. Try even Rk4.5 with adaptive steps, this may help if the velocity gradient at the edge of the domain is very large..

JB

How is it possible???

  double *bds = reader->GetOutput()->GetBounds();
  printf("%lf %lf %lf %lf\n", bds[0], bds[1], bds[2], bds[3]);

-> 0.000000 69.000000 0.000000 69.000000

  printf("point1[0]=%f point1[1]=%f point1[2]=%f\n", point1[0], point1[1], point1[2]);

-> point1[0]=58.196274 point1[1]=68.862898 point1[2]=0.000000

  if (integrator->ComputeNextStep(point1, point2, 0, delT.Interval, stepTaken, minStep, maxStep, this->MaximumError, error) != 0)
    break;
  printf("point2[0]=%f point2[1]=%f point2[2]=%f\n", point2[0], point2[1], point2[2]);

-> point2[0]=59.002164 point2[1]=69.454414 point2[2]=0.000000

PS: This message should probably be sent to the VTK mailing list but it seems that it is no longer so active...



Découvrez toutes les possibilités de communication avec vos proches

_______________________________________________ Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
  


-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to