3D parametric vector plot question

  • Mathematica
  • Thread starter joshmccraney
  • Start date
  • #1
joshmccraney
Gold Member
1,971
104
Hi PF!

Given a vector field ##\vec f## in spherical coordinates as a function of a single parameter ##s##, shown here as

$$\vec f(s) = f_r(s) \hat r + f_\theta(s) \hat \theta + f_\phi(s) \hat\phi$$

where here subscripts do not denote partial derivatives, but instead are used to define components of ##f##, does anyone know the easiest way to plot this vector field?

I googled it but I didn't find anything too helpful (maybe I'm a bad googler).

Edit: I would also be happy with a 2-D image too, say the x-z or y-z plane.
 

Answers and Replies

  • #2
Ssnow
Gold Member
532
156
Hi, in mathematica there is a command: ParametricPlot3D that you can use in order to plot the vector field with ##s## as parameter, the precise notation is

ParametricPlot3D[{##f_{x},f_{y},f_{z}##},{##s,s_{min},s_{max}##}]

where ## f_{x}(s),f_{y}(s),f_{z}(s) ## are the three components depending by ## s ## in the range ##[s_{min},s_{max}]##.

Details are in this documentation: http://reference.wolfram.com/language/ref/ParametricPlot3D.html

Ssnow
 
  • Like
Likes joshmccraney
  • #3
joshmccraney
Gold Member
1,971
104
Hi, in mathematica there is a command: ParametricPlot3D that you can use in order to plot the vector field with ##s## as parameter, the precise notation is

ParametricPlot3D[{##f_{x},f_{y},f_{z}##},{##s,s_{min},s_{max}##}]

where ## f_{x}(s),f_{y}(s),f_{z}(s) ## are the three components depending by ## s ## in the range ##[s_{min},s_{max}]##.

Details are in this documentation: http://reference.wolfram.com/language/ref/ParametricPlot3D.html

Ssnow
Thanks! No clue how I missed this!
 

Related Threads on 3D parametric vector plot question

Replies
4
Views
479
Replies
3
Views
5K
Replies
1
Views
17K
Replies
4
Views
4K
Replies
1
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
10
Views
7K
  • Last Post
Replies
1
Views
827
  • Last Post
Replies
3
Views
4K
Top