windmap icon indicating copy to clipboard operation
windmap copied to clipboard

a comment on Speth's Streamlines

Open denis-bz opened this issue 1 year ago • 1 comments

Dear Prof. Rougier, not an issue, just a comment, please move this to discussions: in Speth's class Streamlines, instead of doing bilinear interpolation in the inner loop on a 100 x 100 grid, expand it once to a say 800 x 800 grid with scipy.ndimage.zoom( order=1 ) -- a space-time tradeoff.

Bytheway, you might like https://anvaka.github.io/fieldplay ; plug in e.g.

v.x = cos( p.y );  
v.y = sin( p.x );  

or
v.x = -p.x + cos( p.y );  
v.y = sin( p.x ) - p.y;

cheers -- denis

denis-bz avatar Oct 26 '24 16:10 denis-bz

Thanks for the hint and the link. Actually, you can make a PR if you want.

rougier avatar Jan 06 '25 12:01 rougier