如何在二维图(u-v图)中绘制Ekman螺旋曲线
我有以下等式:
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 :(得分: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()