2014-02-12 68 views
0

如何繪製在2-d圖(UV圖)二維埃克曼螺旋的python

埃克曼螺旋曲線我有以下的公式:

z = rang from (-228,0) 
u = V0*cos(alpha*z + 3*pi/4)*e^(alpha*z) 
v = V0*sin(alpha*z + 3*pi/4)*e^(alpha*z) 
V0 = 0.1314; alpha = 0.013738, Az = 0.1, f = 3.775e-05 

我怎麼能使用這些方程繪製這個數字?

回答

0
from numpy import cos, sin, e, pi, linspace 
import matplotlib.pyplot as plt 

z = linspace(-228,0,1000) 
V0 = 0.1314 
alpha = 0.013738 
u = V0*cos(alpha*z + 3*pi/4)*e**(alpha*z) 
v = V0*sin(alpha*z + 3*pi/4)*e**(alpha*z) 

plt.plot(u,v) 
plt.show()