# Streamlines on sphere surface

**URL:** https://discourse.paraview.org/t/streamlines-on-sphere-surface/1014
**Category:** ParaView Support
**Created:** [December 6, 2018, 9:13pm UTC](https://discourse.paraview.org/t/streamlines-on-sphere-surface/1014 "2018-12-06T21:13:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liangwang0734](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/3ab097/32.png) [@liangwang0734](https://discourse.paraview.org/u/liangwang0734)
#### Post date: [December 6, 2018, 9:13pm UTC](https://discourse.paraview.org/t/streamlines-on-sphere-surface/1014/1 "2018-12-06T21:13:00Z")

</div>

Hi, what is the standard procedure to plot streamlines on the surface of an object, say, a sphere? Input is a 3d vector. I would like the map it onto the surface of a sphere and plot its contour/streamlines.

Examples:  
 ![](https://discourse.paraview.org/uploads/default/original/1X/2515874dcfa5893def34075cafff4a191c768375.png)

Thank you.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 11, 2018, 1:45pm UTC](https://discourse.paraview.org/t/streamlines-on-sphere-surface/1014/2 "2018-12-11T13:45:07Z")

</div>

You need to use the “Surface Streamlines” feature of the stream tracer.  
Here is how to do it.

- Open ParaView
- Open your vector field, apply
- Create a Sphere source, set the radius to a specific value, set the resolution to a high enough value (80, 80 should be ok), Apply
- Click on your vector field in the pipeline browser
- Add a resample with dataset filter, select your sphere as a source, Apply
- Create a sphere source, set the radius to the same value as the other sphere, set the resolution to have enough seed for your streamlines (20, 20 should be ok), Apply
- Click on the resample with dataset, in the pipeline browser
- Add a StreamTracer with custom source, select the second sphere as a source, Apply

 ![aaa](https://discourse.paraview.org/uploads/default/original/1X/5b8bc1df14ece6db236ee08cd5597e9f89aa9cf2.png)  
[stream.pvsm](https://discourse.paraview.org/uploads/default/original/1X/1a812a93bbe11183638f60ffab110ea8dc9e7026.pvsm) (624.7 KB)
