Skip to main content
edited tags
Link
kglr
  • 403.4k
  • 18
  • 501
  • 959
edited tags
Link
Greek
Source Link
Öskå
  • 8.6k
  • 4
  • 33
  • 53

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlotStreamPlot can be created easily in 2D, but I would like to visualize the stream line plot in a 3D spherical surface $(\theta,\phi)$, so how can it be done? As an example:

StreamPlot[{Cot[\[Theta]]Cos[\[Phi]]Cot[θ]Cos[ϕ],- Sin[\[Phi]]Sin[ϕ]}, {\[Phi]ϕ,-\[Pi]π,\[Pi]π},{\[Theta]θ,0,\[Pi]π}, StreamColorFunction->Hue] 

enter image description here

Ideally, the front of spherical surface should be partially transparent so that the flow line at the rear end can be visualized at the same time.

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlot can be created easily in 2D, but I would like to visualize the stream line plot in a 3D spherical surface $(\theta,\phi)$, so how can it be done? As an example:

StreamPlot[{Cot[\[Theta]]Cos[\[Phi]],- Sin[\[Phi]]}, {\[Phi],-\[Pi],\[Pi]},{\[Theta],0,\[Pi]}, StreamColorFunction->Hue] 

enter image description here

Ideally, the front of spherical surface should be partially transparent so that the flow line at the rear end can be visualized at the same time.

Suppose I have some vector field equations $(f(\theta,\phi), g(\theta,\phi))$. The StreamPlot can be created easily in 2D, but I would like to visualize the stream line plot in a 3D spherical surface $(\theta,\phi)$, so how can it be done? As an example:

StreamPlot[{Cot[θ]Cos[ϕ],- Sin[ϕ]}, {ϕ,-π,π},{θ,0,π}, StreamColorFunction->Hue] 

enter image description here

Ideally, the front of spherical surface should be partially transparent so that the flow line at the rear end can be visualized at the same time.

Tweeted twitter.com/#!/StackMma/status/532097221102039040
Source Link
unsym
  • 555
  • 3
  • 14
Loading