def w_k(self):
"""Angular frequency as a function of Fourier index.
See eq5 of TC.
N.B the frequencies returned by numpy are adimensional, on
the interval [-1/2, 1/2], so we multiply by 2 * pi.
"""
return 2 * np.pi * np.fft.fftfreq(self.N, self.dt)
评论列表
文章目录