Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.8K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Generate discrete 3d plots for magnetic field lines?

Posted 6 years ago

I want to generate a discrete 3d set of plots for magnetic field lines. The equation is:

r=rn Cos[\[Omega] + \[Xi] Cos[\[Phi] + \[Phi]0]]^2

rn and [Phi]0 are constants, rn could be =1, [Phi]0=0, [Xi]=-.18, [Omega] runs from 0 to 2 Pi, I want to plot r for a set of discrete values of [Phi] , such as, [Phi] =0, 0.1, 0.2, 0.3, 0.4... How can I do it? Thanks

POSTED BY: Hong-Yee Chiu
3 Replies
Posted 6 years ago
POSTED BY: Hong-Yee Chiu

Do you mean a 3D version of StreamPlot? There is something a bit like that in my package CurvesGraphics6 http://www.dimi.uniud.it/gorni/Mma

POSTED BY: Gianluca Gorni
Posted 6 years ago

I am not sure exactly what you mean by "discrete 3d set of plots for magnetic field lines".

Is this the correct WL definition of the equation?

r[?_, ?_] := Module[{rn = 1, ?0 = 0, ? = -0.18}, rn Cos[? + ? Cos[? + ?0]]^2]

If so, you can use Table to generate a list of values of the function for a range of ? and ? that you can then plot. e.g.

Table[{?, ?, r[?, ?]}, {?, 0, 2 Pi, Pi/12}, {?, 0, 0.4, 0.1}];
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard