3D parametric vector plot question

Click For Summary
SUMMARY

The discussion focuses on plotting a vector field in spherical coordinates using Mathematica's ParametricPlot3D function. The vector field is defined as ##\vec f(s) = f_r(s) \hat r + f_\theta(s) \hat \theta + f_\phi(s) \hat\phi##, with components ##f_{x}(s), f_{y}(s), f_{z}(s)##. Users can specify the parameter range with ##[s_{min}, s_{max}]##. The official documentation for this function is available at Wolfram Documentation.

PREREQUISITES
  • Understanding of vector fields in spherical coordinates
  • Familiarity with Mathematica software
  • Knowledge of the ParametricPlot3D function in Mathematica
  • Basic programming skills to implement plotting commands
NEXT STEPS
  • Explore advanced features of Mathematica's ParametricPlot3D
  • Learn about vector field visualization techniques in 3D
  • Research alternative plotting libraries such as Matplotlib for Python
  • Investigate the mathematical properties of vector fields in different coordinate systems
USEFUL FOR

Mathematicians, physicists, and engineers who need to visualize vector fields in 3D, as well as students learning about spherical coordinates and vector calculus.

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   Reactions: 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
4K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 9 ·
Replies
9
Views
2K