Mathematica 3D parametric vector plot question

Click For Summary
The discussion focuses on plotting a vector field in spherical coordinates, represented as a function of a single parameter, s. The original poster seeks guidance on the easiest method to visualize this vector field. A solution is provided using Mathematica's ParametricPlot3D command, which allows for plotting the vector field by specifying the components of the vector in terms of s and defining the range for s. The command format is highlighted, and a link to the relevant Mathematica documentation is shared for further reference. The original poster expresses gratitude for the assistance, indicating a resolution to their query.
member 428835
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.
 
Physics news on Phys.org
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 member 428835
Ssnow said:
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!
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
2K
Replies
3
Views
3K
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 1 ·
Replies
1
Views
7K