Plotting a parker spiral?

Hello,
Does anyone possibly know how to plot a Parker (Archimedean) spiral in reference to heliospheric current sheets studied in space physics. If so, could anyone point me in the right direction of where to begin plotting it on Matlab?
Thank you!

 Accepted Answer

Image Analyst
Image Analyst on 21 Nov 2016
Do you have an equation for it? Maybe you should look at quiver()? Or check out the MATLAB Plot Gallery

3 Comments

In regards to an equation, it's:
where:
I've been able to plot a basic spiral, but I'm not really sure how plotting r in the first equation is supposed to look.
Try this:
t = 1 : 1000; % A thousand points.
u = 0.10;
r0 = 50;
% Compute radius as a function of time.
r = r0 + u * t;
omega = .060
phi0 = 3
phi = -omega*t+phi0
x = r .* cos(phi);
y = r .* sin(phi);
plot(x, y, 'LineWidth', 2);
grid on;
Thank you so much!

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!